Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
a0a44a74
Commit
a0a44a74
authored
Jan 17, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:登录更改
parent
64604af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+4
-3
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
a0a44a74
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.dict.api.dto.DictDTO
;
import
com.gic.dict.api.service.ManagerDictService
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
...
...
@@ -180,10 +181,10 @@ public class WxEnterpriseInfoController extends WebBaseController {
*/
@RequestMapping
(
value
=
"welldone-login"
,
method
=
RequestMethod
.
POST
)
@IgnoreLogin
public
HaobanResponse
welldoneLogin
(
@RequestBody
@Valid
StaffLoginQO
staffLoginQO
,
HttpServletRequest
request
)
{
public
RestResponse
<
String
>
welldoneLogin
(
@RequestBody
@Valid
StaffLoginQO
staffLoginQO
,
HttpServletRequest
request
)
{
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffLoginQO
.
getStaffId
());
if
(
staffDTO
==
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
return
RestResponse
.
failure
(
String
.
valueOf
(
HaoBanErrCode
.
ERR_6
.
getCode
()),
HaoBanErrCode
.
ERR_6
.
getMsg
()
);
}
String
staffId
=
staffDTO
.
getStaffId
();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
...
...
@@ -199,7 +200,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
staffDTO
.
setPhoneNumber
(
staffDTO
.
getPhoneNumber
());
staffDTO
.
setWxUserId
(
staffDTO
.
getWxUserId
());
wxEnterpriseApiService
.
wellDoneLogin
(
staffLoginDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
token
);
return
RestResponse
.
successResult
(
token
);
}
/**
...
...
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