Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
dc35c45c
Commit
dc35c45c
authored
Sep 06, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.资质存量数据刷库维保人员处理
1.1维保人员人员类型去掉,数据归并到作业人员-枚举处理 1.2由于目前系统作业人员为新增的资质,还没维护资质信息,故与测试沟通去掉post里面的6618维保人员,人员维护后程序会把6618重新冗余到post字段 1.3维保人员人员类型去掉,数据归并到作业人员-名称处理
parent
06b55c33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
TzsUserInfo.java
.../yeejoin/amos/boot/module/tcm/api/entity/TzsUserInfo.java
+2
-2
HistoryDataDealServiceImpl.java
...dule/tcm/biz/service/impl/HistoryDataDealServiceImpl.java
+5
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/entity/TzsUserInfo.java
View file @
dc35c45c
...
...
@@ -47,7 +47,7 @@ public class TzsUserInfo extends BaseEntity {
private
String
gender
;
/**
* 岗位
* 岗位
-保留兼容下游数据查询
*/
@TableField
(
"post"
)
private
String
post
;
...
...
@@ -59,7 +59,7 @@ public class TzsUserInfo extends BaseEntity {
private
String
newPost
;
/**
* 岗位名称
* 岗位名称
-按照new_post显示
*/
@TableField
(
"post_name"
)
private
String
postName
;
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/HistoryDataDealServiceImpl.java
View file @
dc35c45c
...
...
@@ -71,9 +71,13 @@ public class HistoryDataDealServiceImpl {
wrapper
.
isNotNull
(
TzsUserInfo:
:
getPost
);
List
<
TzsUserInfo
>
users
=
userInfoService
.
list
(
wrapper
);
users
.
parallelStream
().
forEach
(
u
->{
// 维保人员人员类型去掉,数据规避到作业人员
LambdaUpdateWrapper
<
TzsUserInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
// 维保人员人员类型去掉,数据归并到作业人员-枚举处理
updateWrapper
.
set
(
TzsUserInfo:
:
getNewPost
,
u
.
getPost
().
replace
(
"6618"
,
"6552"
));
// 由于目前系统作业人员为新增的资质,还没维护资质信息,故与测试沟通去掉post里面的6618维保人员,人员维护后程序会把6618重新冗余到post字段
updateWrapper
.
set
(
TzsUserInfo:
:
getPost
,
u
.
getPost
().
replace
(
"6618"
,
""
));
// 维保人员人员类型去掉,数据归并到作业人员-名称处理
updateWrapper
.
set
(
u
.
getPostName
()
!=
null
,
TzsUserInfo:
:
getPostName
,
u
.
getPostName
().
replace
(
"维保人员"
,
"作业人员"
));
updateWrapper
.
eq
(
BaseEntity:
:
getSequenceNbr
,
u
.
getSequenceNbr
());
userInfoService
.
update
(
updateWrapper
);
});
...
...
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