Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
3e874082
Commit
3e874082
authored
Oct 10, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加参数
parent
7c0167e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+6
-1
BrandServiceImpl.java
...in/java/com/egolm/shop/service/impl/BrandServiceImpl.java
+4
-1
No files found.
src/main/java/com/egolm/shop/controller/BrandController.java
View file @
3e874082
...
...
@@ -240,6 +240,8 @@ public class BrandController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"shopNo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"店用编号"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"custNo"
,
dataType
=
"String"
,
required
=
true
,
value
=
"用户编号"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"brandId"
,
dataType
=
"String"
,
required
=
true
,
value
=
"品牌ID"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"email"
,
dataType
=
"String"
,
required
=
false
,
value
=
"email"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"contact"
,
dataType
=
"String"
,
required
=
false
,
value
=
"contact"
,
defaultValue
=
""
),
})
@RequestMapping
(
value
=
"/saveAuthorizationIP"
,
method
=
RequestMethod
.
POST
)
public
String
authorizationIP
(
HttpServletRequest
request
)
{
...
...
@@ -248,6 +250,8 @@ public class BrandController {
String
shopNo
=
request
.
getParameter
(
"shopNo"
);
String
custNo
=
request
.
getParameter
(
"custNo"
);
String
brandId
=
request
.
getParameter
(
"brandId"
);
String
email
=
request
.
getParameter
(
"email"
);
String
contact
=
request
.
getParameter
(
"contact"
);
if
(!
StringUtil
.
isNotEmpty
(
orgNO
,
ipId
,
shopNo
,
custNo
,
brandId
))
{
return
Rjx
.
json
().
setCode
(-
1
).
setMessage
(
I18NUtils
.
getMessage
(
orgNO
,
ipId
,
brandId
,
shopNo
,
custNo
,
"Msg_Parameter_empty"
)).
toJson
();
}
...
...
@@ -257,7 +261,8 @@ public class BrandController {
params
.
put
(
"shopNo"
,
shopNo
);
params
.
put
(
"custNo"
,
custNo
);
params
.
put
(
"brandId"
,
brandId
);
params
.
put
(
"email"
,
email
);
params
.
put
(
"contact"
,
contact
);
return
brandService
.
saveAuthorizationIP
(
params
);
}
...
...
src/main/java/com/egolm/shop/service/impl/BrandServiceImpl.java
View file @
3e874082
...
...
@@ -178,7 +178,8 @@ public class BrandServiceImpl implements BrandService {
String
custNo
=
params
.
get
(
"custNo"
)+
""
;
String
shopNo
=
params
.
get
(
"shopNo"
)+
""
;
String
brandId
=
params
.
get
(
"brandId"
)+
""
;
String
contact
=
params
.
get
(
"contact"
)+
""
;
String
email
=
params
.
get
(
"email"
)+
""
;
TCustomer
customer
=
userService
.
getCustomer
(
custNo
,
shopNo
);
if
(
customer
!=
null
)
{
List
<
TShop
>
shops
=
customer
.
gettShops
();
...
...
@@ -191,6 +192,8 @@ public class BrandServiceImpl implements BrandService {
TIPBrandAuthorize
auth
=
new
TIPBrandAuthorize
();
auth
.
setsIPID
(
ipId
);
auth
.
setsOrgNO
(
orgNO
);
auth
.
setsEmail
(
email
);
auth
.
setsContact
(
contact
);
auth
.
setsBrandID
(
brandId
);
auth
.
setsCompanyName
(
shop
.
getsShopName
());
auth
.
setsAddress
(
shop
.
getsProvince
()+
""
+
shop
.
getsCity
()+
""
+
shop
.
getsDistrict
()+
""
+
shop
.
getsAddress
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment