Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
339deec8
Commit
339deec8
authored
Jul 26, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.6.7-写为不完整
parent
472a52db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
TEmployeeProjectMapper.java
.../plus/v1/yifu/archives/mapper/TEmployeeProjectMapper.java
+1
-1
TCompleteMonitorServiceImpl.java
...fu/archives/service/impl/TCompleteMonitorServiceImpl.java
+17
-4
TEmployeeProjectMapper.xml
...-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/mapper/TEmployeeProjectMapper.java
View file @
339deec8
...
@@ -124,5 +124,5 @@ public interface TEmployeeProjectMapper extends BaseMapper<TEmployeeProject> {
...
@@ -124,5 +124,5 @@ public interface TEmployeeProjectMapper extends BaseMapper<TEmployeeProject> {
* 批量刷新项目档案的是否完整状态
* 批量刷新项目档案的是否完整状态
* @return
* @return
*/
*/
void
batchUpdateEmpProjectCompleteStatus
(
@Param
(
"idList"
)
List
<
String
>
idList
);
void
batchUpdateEmpProjectCompleteStatus
(
@Param
(
"idList"
)
List
<
String
>
idList
,
@Param
(
"isComplete"
)
String
isComplete
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TCompleteMonitorServiceImpl.java
View file @
339deec8
...
@@ -151,17 +151,24 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
...
@@ -151,17 +151,24 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
List
<
TCompleteMonitorFlagVo
>
flagList
=
baseMapper
.
checkEmpProjectCompleteFlag
(
null
);
List
<
TCompleteMonitorFlagVo
>
flagList
=
baseMapper
.
checkEmpProjectCompleteFlag
(
null
);
if
(!
flagList
.
isEmpty
())
{
if
(!
flagList
.
isEmpty
())
{
List
<
String
>
projectIdList
=
new
ArrayList
<>();
List
<
String
>
projectIdList
=
new
ArrayList
<>();
List
<
String
>
projectNotIdList
=
new
ArrayList
<>();
String
projectId
;
String
projectId
;
for
(
TCompleteMonitorFlagVo
flagVo
:
flagList
)
{
for
(
TCompleteMonitorFlagVo
flagVo
:
flagList
)
{
boolean
flag
=
checkObjFieldIsNull
(
flagVo
);
boolean
flag
=
checkObjFieldIsNull
(
flagVo
);
projectId
=
flagVo
.
getEmpProjectId
();
if
(!
flag
){
if
(!
flag
){
projectId
=
flagVo
.
getEmpProjectId
();
projectIdList
.
add
(
projectId
);
projectIdList
.
add
(
projectId
);
}
else
{
projectNotIdList
.
add
(
projectId
);
}
}
}
}
//批量更新
//批量更新
if
(!
projectIdList
.
isEmpty
())
{
if
(!
projectIdList
.
isEmpty
())
{
projectMapper
.
batchUpdateEmpProjectCompleteStatus
(
projectIdList
);
projectMapper
.
batchUpdateEmpProjectCompleteStatus
(
projectIdList
,
CommonConstants
.
ZERO_STRING
);
}
//批量更新-不完整
if
(!
projectIdList
.
isEmpty
())
{
projectMapper
.
batchUpdateEmpProjectCompleteStatus
(
projectNotIdList
,
CommonConstants
.
ONE_STRING
);
}
}
}
}
...
@@ -188,17 +195,23 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
...
@@ -188,17 +195,23 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
List
<
TCompleteMonitorFlagVo
>
flagList
=
baseMapper
.
checkEmpProjectCompleteFlag
(
deptNo
);
List
<
TCompleteMonitorFlagVo
>
flagList
=
baseMapper
.
checkEmpProjectCompleteFlag
(
deptNo
);
if
(!
flagList
.
isEmpty
())
{
if
(!
flagList
.
isEmpty
())
{
List
<
String
>
projectIdList
=
new
ArrayList
<>();
List
<
String
>
projectIdList
=
new
ArrayList
<>();
List
<
String
>
projectNotIdList
=
new
ArrayList
<>();
String
projectId
;
String
projectId
;
for
(
TCompleteMonitorFlagVo
flagVo
:
flagList
)
{
for
(
TCompleteMonitorFlagVo
flagVo
:
flagList
)
{
boolean
flag
=
checkObjFieldIsNull
(
flagVo
);
boolean
flag
=
checkObjFieldIsNull
(
flagVo
);
projectId
=
flagVo
.
getEmpProjectId
();
if
(!
flag
){
if
(!
flag
){
projectId
=
flagVo
.
getEmpProjectId
();
projectIdList
.
add
(
projectId
);
projectIdList
.
add
(
projectId
);
}
else
{
projectNotIdList
.
add
(
projectId
);
}
}
}
}
//批量更新
//批量更新
if
(!
projectIdList
.
isEmpty
())
{
if
(!
projectIdList
.
isEmpty
())
{
projectMapper
.
batchUpdateEmpProjectCompleteStatus
(
projectIdList
);
projectMapper
.
batchUpdateEmpProjectCompleteStatus
(
projectIdList
,
CommonConstants
.
ZERO_STRING
);
}
if
(!
projectNotIdList
.
isEmpty
())
{
projectMapper
.
batchUpdateEmpProjectCompleteStatus
(
projectNotIdList
,
CommonConstants
.
ONE_STRING
);
}
}
}
}
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeProjectMapper.xml
View file @
339deec8
...
@@ -1089,7 +1089,7 @@
...
@@ -1089,7 +1089,7 @@
<!-- 批量刷新项目档案的是否完整状态 -->
<!-- 批量刷新项目档案的是否完整状态 -->
<update
id=
"batchUpdateEmpProjectCompleteStatus"
>
<update
id=
"batchUpdateEmpProjectCompleteStatus"
>
update t_employee_project a set a.IS_COMPLETE =
'0'
where a.id in
update t_employee_project a set a.IS_COMPLETE =
#{isComplete}
where a.id in
<foreach
item=
"item"
index=
"index"
collection=
"idList"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"idList"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
...
...
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