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
17e36f6c
Commit
17e36f6c
authored
Nov 21, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化接口修改
parent
9bcba46c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
30 deletions
+39
-30
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+3
-2
TPaymentInfoMapper.java
.../cloud/plus/v1/yifu/social/mapper/TPaymentInfoMapper.java
+4
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+14
-22
DoJointSocialTask.java
...ifu/cloud/plus/v1/yifu/social/util/DoJointSocialTask.java
+3
-6
TPaymentInfoMapper.xml
...cial-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
+15
-0
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
17e36f6c
...
@@ -52,6 +52,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -52,6 +52,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.net.URLEncoder
;
import
java.net.URLEncoder
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
...
@@ -1756,7 +1757,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -1756,7 +1757,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getManagementType
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getManagementType
()))
{
gMoney
=
BigDecimalUtils
.
safeMultiply
(
actualMoney
,
gMoney
=
BigDecimalUtils
.
safeMultiply
(
actualMoney
,
settleDomain
.
getManagementFee
().
divide
(
new
BigDecimal
(
"100"
),
settleDomain
.
getManagementFee
().
divide
(
new
BigDecimal
(
"100"
),
CommonConstants
.
FIVE_INT
,
BigDecimal
.
ROUND_
HALF_UP
));
CommonConstants
.
FIVE_INT
,
RoundingMode
.
HALF_UP
));
isBl
=
true
;
isBl
=
true
;
}
}
//判断是否存在当月的商险收入数据
//判断是否存在当月的商险收入数据
...
@@ -1789,7 +1790,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -1789,7 +1790,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getRiskFundType
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getRiskFundType
()))
{
gMoney
=
BigDecimalUtils
.
safeMultiply
(
actualMoney
,
gMoney
=
BigDecimalUtils
.
safeMultiply
(
actualMoney
,
settleDomain
.
getRiskFundFee
().
divide
(
new
BigDecimal
(
"100"
),
settleDomain
.
getRiskFundFee
().
divide
(
new
BigDecimal
(
"100"
),
CommonConstants
.
FIVE_INT
,
BigDecimal
.
ROUND_
HALF_UP
));
CommonConstants
.
FIVE_INT
,
RoundingMode
.
HALF_UP
));
isBl
=
true
;
isBl
=
true
;
}
}
//判断是否存在当月的商险收入数据
//判断是否存在当月的商险收入数据
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/mapper/TPaymentInfoMapper.java
View file @
17e36f6c
...
@@ -191,4 +191,8 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> {
...
@@ -191,4 +191,8 @@ public interface TPaymentInfoMapper extends BaseMapper<TPaymentInfo> {
*/
*/
List
<
TPaymentInfo
>
getTPaymentFundIncomeInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
List
<
TPaymentInfo
>
getTPaymentFundIncomeInfo
(
@Param
(
"tPaymentInfo"
)
TPaymentInfoSearchVo
searchVo
);
void
updateBySocialPayment
(
@Param
(
"id"
)
String
id
);
void
updateBySocialIncomePayment
(
@Param
(
"id"
)
String
id
);
}
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
17e36f6c
...
@@ -4287,31 +4287,23 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
...
@@ -4287,31 +4287,23 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
settleDomain
))
{
if
(
Common
.
isNotNull
(
settleDomain
))
{
// 含有社保,则计算收入
// 含有社保,则计算收入
if
(
Common
.
isNotNull
(
settleDomain
.
getManageServerItem
())
&&
settleDomain
.
getManageServerItem
()
if
(
Common
.
isNotNull
(
settleDomain
.
getManageServerItem
())
&&
settleDomain
.
getManageServerItem
()
.
contains
(
CommonConstants
.
TWO_STRING
))
{
.
contains
(
CommonConstants
.
TWO_STRING
)
&&
!
isExist
&&
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getManagementTag
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getMrSettleType
()))
{
//预估模式
//预估模式
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getManagementTag
()))
{
//预估模式只有按人次和人数收费
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getMrSettleType
()))
{
createIncomeInsurance
(
library
,
settleDomain
,
CommonConstants
.
ONE_STRING
,
//预估模式只有按人次和人数收费
settleDomain
.
getManagementFee
().
toString
(),
settleDomain
.
getManagementType
(),
if
(!
isExist
)
{
settleDomain
.
getManagementFee
());
createIncomeInsurance
(
library
,
settleDomain
,
CommonConstants
.
ONE_STRING
,
settleDomain
.
getManagementFee
().
toString
(),
settleDomain
.
getManagementType
(),
settleDomain
.
getManagementFee
());
}
}
}
}
}
if
(
Common
.
isNotNull
(
settleDomain
.
getRiskServerItem
())
&&
settleDomain
.
getRiskServerItem
()
if
(
Common
.
isNotNull
(
settleDomain
.
getRiskServerItem
())
&&
settleDomain
.
getRiskServerItem
()
.
contains
(
CommonConstants
.
TWO_STRING
))
{
.
contains
(
CommonConstants
.
TWO_STRING
)
&&
!
isExist
&&
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getRiskFundTag
()))
{
CommonConstants
.
ZERO_STRING
.
equals
(
settleDomain
.
getRiskFundTag
())
&&
//预估模式
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getMrSettleType
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
settleDomain
.
getMrSettleType
()))
{
//预估模式
if
(!
isExist
)
{
createIncomeInsurance
(
library
,
settleDomain
,
CommonConstants
.
TWO_STRING
,
createIncomeInsurance
(
library
,
settleDomain
,
CommonConstants
.
TWO_STRING
,
settleDomain
.
getRiskFundFee
().
toString
(),
settleDomain
.
getRiskFundType
(),
settleDomain
.
getRiskFundFee
().
toString
(),
settleDomain
.
getRiskFundType
(),
settleDomain
.
getRiskFundFee
());
settleDomain
.
getRiskFundFee
());
}
}
}
}
}
}
}
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/util/DoJointSocialTask.java
View file @
17e36f6c
...
@@ -123,8 +123,7 @@ public class DoJointSocialTask {
...
@@ -123,8 +123,7 @@ public class DoJointSocialTask {
income
.
setSendMonth
(
DateUtil
.
addMonth
(
0
));
income
.
setSendMonth
(
DateUtil
.
addMonth
(
0
));
income
.
setEkpId
(
sendBack
);
income
.
setEkpId
(
sendBack
);
incomeMapper
.
updateById
(
income
);
incomeMapper
.
updateById
(
income
);
paymentInfo
.
setPushStatus
(
CommonConstants
.
ZERO_STRING
);
paymentInfoMapper
.
updateBySocialIncomePayment
(
paymentInfo
.
getId
());
paymentInfoMapper
.
updateById
(
paymentInfo
);
}
else
{
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateTime
(
new
Date
());
...
@@ -325,8 +324,7 @@ public class DoJointSocialTask {
...
@@ -325,8 +324,7 @@ public class DoJointSocialTask {
body
=
ekpSocialUtil
.
sendToEKP
(
socialParam
);
body
=
ekpSocialUtil
.
sendToEKP
(
socialParam
);
}
}
if
(
Common
.
isNotNull
(
body
)
&&
body
.
length
()
==
32
)
{
if
(
Common
.
isNotNull
(
body
)
&&
body
.
length
()
==
32
)
{
library
.
setPushStatus
(
CommonConstants
.
ZERO_STRING
);
paymentInfoMapper
.
updateBySocialPayment
(
library
.
getId
());
paymentInfoMapper
.
updateById
(
library
);
}
else
{
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateTime
(
new
Date
());
...
@@ -368,8 +366,7 @@ public class DoJointSocialTask {
...
@@ -368,8 +366,7 @@ public class DoJointSocialTask {
body
=
ekpFundUtil
.
sendToEKP
(
fundParam
);
body
=
ekpFundUtil
.
sendToEKP
(
fundParam
);
}
}
if
(
Common
.
isNotNull
(
body
)
&&
body
.
length
()
==
32
)
{
if
(
Common
.
isNotNull
(
body
)
&&
body
.
length
()
==
32
)
{
library
.
setPushStatus
(
CommonConstants
.
ZERO_STRING
);
paymentInfoMapper
.
updateBySocialPayment
(
library
.
getId
());
paymentInfoMapper
.
updateById
(
library
);
}
else
{
}
else
{
TSendEkpError
error
=
new
TSendEkpError
();
TSendEkpError
error
=
new
TSendEkpError
();
error
.
setCreateTime
(
new
Date
());
error
.
setCreateTime
(
new
Date
());
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TPaymentInfoMapper.xml
View file @
17e36f6c
...
@@ -1217,4 +1217,19 @@
...
@@ -1217,4 +1217,19 @@
</where>
</where>
</select>
</select>
<!-- 更改社保公积金推送状态 -->
<update
id=
"updateBySocialPayment"
>
update t_payment_info
set PUSH_STATUS = '0'
where
ID = #{id}
</update>
<!-- 更改社保公积金推送状态 -->
<update
id=
"updateBySocialIncomePayment"
>
update t_payment_info
set INCOME_STATUS = '0'
where
ID = #{id}
</update>
</mapper>
</mapper>
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