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
f1377e03
Commit
f1377e03
authored
Mar 13, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
明细接口改造
parent
13a020a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
EkpFundInfoServiceImpl.java
...loud/plus/v1/ekp/service/impl/EkpFundInfoServiceImpl.java
+14
-14
EkpSocialInfoServiceImpl.java
...ud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
+14
-14
No files found.
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpFundInfoServiceImpl.java
View file @
f1377e03
...
...
@@ -114,10 +114,10 @@ public class EkpFundInfoServiceImpl extends ServiceImpl<EkpFundInfoMapper, EkpFu
if
(
"是"
.
equals
(
fundInfo
.
getFd_3add9de0be85e4
())
&&
"实缴"
.
equals
(
fundInfo
.
getFd_3add9dd7833db8
()))
{
//单位差异
//$列表.求总和$($公积金订单明细*总数(单位代缴)$)+$单位代缴$) -($列表.求总和$($公积金订单明细*总数(预估单位代缴)$) + $预估单位代缴$)
fundInfo
.
setFd_3adfeb53c70f72
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjdw
),
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
yggr
)).
doubleValue
());
fundInfo
.
setFd_3adfeb53c70f72
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjdw
),
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
yggr
)).
doubleValue
());
//个人差异
//$列表.求总和$($公积金订单明细*总数(个人代缴)$)+ $个人代缴$ - $列表.求总和$($公积金订单明细*总数(预估个人代缴)$)
fundInfo
.
setFd_3adfeb5413fb44
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
sjgr
),
ygPersonSum
).
doubleValue
());
fundInfo
.
setFd_3adfeb5413fb44
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
sjgr
),
ygPersonSum
).
doubleValue
());
}
//Fd_3adfeb7b624f06应收;Fd_3b35a65138a7fc个人应收;fd_3b35a6518b73b2单位应收
...
...
@@ -132,11 +132,11 @@ public class EkpFundInfoServiceImpl extends ServiceImpl<EkpFundInfoMapper, EkpFu
if
(
"实缴"
.
equals
(
deptInfo
.
getSettleType
()))
{
if
(
"预估"
.
equals
(
fundInfo
.
getFd_3add9dd7833db8
()))
{
//$列表.求总和$($公积金订单明细*总数(预估单位代缴)$) + $列表.求总和$($公积金订单明细*总数(预估个人代缴)$) + $预估个人代缴$ + $预估单位代缴$ - $列表.求总和$($公积金订单明细*总数(应收)$)
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygPersonSum
,
yggr
,
ygdw
),
ys
).
doubleValue
());
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygPersonSum
,
yggr
,
ygdw
),
ys
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(预估个人代缴)$) + $预估个人代缴$ - $列表.求总和$($公积金订单明细*总数(个人应收)$)
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggr
),
personYs
).
doubleValue
());
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggr
),
personYs
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(预估单位代缴)$) + $预估单位代缴$ - $列表.求总和$($公积金订单明细*总数(单位应收)$)
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdw
),
dwYs
).
doubleValue
());
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdw
),
dwYs
).
doubleValue
());
}
else
{
if
(
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygPersonSum
).
doubleValue
()
>
0
)
{
//应收
...
...
@@ -147,28 +147,28 @@ public class EkpFundInfoServiceImpl extends ServiceImpl<EkpFundInfoMapper, EkpFu
fundInfo
.
setFd_3b35a6518b73b2
(
CommonConstants
.
ZERO_INTEGER
.
doubleValue
());
}
else
{
// $列表.求总和$($公积金订单明细*总数(单位代缴)$) +$列表.求总和$($公积金订单明细*总数(个人代缴)$) + $单位代缴$ + $个人代缴$ - $列表.求总和$($公积金订单明细*总数(应收)$)
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjPersonSum
,
sjdw
,
sjgr
),
ys
).
doubleValue
());
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjPersonSum
,
sjdw
,
sjgr
),
ys
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(个人代缴)$) + $个人代缴$ - $列表.求总和$($公积金订单明细*总数(个人应收)$)
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
sjgr
),
personYs
).
doubleValue
());
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
sjgr
),
personYs
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(单位代缴)$) + $单位代缴$ - $列表.求总和$($公积金订单明细*总数(单位应收)$)
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjdw
),
dwYs
).
doubleValue
());
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjdw
),
dwYs
).
doubleValue
());
}
}
}
else
{
if
(
"预估"
.
equals
(
fundInfo
.
getFd_3add9dd7833db8
()))
{
// $列表.求总和$($公积金订单明细*总数(预估个人代缴)$) + $列表.求总和$($公积金订单明细*总数(预估单位代缴)$) + $预估个人代缴$ + $预估单位代缴$ -$列表.求总和$($公积金订单明细*总数(应收)$)
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
ygDwSum
,
yggr
,
ygdw
),
ys
).
doubleValue
());
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
ygDwSum
,
yggr
,
ygdw
),
ys
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(预估个人代缴)$) + $预估个人代缴$ -$列表.求总和$($公积金订单明细*总数(个人应收)$)
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggr
),
personYs
).
doubleValue
());
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggr
),
personYs
).
doubleValue
());
// $列表.求总和$($公积金订单明细*总数(预估单位代缴)$) + $预估单位代缴$ -$列表.求总和$($公积金订单明细*总数(单位应收)$)
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdw
),
dwYs
).
doubleValue
());
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdw
),
dwYs
).
doubleValue
());
}
else
{
//$列表.求总和$($公积金订单明细*总数(单位代缴)$) +$列表.求总和$($公积金订单明细*总数(个人代缴)$) + $单位代缴$ + $个人代缴$ - $列表.求总和$($公积金订单明细*总数(应收)$)
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjPersonSum
,
sjdw
,
sjgr
),
ys
).
doubleValue
());
fundInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjPersonSum
,
sjdw
,
sjgr
),
ys
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(个人代缴)$) + $个人代缴$ - $列表.求总和$($公积金订单明细*总数(个人应收)$)
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
sjgr
),
personYs
).
doubleValue
());
fundInfo
.
setFd_3b35a65138a7fc
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
sjgr
),
personYs
).
doubleValue
());
//$列表.求总和$($公积金订单明细*总数(单位代缴)$) + $单位代缴$ - $列表.求总和$($公积金订单明细*总数(单位应收)$)
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjdw
),
dwYs
).
doubleValue
());
fundInfo
.
setFd_3b35a6518b73b2
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
sjdw
),
dwYs
).
doubleValue
());
}
}
}
...
...
yifu-ekp/yifu-ekp-biz/src/main/java/com/yifu/cloud/plus/v1/ekp/service/impl/EkpSocialInfoServiceImpl.java
View file @
f1377e03
...
...
@@ -128,10 +128,10 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
if
(
"是"
.
equals
(
socialInfo
.
getFd_3add9de0be85e4
())
&&
"实缴"
.
equals
(
socialInfo
.
getFd_3add9dd7833db8
()))
{
//单位差异
//$列表.求总和$($社保订单明细*总数(实缴单位合计)$)+ $实缴单位合计$ - $列表.求总和$($社保订单明细*总数(预估单位合计)$)
socialInfo
.
setFd_3adfeb53c70f72
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
shdw
),
ygDwSum
).
doubleValue
());
socialInfo
.
setFd_3adfeb53c70f72
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
shdw
),
ygDwSum
).
doubleValue
());
//个人差异
//$列表.求总和$($社保订单明细*总数(实缴个人合计)$)+ $实缴个人合计$ - $列表.求总和$($社保订单明细*总数(预估个人合计)$)
socialInfo
.
setFd_3adfeb5413fb44
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
shgr
),
ygPersonSum
).
doubleValue
());
socialInfo
.
setFd_3adfeb5413fb44
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
shgr
),
ygPersonSum
).
doubleValue
());
}
//Fd_3adfeb7b624f06应收;Fd_3b35a57aee1428个人应收;fd_3b35a57b6e9d0a单位应收
...
...
@@ -146,11 +146,11 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
if
(
"实缴"
.
equals
(
deptInfo
.
getSettleType
()))
{
if
(
"预估"
.
equals
(
socialInfo
.
getFd_3add9dd7833db8
()))
{
//$列表.求总和$($社保订单明细*总数(预估合计)$) + $预估合计$ - $列表.求总和$($社保订单明细*总数(应收)$)
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygSum
,
yghj
),
ys
).
doubleValue
());
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygSum
,
yghj
),
ys
).
doubleValue
());
//$列表.求总和$($社保订单明细*总数(预估个人合计)$) + $预估个人合计$ - $列表.求总和$($社保订单明细*总数(个人应收)$)
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggrhj
),
personYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggrhj
),
personYs
).
doubleValue
());
//$列表.求总和$($社保订单明细*总数(预估单位合计)$) + $预估单位合计$ - $列表.求总和$($社保订单明细*总数(单位应收)$)
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdwbf
),
dwYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdwbf
),
dwYs
).
doubleValue
());
}
else
{
if
(
ygSum
.
doubleValue
()
>
0
)
{
//应收
...
...
@@ -161,28 +161,28 @@ public class EkpSocialInfoServiceImpl extends ServiceImpl<EkpSocialInfoMapper, E
socialInfo
.
setFd_3b35a57b6e9d0a
(
CommonConstants
.
ZERO_INTEGER
.
doubleValue
());
}
else
{
//$列表.求总和$($社保订单明细*总数(实缴合计)$)+ $实缴合计$ - $列表.求总和$($社保订单明细*总数(应收)$)
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjSum
,
sjhj
),
ys
).
doubleValue
());
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjSum
,
sjhj
),
ys
).
doubleValue
());
//$列表.求总和$($社保订单明细*总数(实缴个人合计)$)+ $实缴个人合计$ - $列表.求总和$($社保订单明细*总数(个人应收)$)
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
shgr
),
personYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
shgr
),
personYs
).
doubleValue
());
//列表.求总和$($社保订单明细*总数(实缴单位合计)$)+ $实缴单位合计$ - $列表.求总和$($社保订单明细*总数(单位应收)$)
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
shdw
),
dwYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
shdw
),
dwYs
).
doubleValue
());
}
}
}
else
{
if
(
"预估"
.
equals
(
socialInfo
.
getFd_3add9dd7833db8
()))
{
//$列表.求总和$($社保订单明细*总数(预估合计)$) + $预估合计$-$列表.求总和$($社保订单明细*总数(应收)$)
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygSum
,
yghj
),
ys
).
doubleValue
());
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygSum
,
yghj
),
ys
).
doubleValue
());
//$列表.求总和$( $社保订单明细*总数(预估个人合计)$) + $预估个人合计$-$列表.求总和$($社保订单明细*总数(个人应收)$)
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggrhj
),
personYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygPersonSum
,
yggrhj
),
personYs
).
doubleValue
());
//$列表.求总和$($社保订单明细*总数(预估单位合计)$) + $预估单位合计$-$列表.求总和$($社保订单明细*总数(单位应收)$)
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdwbf
),
dwYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
ygDwSum
,
ygdwbf
),
dwYs
).
doubleValue
());
}
else
{
//$列表.求总和$($社保订单明细*总数(实缴合计)$)+ $实缴合计$ - $列表.求总和$($社保订单明细*总数(应收)$)
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjSum
,
sjhj
),
ys
).
doubleValue
());
socialInfo
.
setFd_3adfeb7b624f06
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjSum
,
sjhj
),
ys
).
doubleValue
());
//$列表.求总和$($社保订单明细*总数(实缴个人合计)$)+ $实缴个人合计$ - $列表.求总和$($社保订单明细*总数(个人应收)$)
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
shgr
),
personYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57aee1428
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjPersonSum
,
shgr
),
personYs
).
doubleValue
());
//$列表.求总和$($社保订单明细*总数(实缴单位合计)$)+ $实缴单位合计$ - $列表.求总和$($社保订单明细*总数(单位应收)$)
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
shdw
),
dwYs
).
doubleValue
());
socialInfo
.
setFd_3b35a57b6e9d0a
(
BigDecimalUtils
.
safeSubtract
(
false
,
BigDecimalUtils
.
safeAdd
(
sjDwSum
,
shdw
),
dwYs
).
doubleValue
());
}
}
}
...
...
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