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
be6939b6
Commit
be6939b6
authored
Apr 21, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into prod
parents
2df7bfc8
b68f25f7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
31 deletions
+17
-31
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+8
-10
yd-csf-feign/src/main/java/com/yd/csf/feign/request/expectedfortune/ExpectedFortuneUpdateRequest.java
+3
-3
yd-csf-service/src/main/java/com/yd/csf/service/helper/SpeciesConditionMatcher.java
+2
-2
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
+3
-15
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
+1
-1
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
be6939b6
...
@@ -1274,16 +1274,14 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
...
@@ -1274,16 +1274,14 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
ExpectedFortune
updateExpectedFortune
=
new
ExpectedFortune
();
ExpectedFortune
updateExpectedFortune
=
new
ExpectedFortune
();
BeanUtils
.
copyProperties
(
request
,
updateExpectedFortune
);
BeanUtils
.
copyProperties
(
request
,
updateExpectedFortune
);
updateExpectedFortune
.
setId
(
expectedFortune
.
getId
());
updateExpectedFortune
.
setId
(
expectedFortune
.
getId
());
// 默认结算汇率
updateExpectedFortune
.
setDefaultExchangeRate
(
// 如果金额变更,则需要重新计算港币金额和待出账金额
queryExchangeRateByFeign
(
if
(
ObjectUtils
.
notEqual
(
expectedFortune
.
getHkdAmount
(),
request
.
getHkdAmount
()))
{
updateExpectedFortune
.
getCurrency
(),
// 计算港币金额
"HKD"
updateExpectedFortune
.
setHkdAmount
(
request
.
getHkdAmount
());
));
// 更新待出账金额
// 计算港币金额
updateExpectedFortune
.
setUnpaidAmount
(
request
.
getHkdAmount
());
updateExpectedFortune
.
setHkdAmount
(
updateExpectedFortune
.
getAmount
().
multiply
(
updateExpectedFortune
.
getDefaultExchangeRate
()));
}
// 更新待出账金额
updateExpectedFortune
.
setUnpaidAmount
(
updateExpectedFortune
.
getHkdAmount
());
// 获取当前登录用户
// 获取当前登录用户
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/request/expectedfortune/ExpectedFortuneUpdateRequest.java
View file @
be6939b6
...
@@ -36,10 +36,10 @@ public class ExpectedFortuneUpdateRequest {
...
@@ -36,10 +36,10 @@ public class ExpectedFortuneUpdateRequest {
private
LocalDate
actualPayoutDate
;
private
LocalDate
actualPayoutDate
;
/**
/**
* 出账金额
*
港币
出账金额
*/
*/
@Schema
(
description
=
"出账金额"
)
@Schema
(
description
=
"
港币
出账金额"
)
private
BigDecimal
a
mount
;
private
BigDecimal
hkdA
mount
;
/**
/**
* 出账状态
* 出账状态
...
...
yd-csf-service/src/main/java/com/yd/csf/service/helper/SpeciesConditionMatcher.java
View file @
be6939b6
...
@@ -79,10 +79,10 @@ public class SpeciesConditionMatcher {
...
@@ -79,10 +79,10 @@ public class SpeciesConditionMatcher {
BigDecimal
min
=
new
BigDecimal
(
left
);
BigDecimal
min
=
new
BigDecimal
(
left
);
return
actual
.
compareTo
(
min
)
>
0
;
return
actual
.
compareTo
(
min
)
>
0
;
}
else
{
}
else
{
// "0-10" 表示
(
0, 10]
// "0-10" 表示
[
0, 10]
BigDecimal
min
=
new
BigDecimal
(
left
);
BigDecimal
min
=
new
BigDecimal
(
left
);
BigDecimal
max
=
new
BigDecimal
(
right
);
BigDecimal
max
=
new
BigDecimal
(
right
);
return
actual
.
compareTo
(
min
)
>
0
&&
actual
.
compareTo
(
max
)
<=
0
;
return
actual
.
compareTo
(
min
)
>
=
0
&&
actual
.
compareTo
(
max
)
<=
0
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
false
;
return
false
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
View file @
be6939b6
...
@@ -983,11 +983,6 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
...
@@ -983,11 +983,6 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"来佣记录不存在"
);
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"来佣记录不存在"
);
}
}
CommissionExpected
commissionExpected
=
commissionExpectedService
.
getByBizId
(
commission
.
getCommissionExpectedBizId
());
if
(
commissionExpected
!=
null
)
{
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"预计来佣已存在"
);
}
// 获取当前登录用户
// 获取当前登录用户
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
...
@@ -995,16 +990,9 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
...
@@ -995,16 +990,9 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
CommissionExpected
expected
=
new
CommissionExpected
();
CommissionExpected
expected
=
new
CommissionExpected
();
BeanUtils
.
copyProperties
(
commission
,
expected
,
"id"
,
"remark"
);
BeanUtils
.
copyProperties
(
commission
,
expected
,
"id"
,
"remark"
);
expected
.
setCommissionExpectedBizId
(
RandomStringGenerator
.
generateBizId16
(
"commission_expected"
));
expected
.
setCommissionExpectedBizId
(
RandomStringGenerator
.
generateBizId16
(
"commission_expected"
));
expected
.
setPremium
(
new
BigDecimal
(
commission
.
getPremium
()));
expected
.
setCommissionRatio
(
commission
.
getCurrentCommissionRatio
());
if
(
ObjectUtils
.
isEmpty
(
commission
.
getReconciliationCompanyCode
()))
{
if
(
ObjectUtils
.
isEmpty
(
commission
.
getReconciliationCompanyBizId
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"来佣记录未关联对账公司"
);
}
// 调用对账公司 feignclient,查询对账公司编码
String
reconciliationCompanyCode
=
policyFollowService
.
queryReconciliationCompanyByFeign
(
commission
.
getReconciliationCompanyBizId
());
expected
.
setReconciliationCompanyCode
(
reconciliationCompanyCode
);
commission
.
setReconciliationCompanyCode
(
reconciliationCompanyCode
);
}
// 生成应收单编号
// 生成应收单编号
expected
.
setReceivableNo
(
receivableService
.
generateReceivableNo
(
expected
.
setReceivableNo
(
receivableService
.
generateReceivableNo
(
commission
.
getCommissionBizType
(),
commission
.
getCommissionBizType
(),
...
@@ -1013,7 +1001,7 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
...
@@ -1013,7 +1001,7 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
// 设置预计入账金额、已来佣金额、待入账金额
// 设置预计入账金额、已来佣金额、待入账金额
expected
.
setExpectedAmount
(
commission
.
getHkdAmount
());
expected
.
setExpectedAmount
(
commission
.
getHkdAmount
());
expected
.
setPaidAmount
(
commission
.
getHkdAmount
());
expected
.
setPaidAmount
(
commission
.
getHkdAmount
());
expected
.
setPaidRatio
(
null
);
expected
.
setPaidRatio
(
commission
.
getCurrentCommissionRatio
()
);
expected
.
setDefaultExchangeRate
(
commission
.
getExchangeRate
());
expected
.
setDefaultExchangeRate
(
commission
.
getExchangeRate
());
expected
.
setCommissionDate
(
commission
.
getCommissionDate
());
expected
.
setCommissionDate
(
commission
.
getCommissionDate
());
expected
.
setStatus
(
CommissionExpectedStatusEnum
.
COMPARED
.
getItemValue
());
expected
.
setStatus
(
CommissionExpectedStatusEnum
.
COMPARED
.
getItemValue
());
...
...
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
View file @
be6939b6
...
@@ -233,7 +233,7 @@ public class FortuneVO implements Serializable {
...
@@ -233,7 +233,7 @@ public class FortuneVO implements Serializable {
*/
*/
@Schema
(
description
=
"出账日(实)"
)
@Schema
(
description
=
"出账日(实)"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
actualPayoutDate
;
private
Local
Date
actualPayoutDate
;
/**
/**
* 是否含税 0=No, 1=Yes
* 是否含税 0=No, 1=Yes
...
...
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