Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
8f2fdd79
Commit
8f2fdd79
authored
Jan 04, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端对接问题修复40
parent
a051f0df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
21 deletions
+23
-21
yd-csf-service/src/main/java/com/yd/csf/service/dto/FortuneUpdateRequest.java
+17
-17
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+6
-4
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/dto/FortuneUpdateRequest.java
View file @
8f2fdd79
...
...
@@ -10,9 +10,9 @@ import java.util.Date;
@Data
public
class
FortuneUpdateRequest
implements
Serializable
{
/**
* 保单
发佣
业务id
* 保单
出账
业务id
*/
@Schema
(
description
=
"保单
发佣
业务id"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
@Schema
(
description
=
"保单
出账
业务id"
,
requiredMode
=
Schema
.
RequiredMode
.
REQUIRED
)
private
String
fortuneBizId
;
/**
...
...
@@ -34,15 +34,15 @@ public class FortuneUpdateRequest implements Serializable {
private
String
policyNo
;
/**
*
发佣
期数(1=第一年; 2=第二年; 3=第三年; 4=第四年; 5=第五年)
*
出账
期数(1=第一年; 2=第二年; 3=第三年; 4=第四年; 5=第五年)
*/
@Schema
(
description
=
"
发佣
期数(1=第一年; 2=第二年; 3=第三年; 4=第四年; 5=第五年)"
)
@Schema
(
description
=
"
出账
期数(1=第一年; 2=第二年; 3=第三年; 4=第四年; 5=第五年)"
)
private
Integer
fortunePeriod
;
/**
*
发佣
总期数
*
出账
总期数
*/
@Schema
(
description
=
"
发佣
总期数"
)
@Schema
(
description
=
"
出账
总期数"
)
private
Integer
fortuneTotalPeriod
;
/**
...
...
@@ -70,33 +70,33 @@ public class FortuneUpdateRequest implements Serializable {
private
String
teamBizId
;
/**
*
发佣
名称
*
出账
名称
*/
@Schema
(
description
=
"
发佣
名称"
)
@Schema
(
description
=
"
出账
名称"
)
private
String
fortuneName
;
/**
*
发佣
类型
*
出账
类型
*/
@Schema
(
description
=
"
发佣
类型"
)
@Schema
(
description
=
"
出账
类型"
)
private
String
fortuneType
;
/**
*
发佣
金额
*
本期出账
金额
*/
@Schema
(
description
=
"
发佣
金额"
)
private
BigDecimal
a
mount
;
@Schema
(
description
=
"
本期出账
金额"
)
private
BigDecimal
currentPaymentA
mount
;
/**
*
发佣
币种
*
出账
币种
*/
@Schema
(
description
=
"
发佣
币种"
)
@Schema
(
description
=
"
出账
币种"
)
private
String
currency
;
/**
*
发佣
日期
*
出账
日期
*/
@Schema
(
description
=
"
发佣
日期"
)
@Schema
(
description
=
"
出账
日期"
)
private
Date
payoutDate
;
/**
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
8f2fdd79
...
...
@@ -173,10 +173,12 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
}
// 如果是部分出账,新增一条待出账的实际出账记录(fortune)
if
(
fortuneUpdateRequest
.
getAmount
().
compareTo
(
expectedFortune
.
getAmount
())
<
0
)
{
BigDecimal
currentPaymentAmount
=
fortuneUpdateRequest
.
getCurrentPaymentAmount
();
if
(
currentPaymentAmount
!=
null
&&
currentPaymentAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
currentPaymentAmount
.
compareTo
(
expectedFortune
.
getAmount
())
<
0
)
{
Fortune
newFortune
=
new
Fortune
();
BeanUtils
.
copyProperties
(
fortune
,
newFortune
);
newFortune
.
setAmount
(
expectedFortune
.
getAmount
().
subtract
(
fortuneUpdateRequest
.
getAmount
()));
BeanUtils
.
copyProperties
(
fortune
,
newFortune
,
"id"
,
"fortuneBizId"
);
newFortune
.
setAmount
(
expectedFortune
.
getAmount
());
newFortune
.
setCurrentPaymentAmount
(
expectedFortune
.
getAmount
().
subtract
(
currentPaymentAmount
));
newFortune
.
setStatus
(
FortuneStatusEnum
.
WAIT
.
getItemValue
());
newFortune
.
setFortuneBizId
(
RandomStringGenerator
.
generateBizId16
(
CommonEnum
.
UID_TYPE_FORTUNE
.
getCode
()));
newFortune
.
setExpectedFortuneBizId
(
expectedFortune
.
getExpectedFortuneBizId
());
...
...
@@ -205,7 +207,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
private
String
calculateReconciliationYearMonth
(
Fortune
fortune
)
{
// 出账年月为次月
LocalDate
reconciliationDate
=
LocalDate
.
parse
(
fortune
.
getReconciliationYearMonth
()
+
"-01"
).
plusMonths
(
1
);
LocalDate
reconciliationDate
=
LocalDate
.
now
(
).
plusMonths
(
1
);
return
reconciliationDate
.
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM"
));
}
...
...
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