Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
ea536df1
Commit
ea536df1
authored
Dec 31, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'saff_update_feature' into dev
parents
411b9fd5
d58432da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
AppUserPositionTempBiz.java
...ub/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
+18
-16
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserPositionTempBiz.java
View file @
ea536df1
...
...
@@ -428,26 +428,28 @@ public class AppUserPositionTempBiz extends BaseBiz<AppUserPositionTempMapper, A
appUserPositionTempDTO
.
setPositionId
(
6
);
appUserPositionChangeRecordBiz
.
addPositionChangeRecord
(
userPositionTemp
,
oldData
,
operatorId
,
appUserPositionTempDTO
.
getRelTime
());
}
if
(
Objects
.
nonNull
(
appUserPositionTempDTO
.
getUserId
()))
{
if
(
Objects
.
nonNull
(
appUserPositionTempDTO
.
getUserId
())
&&
!
Objects
.
equals
(
0
,
appUserPositionTempDTO
.
getUserId
())
)
{
if
(
StaffChangeStatusEnum
.
needChangePostionsStatus
.
contains
(
changeStatus
))
{
//用户表更改其身份
AppUserDetail
appUserDetail
=
detailBiz
.
checkeIsAppUser
(
userPositionTemp
.
getUserId
());
//1.查询股东表 根据userid 或 手机号
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
appUserPositionTempDTO
.
getUserId
(),
appUserPositionTempDTO
.
getPhone
());
//离职
if
(
StaffChangeStatusEnum
.
JOB_SEPARATION
.
getCode
()
==
changeStatus
)
{
if
(
Objects
.
isNull
(
postionId
))
{
//更改为普通用户 6
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
6
);
if
(
Objects
.
nonNull
(
appUserDetail
))
{
//1.查询股东表 根据userid 或 手机号
Integer
postionId
=
appShareholderDetailBiz
.
findShareholderByUserIdOrPhone
(
appUserPositionTempDTO
.
getUserId
(),
appUserPositionTempDTO
.
getPhone
());
//离职
if
(
StaffChangeStatusEnum
.
JOB_SEPARATION
.
getCode
()
==
changeStatus
)
{
if
(
Objects
.
isNull
(
postionId
))
{
//更改为普通用户 6
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
6
);
}
}
}
//身份变更
if
(
StaffChangeStatusEnum
.
IDENTITY_CHANE
.
getCode
()
==
changeStatus
)
{
//不是离职状态下
if
(
Objects
.
nonNull
(
userPositionTemp
.
getIsQuit
())
&&
userPositionTemp
.
getIsQuit
()
!=
1
)
{
postionId
=
Objects
.
nonNull
(
postionId
)
?
postionId
:
appUserPositionTempDTO
.
getPositionId
();
//更改为股东身份
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
postionId
);
//身份变更
if
(
StaffChangeStatusEnum
.
IDENTITY_CHANE
.
getCode
()
==
changeStatus
)
{
//不是离职状态下
if
(
Objects
.
nonNull
(
userPositionTemp
.
getIsQuit
())
&&
userPositionTemp
.
getIsQuit
()
!=
1
)
{
postionId
=
Objects
.
nonNull
(
postionId
)
?
postionId
:
appUserPositionTempDTO
.
getPositionId
();
//更改为股东身份
loginBiz
.
updateUserPosition
(
appUserDetail
.
getUserid
(),
postionId
);
}
}
}
}
...
...
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