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
2af034d5
Commit
2af034d5
authored
Oct 09, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单优化
parent
b19b1832
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+10
-10
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
2af034d5
...
@@ -450,7 +450,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -450,7 +450,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
addVo
.
setProjectsMap
(
projectsMap
);
addVo
.
setProjectsMap
(
projectsMap
);
R
<
EmpDispatchAddVo
>
res
=
archivesDaprUtil
.
addDispatchInfo
(
addVo
);
R
<
EmpDispatchAddVo
>
res
=
archivesDaprUtil
.
addDispatchInfo
(
addVo
);
// 开始插入各种数据了
// 开始插入各种数据了
insertAllInfo
(
excelVOList
,
errorMessageList
,
setInfoVo
,
res
,
socialsMap
,
fundsMap
,
socialFundAddMap
,
dispatchMap
,
excelVOTemp
,
dispatchPart
,
injury
);
insertAllInfo
(
excelVOList
,
errorMessageList
,
res
,
socialsMap
,
fundsMap
,
socialFundAddMap
,
dispatchMap
,
excelVOTemp
,
dispatchPart
,
injury
);
// 清理map list 等数据
// 清理map list 等数据
Common
.
clear
(
excelVOList
);
Common
.
clear
(
excelVOList
);
Common
.
clear
(
empAddsMap
);
Common
.
clear
(
empAddsMap
);
...
@@ -479,7 +479,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -479,7 +479,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
private
void
insertAllInfo
(
List
<
TDispatchImportVo
>
excelVOList
,
private
void
insertAllInfo
(
List
<
TDispatchImportVo
>
excelVOList
,
List
<
ErrorMessage
>
errorMessageList
,
List
<
ErrorMessage
>
errorMessageList
,
ProjectSetInfoVo
setInfoVo
,
R
<
EmpDispatchAddVo
>
res
,
R
<
EmpDispatchAddVo
>
res
,
Map
<
String
,
TSocialInfo
>
socialsMap
,
Map
<
String
,
TSocialInfo
>
socialsMap
,
Map
<
String
,
TProvidentFund
>
fundsMap
,
Map
<
String
,
TProvidentFund
>
fundsMap
,
...
@@ -567,7 +566,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -567,7 +566,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
}
}
dispatch
.
setFirstBuyMonthSocial
(
getFirstBuyMonthSocial
(
social
));
dispatch
.
setFirstBuyMonthSocial
(
getFirstBuyMonthSocial
(
social
));
insertDispatch
(
emp
,
dispatch
,
setInfoVo
);
insertDispatch
(
emp
,
dispatch
);
}
}
// 插入或更新社保公积金查询信息 大病在封装社保的时候已经算了 大病技术和金额了
// 插入或更新社保公积金查询信息 大病在封装社保的时候已经算了 大病技术和金额了
if
(
Common
.
isNotNull
(
socialFundAddMap
)){
if
(
Common
.
isNotNull
(
socialFundAddMap
)){
...
@@ -647,16 +646,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -647,16 +646,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
}
}
private
void
insertDispatch
(
EmpAddDispatchVo
emp
,
TDispatchInfo
dispatch
,
ProjectSetInfoVo
setInfoVo
)
{
private
void
insertDispatch
(
EmpAddDispatchVo
emp
,
TDispatchInfo
dispatch
)
{
if
(
Common
.
isNotNull
(
dispatch
)){
if
(
Common
.
isNotNull
(
dispatch
)){
if
(
Common
.
isNotNull
(
emp
)){
if
(
Common
.
isNotNull
(
emp
)){
dispatch
.
setEmpId
(
emp
.
getId
());
dispatch
.
setEmpId
(
emp
.
getId
());
}
}
if
(
Common
.
isNotNull
(
setInfoVo
)){
dispatch
.
setSettleDomainName
(
setInfoVo
.
getDepartName
());
dispatch
.
setSettleDomainCode
(
setInfoVo
.
getDepartNo
());
dispatch
.
setSettleDomain
(
setInfoVo
.
getId
());
}
dispatch
.
setCreateTime
(
LocalDateTime
.
now
());
dispatch
.
setCreateTime
(
LocalDateTime
.
now
());
baseMapper
.
insert
(
dispatch
);
baseMapper
.
insert
(
dispatch
);
}
}
...
@@ -1017,7 +1011,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1017,7 +1011,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
SysBaseSetInfo
socialSet
,
SysBaseSetInfo
socialSet
,
SysBaseSetInfo
fundSet
,
SysBaseSetInfo
fundSet
,
TDispatchImportVo
excel
,
TDispatchImportVo
excel
,
TSocialFundInfo
socialFund
,
boolean
injury
)
{
TSocialFundInfo
socialFund
,
boolean
injury
)
{
TDispatchInfo
dispatch
=
new
TDispatchInfo
();
TDispatchInfo
dispatch
=
new
TDispatchInfo
();
// 初始化派单项
// 初始化派单项
dispatch
.
setOrderId
(
excel
.
getOrderId
());
dispatch
.
setOrderId
(
excel
.
getOrderId
());
...
@@ -1035,6 +1030,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -1035,6 +1030,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch
.
setType
(
CommonConstants
.
ZERO_STRING
);
dispatch
.
setType
(
CommonConstants
.
ZERO_STRING
);
dispatch
.
setCurrentOperator
(
user
.
getNickname
());
dispatch
.
setCurrentOperator
(
user
.
getNickname
());
dispatch
.
setTrustRemark
(
excel
.
getTrustRemark
());
dispatch
.
setTrustRemark
(
excel
.
getTrustRemark
());
dispatch
.
setBelongUnitName
(
excel
.
getCustomerName
());
dispatch
.
setBelongUnit
(
excel
.
getCustomerId
());
dispatch
.
setSettleDomainName
(
excel
.
getDepartName
());
dispatch
.
setSettleDomainCode
(
excel
.
getSettleDomainCode
());
dispatch
.
setSettleDomain
(
excel
.
getSettleDomainId
());
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())){
if
(
Common
.
isNotNull
(
excel
.
getSocialHousehold
())){
dispatch
.
setSocialHandleStatus
(
CommonConstants
.
ZERO_STRING
);
dispatch
.
setSocialHandleStatus
(
CommonConstants
.
ZERO_STRING
);
}
}
...
...
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