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
467652ed
Commit
467652ed
authored
Oct 09, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cx
parent
d7ec3f23
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+4
-4
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+3
-5
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
467652ed
...
...
@@ -225,7 +225,7 @@ public class UserController {
@ApiOperation
(
"修改认证信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
int"
,
name
=
"shopId
"
,
value
=
"店铺ID"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
string"
,
name
=
"shopNo
"
,
value
=
"店铺ID"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"shopName"
,
value
=
"店铺名称"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"provinceId"
,
value
=
"省ID"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"cityId"
,
value
=
"市ID"
,
required
=
true
),
...
...
@@ -251,7 +251,7 @@ public class UserController {
})
@RequestMapping
(
value
=
"/modifyShopAuthInfo"
,
method
=
RequestMethod
.
POST
)
public
String
modifyShopAuthInfo
(
Integer
shopId
,
String
shopNo
,
String
shopName
,
String
provinceId
,
String
cityId
,
...
...
@@ -271,7 +271,7 @@ public class UserController {
String
mainBusiness
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
Map
<
String
,
Object
>
parameters
=
new
HashMap
<
String
,
Object
>();
parameters
.
put
(
"shop
Id"
,
shopId
);
parameters
.
put
(
"shop
No"
,
shopNo
);
parameters
.
put
(
"shopName"
,
shopName
);
parameters
.
put
(
"provinceId"
,
provinceId
);
parameters
.
put
(
"cityId"
,
cityId
);
...
...
@@ -294,7 +294,7 @@ public class UserController {
@ApiOperation
(
"查询认证信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
int
"
,
name
=
"shopNo"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"
string
"
,
name
=
"shopNo"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"sign"
,
dataType
=
"String"
,
required
=
true
,
value
=
"签名"
,
defaultValue
=
""
),
...
...
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
467652ed
...
...
@@ -496,10 +496,8 @@ public class UserServiceImpl implements UserService {
@Override
public
String
modifyShopAuthInfo
(
Map
<
String
,
Object
>
parameters
)
{
String
langID
=
(
String
)
parameters
.
get
(
"langID"
);
Integer
shopId
=
(
Integer
)
parameters
.
get
(
"shopId"
);
Map
<
String
,
Object
>
map
=
jdbcTemplate
.
queryForMap
(
"select sShopNO, sCustNO from tShop where nShopID = ?"
,
shopId
);
String
shopNo
=
(
String
)
map
.
get
(
"sShopNO"
);
String
custNo
=
(
String
)
map
.
get
(
"sCustNO"
);
String
shopNo
=
(
String
)
parameters
.
get
(
"shopNo"
);
String
custNo
=
jdbcTemplate
.
queryForString
(
"select sCustNO from tShop where sShopNO = ?"
,
shopNo
);
String
shopName
=
(
String
)
parameters
.
get
(
"shopName"
);
String
provinceId
=
(
String
)
parameters
.
get
(
"provinceId"
);
String
cityId
=
(
String
)
parameters
.
get
(
"cityId"
);
...
...
@@ -522,7 +520,7 @@ public class UserServiceImpl implements UserService {
String
sMobile
=
(
String
)
custMap
.
get
(
"sMobile"
);
jdbcTemplate
.
update
(
"update tCustomer set sCustName = ?, sSalesmanNO1 = ? where sCustNO = ?"
,
customerName
,
salesmanNO1
,
custNo
);
jdbcTemplate
.
update
(
"update tCustomer set nTag = 4 where sCustNO = ? and nTag&2 != 2"
,
custNo
);
jdbcTemplate
.
update
(
"update tShop set sShopName = ?, sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where
nShopID = ?"
,
shopName
,
mainBusiness
,
provinceId
,
cityId
,
districtId
,
address
,
email
,
memo
,
salesmanNO1
,
shopId
);
jdbcTemplate
.
update
(
"update tShop set sShopName = ?, sMainBusiness = ?, sProvinceID = ?, sCityID = ?, sDistrictID = ?, sAddress = ?, sEmail = ?, sMemo = ?, sSalesmanNO1 = ? where
sShopNO = ?"
,
shopName
,
mainBusiness
,
provinceId
,
cityId
,
districtId
,
address
,
email
,
memo
,
salesmanNO1
,
shopNo
);
List
<
Map
<
String
,
Object
>>
addrList
=
jdbcTemplate
.
queryForList
(
"select * from tCustAddress where sCustNO = ? and sShopNO = ? and nTag&5 = 4"
,
custNo
,
shopNo
);
...
...
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