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
4ab3f245
Commit
4ab3f245
authored
Sep 23, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
15175ca6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
UserController.java
src/main/java/com/egolm/shop/controller/UserController.java
+2
-3
UserService.java
src/main/java/com/egolm/shop/service/UserService.java
+1
-1
UserServiceImpl.java
...ain/java/com/egolm/shop/service/impl/UserServiceImpl.java
+3
-3
No files found.
src/main/java/com/egolm/shop/controller/UserController.java
View file @
4ab3f245
...
@@ -288,7 +288,6 @@ public class UserController {
...
@@ -288,7 +288,6 @@ public class UserController {
@ApiOperation
(
"查询认证信息"
)
@ApiOperation
(
"查询认证信息"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"shopId"
,
value
=
"店铺ID"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
name
=
"shopId"
,
value
=
"店铺ID"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
name
=
"custNo"
,
value
=
"客户编号"
,
required
=
true
),
/*=======================================================分界线=================================================================*/
/*=======================================================分界线=================================================================*/
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
@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
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
...
@@ -296,8 +295,8 @@ public class UserController {
...
@@ -296,8 +295,8 @@ public class UserController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
})
@RequestMapping
(
value
=
"/queryShopAuthInfo"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/queryShopAuthInfo"
,
method
=
RequestMethod
.
GET
)
public
String
queryShopAuthInfo
(
String
custNo
,
Integer
shopId
,
String
langID
)
{
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
)
{
return
userService
.
queryShopAuthInfo
(
custNo
,
shopId
,
langID
);
return
userService
.
queryShopAuthInfo
(
shopId
,
langID
);
}
}
@ApiOperation
(
"根据OPENID获取用户信息"
)
@ApiOperation
(
"根据OPENID获取用户信息"
)
...
...
src/main/java/com/egolm/shop/service/UserService.java
View file @
4ab3f245
...
@@ -39,6 +39,6 @@ public interface UserService {
...
@@ -39,6 +39,6 @@ public interface UserService {
public
void
saveOpenId
(
String
string
,
String
openId
);
public
void
saveOpenId
(
String
string
,
String
openId
);
public
String
queryShopAuthInfo
(
String
custNo
,
Integer
shopId
,
String
langID
);
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
);
}
}
src/main/java/com/egolm/shop/service/impl/UserServiceImpl.java
View file @
4ab3f245
...
@@ -412,15 +412,15 @@ public class UserServiceImpl implements UserService {
...
@@ -412,15 +412,15 @@ public class UserServiceImpl implements UserService {
}
}
@Override
@Override
public
String
queryShopAuthInfo
(
String
custNo
,
Integer
shopId
,
String
langID
)
{
public
String
queryShopAuthInfo
(
Integer
shopId
,
String
langID
)
{
String
sCertifTypeID
=
"A"
;
String
sCertifTypeID
=
"A"
;
String
sCertifType
=
"营业执照"
;
String
sCertifType
=
"营业执照"
;
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
shopMap
=
jdbcTemplate
.
queryForMap
(
"select * from tShop where nShopID = ?"
,
shopId
);
String
custNo
=
(
String
)
shopMap
.
get
(
"sCustNO"
);
Map
<
String
,
Object
>
custMap
=
jdbcTemplate
.
queryForMap
(
"select * from tCustomer where sCustNO = ?"
,
custNo
);
Map
<
String
,
Object
>
custMap
=
jdbcTemplate
.
queryForMap
(
"select * from tCustomer where sCustNO = ?"
,
custNo
);
map
.
put
(
"sCustName"
,
custMap
.
get
(
"sCustName"
));
map
.
put
(
"sCustName"
,
custMap
.
get
(
"sCustName"
));
map
.
put
(
"sCustNO"
,
custMap
.
get
(
"sCustNO"
));
map
.
put
(
"sCustNO"
,
custMap
.
get
(
"sCustNO"
));
Map
<
String
,
Object
>
shopMap
=
jdbcTemplate
.
queryForMap
(
"select * from tShop where nShopID = ?"
,
shopId
);
map
.
put
(
"sShopNO"
,
shopMap
.
get
(
"sShopNO"
));
map
.
put
(
"sShopNO"
,
shopMap
.
get
(
"sShopNO"
));
map
.
put
(
"nShopID"
,
shopMap
.
get
(
"nShopID"
));
map
.
put
(
"nShopID"
,
shopMap
.
get
(
"nShopID"
));
map
.
put
(
"sShopName"
,
shopMap
.
get
(
"sShopName"
));
map
.
put
(
"sShopName"
,
shopMap
.
get
(
"sShopName"
));
...
...
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