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
b76510f2
Commit
b76510f2
authored
Sep 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
6ae2b70c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+15
-0
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+2
-0
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+6
-0
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
b76510f2
...
@@ -325,4 +325,19 @@ public class UserController {
...
@@ -325,4 +325,19 @@ public class UserController {
customerMap
.
put
(
"nShopID"
,
shopList
.
get
(
0
).
get
(
"nShopID"
));
customerMap
.
put
(
"nShopID"
,
shopList
.
get
(
0
).
get
(
"nShopID"
));
return
Rjx
.
jsonOk
().
set
(
"customer"
,
customerMap
).
set
(
"shopList"
,
shopList
).
setMessage
(
I18NUtils
.
getMessage
(
langID
,
"Msg_Login_success"
)).
toJson
();
return
Rjx
.
jsonOk
().
set
(
"customer"
,
customerMap
).
set
(
"shopList"
,
shopList
).
setMessage
(
I18NUtils
.
getMessage
(
langID
,
"Msg_Login_success"
)).
toJson
();
}
}
@ApiOperation
(
"根据店铺编号查询业务员"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"shopNo"
,
dataType
=
"String"
,
required
=
false
),
@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
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@RequestMapping
(
value
=
"/getSalesmanByShopNo"
,
method
=
RequestMethod
.
GET
)
public
String
getSalesmanByShopNo
(
String
shopNo
)
{
Map
<
String
,
Object
>
map
=
userService
.
getSalesmanByShopNo
(
shopNo
);
return
Rjx
.
jsonOk
().
set
(
"data"
,
map
).
toJson
();
}
}
}
src/main/java/com/egolm/shop/service/UserService.java
View file @
b76510f2
...
@@ -41,4 +41,6 @@ public interface UserService {
...
@@ -41,4 +41,6 @@ public interface UserService {
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
);
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
);
public
Map
<
String
,
Object
>
getSalesmanByShopNo
(
String
shopNo
);
}
}
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
b76510f2
...
@@ -694,4 +694,10 @@ public class UserServiceImpl implements UserService {
...
@@ -694,4 +694,10 @@ public class UserServiceImpl implements UserService {
jdbcTemplate
.
update
(
"update tCustomer set sOpenID = ? where sCustNO = ?"
,
openId
,
sCustNO
);
jdbcTemplate
.
update
(
"update tCustomer set sOpenID = ? where sCustNO = ?"
,
openId
,
sCustNO
);
}
}
@Override
public
Map
<
String
,
Object
>
getSalesmanByShopNo
(
String
shopNo
)
{
String
sql
=
"select top 1 sm.* from tSalesman sm, tShop s where sm.sSalesmanNO = s.sSalesmanNO1 or sm.sSalesmanNO = s.sSalesmanNO2 and s.sShopNO = ?"
;
return
jdbcTemplate
.
queryForMap
(
sql
,
shopNo
);
}
}
}
\ No newline at end of file
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