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
570d744c
Commit
570d744c
authored
Mar 25, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fxj-dev' into fxj-dev
parents
526fecbf
56a16a85
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
DoJointInsuranceTask.java
...ud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
+24
-19
application-test.yml
...fu-insurances-biz/src/main/resources/application-test.yml
+2
-2
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/DoJointInsuranceTask.java
View file @
570d744c
...
...
@@ -342,30 +342,35 @@ public class DoJointInsuranceTask {
List
<
EkpSocialViewVo
>
viewVo
;
try
{
//薪资结算状态同步暂时解决方案为定时任务去更新
TUpdateStatusError
error
=
new
TUpdateStatusError
();
/*
TUpdateStatusError error = new TUpdateStatusError();
error.setSettleNo(vo.getSettleNo());
error.setStatus(CommonConstants.ZERO_INT);
error
.
setTitle
(
"薪资结算状态同步
失败
"
);
error.setTitle("薪资结算状态同步
成功
");
error.setTypeFlag(CommonConstants.FIVE_STRING);
error.setCreateTime(DateUtil.getCurrentDateTime());
error.setSettleType(vo.getPayFlag());
updateStatusErrorMapper.insert(error);*/
TUpdateStatusError
error
=
new
TUpdateStatusError
();
error
.
setSettleNo
(
vo
.
getSettleNo
());
error
.
setCreateTime
(
DateUtil
.
getCurrentDateTime
());
error
.
setSettleType
(
vo
.
getPayFlag
());
error
.
setTypeFlag
(
CommonConstants
.
FIVE_STRING
);
//根据结算单号获取明细id和结算状态
viewVo
=
ekpSettleService
.
selectSalarylViewBySettleNo
(
vo
.
getSettleNo
(),
vo
.
getPayFlag
());
if
(!
viewVo
.
isEmpty
())
{
viewVo
.
forEach
(
e
->
e
.
setPayFlag
(
vo
.
getPayFlag
()));
R
<
Boolean
>
flag
=
salaryDaprUtil
.
updateSalarySettleStatus
(
viewVo
);
if
(
Common
.
isEmpty
(
flag
)
||
Boolean
.
TRUE
.
equals
(!
flag
.
getData
()))
{
error
.
setStatus
(
CommonConstants
.
ZERO_INT
);
error
.
setTitle
(
"薪资结算状态同步失败"
);
updateStatusErrorMapper
.
insert
(
error
);
// //根据结算单号获取明细id和结算状态
// viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
// if (!viewVo.isEmpty()) {
// viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
// R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo);
// if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
// TUpdateStatusError error = new TUpdateStatusError();
// error.setSettleNo(vo.getSettleNo());
// error.setStatus(CommonConstants.ZERO_INT);
// error.setTitle("薪资结算状态同步失败");
// error.setTypeFlag(CommonConstants.FIVE_STRING);
// error.setCreateTime(DateUtil.getCurrentDateTime());
// error.setSettleType(vo.getPayFlag());
// updateStatusErrorMapper.insert(error);
// }
// }
}
else
{
error
.
setStatus
(
CommonConstants
.
ZERO_INT
);
error
.
setTitle
(
"薪资结算状态同步成功"
);
updateStatusErrorMapper
.
insert
(
error
);
}
}
}
catch
(
Exception
e
)
{
TUpdateStatusError
error
=
new
TUpdateStatusError
();
error
.
setSettleNo
(
vo
.
getSettleNo
());
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/application-test.yml
View file @
570d744c
...
...
@@ -6,8 +6,8 @@ spring:
activate
:
on-profile
:
test
redis
:
host
:
1
27.0.0.1
port
:
6
379
host
:
1
92.168.1.65
port
:
22
379
password
:
'
@yf_2017'
datasource
:
insurances
:
...
...
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