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
d7ec3f23
Commit
d7ec3f23
authored
Oct 09, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b9c1ce33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+3
-4
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+1
-1
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+2
-3
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
d7ec3f23
...
...
@@ -294,16 +294,15 @@ public class UserController {
@ApiOperation
(
"查询认证信息"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"shopId"
,
value
=
"店铺ID"
,
required
=
true
),
/*=======================================================分界线=================================================================*/
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
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
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
@RequestMapping
(
value
=
"/queryShopAuthInfo"
,
method
=
RequestMethod
.
GET
)
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
)
{
return
userService
.
queryShopAuthInfo
(
shop
Id
,
langID
);
public
String
queryShopAuthInfo
(
String
shopNo
,
String
langID
)
{
return
userService
.
queryShopAuthInfo
(
shop
No
,
langID
);
}
@ApiOperation
(
"根据OPENID获取用户信息"
)
...
...
src/main/java/com/egolm/shop/service/UserService.java
View file @
d7ec3f23
...
...
@@ -39,7 +39,7 @@ public interface UserService {
public
void
saveOpenId
(
String
string
,
String
openId
);
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
);
public
String
queryShopAuthInfo
(
String
shopNo
,
String
langID
);
public
Map
<
String
,
Object
>
getSalesmanByShopNo
(
String
shopNo
);
...
...
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
d7ec3f23
...
...
@@ -412,11 +412,11 @@ public class UserServiceImpl implements UserService {
}
@Override
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
)
{
public
String
queryShopAuthInfo
(
String
shopNo
,
String
langID
)
{
String
sCertifTypeID
=
"A"
;
String
sCertifType
=
"营业执照"
;
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
shopMap
=
jdbcTemplate
.
queryForMap
(
"select * from tShop where
nShopID = ?"
,
shopId
);
Map
<
String
,
Object
>
shopMap
=
jdbcTemplate
.
queryForMap
(
"select * from tShop where
sShopNO = ?"
,
shopNo
);
String
sProvinceID
=
(
String
)
shopMap
.
get
(
"sProvinceID"
);
String
sCityID
=
(
String
)
shopMap
.
get
(
"sCityID"
);
...
...
@@ -468,7 +468,6 @@ public class UserServiceImpl implements UserService {
map
.
put
(
"sMemo"
,
shopMap
.
get
(
"sMemo"
));
map
.
put
(
"sSalesmanNO1"
,
shopMap
.
get
(
"sSalesmanNO1"
));
map
.
put
(
"sMainBusiness"
,
shopMap
.
get
(
"sMainBusiness"
));
String
shopNo
=
(
String
)
shopMap
.
get
(
"sShopNO"
);
List
<
Map
<
String
,
Object
>>
certifList
=
jdbcTemplate
.
queryForList
(
"select * from tShopCertif where sShopNO = ? and sCertifTypeID = ?"
,
shopNo
,
sCertifTypeID
);
if
(
certifList
.
size
()
>
0
)
{
Map
<
String
,
Object
>
certifMap
=
certifList
.
get
(
0
);
...
...
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