Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
987834fe
Commit
987834fe
authored
May 23, 2023
by
武飞达
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature-channel-contract-20230519
parents
d25ef22b
b9133395
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
InnerController.java
...tgroup/xyqb/controller/internal/user/InnerController.java
+6
-0
ModifyPhoneNoResp.java
...xyqb/controller/modifyphoneno/resp/ModifyPhoneNoResp.java
+2
-1
CacheEvictPhoneNoUpdateEventListener.java
...roup/xyqb/event/CacheEvictPhoneNoUpdateEventListener.java
+3
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/internal/user/InnerController.java
View file @
987834fe
...
@@ -1725,6 +1725,12 @@ public class InnerController implements IBaseController {
...
@@ -1725,6 +1725,12 @@ public class InnerController implements IBaseController {
return
JsonResult
.
buildSuccessResult
(
"已经开始清洗"
);
return
JsonResult
.
buildSuccessResult
(
"已经开始清洗"
);
}
}
@RequestMapping
(
"/delete/session"
)
public
JsonResult
deleteSession
(
Long
userId
){
sessionService
.
deleteByUserId
(
userId
);
return
JsonResult
.
buildSuccessResult
();
}
/**
/**
* 注销用户
* 注销用户
*
*
...
...
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/resp/ModifyPhoneNoResp.java
View file @
987834fe
...
@@ -4,6 +4,7 @@ import cn.quantgroup.xyqb.entity.ModifyPhoneNo;
...
@@ -4,6 +4,7 @@ import cn.quantgroup.xyqb.entity.ModifyPhoneNo;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Optional
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -101,7 +102,7 @@ public class ModifyPhoneNoResp {
...
@@ -101,7 +102,7 @@ public class ModifyPhoneNoResp {
modifyPhoneNoResp
.
setApplyStatus
(
modifyPhoneNo
.
getApplyStatus
());
modifyPhoneNoResp
.
setApplyStatus
(
modifyPhoneNo
.
getApplyStatus
());
modifyPhoneNoResp
.
setApplyStatusReason
(
modifyPhoneNo
.
getApplyStatusReason
());
modifyPhoneNoResp
.
setApplyStatusReason
(
modifyPhoneNo
.
getApplyStatusReason
());
modifyPhoneNoResp
.
setProcessingStatus
(
modifyPhoneNo
.
getProcessingStatus
());
modifyPhoneNoResp
.
setProcessingStatus
(
modifyPhoneNo
.
getProcessingStatus
());
modifyPhoneNoResp
.
setApplySource
(
modifyPhoneNo
.
getApplySource
().
ordinal
(
));
modifyPhoneNoResp
.
setApplySource
(
Optional
.
ofNullable
(
modifyPhoneNo
.
getApplySource
()).
map
(
Enum:
:
ordinal
).
orElse
(
null
));
return
modifyPhoneNoResp
;
return
modifyPhoneNoResp
;
}
}
}
}
src/main/java/cn/quantgroup/xyqb/event/CacheEvictPhoneNoUpdateEventListener.java
View file @
987834fe
...
@@ -44,6 +44,9 @@ public class CacheEvictPhoneNoUpdateEventListener implements ApplicationListener
...
@@ -44,6 +44,9 @@ public class CacheEvictPhoneNoUpdateEventListener implements ApplicationListener
User
sessionUser
=
values
.
getUser
();
User
sessionUser
=
values
.
getUser
();
//修改 session 中的手机号
//修改 session 中的手机号
sessionUser
.
setPhoneNo
(
user
.
getPhoneNo
());
sessionUser
.
setPhoneNo
(
user
.
getPhoneNo
());
if
(
user
.
getPhoneNo
().
equals
(
oldPhoneNo
)){
log
.
error
(
"修改后的手机号不能是旧手机号"
);
}
values
.
setUser
(
sessionUser
);
values
.
setUser
(
sessionUser
);
}
}
sessionService
.
persistSession
(
sessionStructList
);
sessionService
.
persistSession
(
sessionStructList
);
...
...
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