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
81d58e91
Commit
81d58e91
authored
Nov 07, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-派单更新档案完整度监控
parent
897be69c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+27
-4
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
81d58e91
...
@@ -85,6 +85,7 @@ import java.lang.reflect.Field;
...
@@ -85,6 +85,7 @@ import java.lang.reflect.Field;
import
java.net.URL
;
import
java.net.URL
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
@@ -134,6 +135,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -134,6 +135,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
@Autowired
@Autowired
private
OSSUtil
ossUtil
;
private
OSSUtil
ossUtil
;
ExcelUtil
<
Object
>
excelUtil
=
new
ExcelUtil
<>(
Object
.
class
);
@Override
@Override
public
IPage
<
TEmployeeInfo
>
getPage
(
Page
<
TEmployeeInfo
>
page
,
TEmployeeInfo
employeeInfo
)
{
public
IPage
<
TEmployeeInfo
>
getPage
(
Page
<
TEmployeeInfo
>
page
,
TEmployeeInfo
employeeInfo
)
{
return
baseMapper
.
getPage
(
page
,
employeeInfo
);
return
baseMapper
.
getPage
(
page
,
employeeInfo
);
...
@@ -2589,10 +2592,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2589,10 +2592,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
}
}
}
//重新刷新一下项目编码对应的档案完整度监控的数据
if
(
Common
.
isNotNull
(
vo
.
getProjectNo
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
vo
.
getType
()))
{
completeMonitorService
.
updateProjectStatusByDeptNo
(
vo
.
getProjectNo
());
}
}
}
return
true
;
return
true
;
}
}
...
@@ -2633,6 +2632,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2633,6 +2632,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
EmpAddDispatchVo
emp
;
EmpAddDispatchVo
emp
;
EmpProjectDispatchVo
project
;
EmpProjectDispatchVo
project
;
TEmployeeContractAudit
audit
;
TEmployeeContractAudit
audit
;
TEmployeeProject
projectUpd
;
for
(
Map
.
Entry
<
String
,
EmpContractDispatchVo
>
entry
:
contractsMap
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
EmpContractDispatchVo
>
entry
:
contractsMap
.
entrySet
())
{
contractAdd
=
entry
.
getValue
();
contractAdd
=
entry
.
getValue
();
try
{
try
{
...
@@ -2666,6 +2666,29 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
...
@@ -2666,6 +2666,29 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
contractAdd
.
setId
(
contract
.
getId
());
contractAdd
.
setId
(
contract
.
getId
());
contractAdd
.
setEmpNo
(
contract
.
getEmpNo
());
contractAdd
.
setEmpNo
(
contract
.
getEmpNo
());
contractsMap
.
put
(
contractAdd
.
getEmpIdcard
()
+
CommonConstants
.
DOWN_LINE_STRING
+
contractAdd
.
getDeptNo
(),
contractAdd
);
contractsMap
.
put
(
contractAdd
.
getEmpIdcard
()
+
CommonConstants
.
DOWN_LINE_STRING
+
contractAdd
.
getDeptNo
(),
contractAdd
);
//新增合同和同步更新项目档案中的合同信息
projectUpd
=
tEmployeeProjectService
.
getOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
().
eq
(
TEmployeeProject:
:
getDeptNo
,
contract
.
getDeptNo
())
.
eq
(
TEmployeeProject:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeProject:
:
getProjectStatus
,
CommonConstants
.
ZERO_INT
));
if
(
Common
.
isNotNull
(
projectUpd
))
{
if
(
Common
.
isEmpty
(
projectUpd
.
getContractType
()))
{
projectUpd
.
setContractType
(
excelUtil
.
getDicValueByDataType
(
contract
.
getContractName
(),
ExcelAttributeConstants
.
PERSONNEL_TYPE
));
}
if
(
Common
.
isEmpty
(
projectUpd
.
getPost
()))
{
projectUpd
.
setPost
(
contract
.
getPost
());
}
if
(
Common
.
isEmpty
(
projectUpd
.
getWorkingHours
()))
{
projectUpd
.
setWorkingHours
(
contract
.
getWorkingHours
());
}
if
(
Common
.
isEmpty
(
projectUpd
.
getTryPeriod
()))
{
projectUpd
.
setTryPeriod
(
contract
.
getTryPeriod
());
}
if
(
Common
.
isEmpty
(
projectUpd
.
getEnjoinDate
()))
{
projectUpd
.
setEnjoinDate
(
null
!=
contract
.
getContractStart
()
?
contract
.
getContractStart
().
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
()
:
null
);
}
tEmployeeProjectService
.
updateById
(
projectUpd
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
contractAdd
.
getEmpIdcard
()
+
CommonConstants
.
COLON_STRING
+
"派单新增合同失败"
,
e
);
log
.
error
(
contractAdd
.
getEmpIdcard
()
+
CommonConstants
.
COLON_STRING
+
"派单新增合同失败"
,
e
);
...
...
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