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
798f9978
Commit
798f9978
authored
Mar 30, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪资拆分-相关接口
parent
d2a0364c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/salarysplit/ApiSalarySplitSummaryPageDto.java
+1
-1
yd-csf-service/src/main/resources/mappers/SalarySplitMapper.xml
+14
-2
No files found.
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/salarysplit/ApiSalarySplitSummaryPageDto.java
View file @
798f9978
...
...
@@ -64,7 +64,7 @@ public class ApiSalarySplitSummaryPageDto {
private
Date
fortuneAccountDate
;
/**
* 出账月(出账日期
+2个月
)
* 出账月(出账日期
格式化:2026-03-30 变成 202603
)
*/
private
String
fortuneAccountMonth
;
...
...
yd-csf-service/src/main/resources/mappers/SalarySplitMapper.xml
View file @
798f9978
...
...
@@ -26,9 +26,12 @@
ss.bill_org,
fa.status,
fa.amount,
fa.currency
fa.currency,
DATE_FORMAT(fa.fortune_account_date, '%Y%m') as fortune_account_month
from salary_split ss
inner join fortune_account fa on ss.fortune_account_biz_id = fa.fortune_account_biz_id and fa.is_deleted = 0
inner join fortune_account fa
on ss.fortune_account_biz_id = fa.fortune_account_biz_id
and fa.is_deleted = 0
<where>
<if
test=
"request.brokerName != null and request.brokerName != ''"
>
and ss.broker_name like concat('%', #{request.brokerName}, '%')
...
...
@@ -37,6 +40,15 @@
and fa.status = #{request.status}
</if>
<!-- 开始月份:大于等于该月第一天 -->
<if
test=
"request.startMonth != null"
>
and fa.fortune_account_date >= STR_TO_DATE(CONCAT(#{request.startMonth}, '01'), '%Y%m%d')
</if>
<!-- 结束月份:小于下月第一天(包含该月全部日期) -->
<if
test=
"request.endMonth != null"
>
and fa.fortune_account_date
<
DATE_ADD(STR_TO_DATE(CONCAT(#{request.endMonth}, '01'), '%Y%m%d'), INTERVAL 1 MONTH)
</if>
and ss.is_deleted = 0
</where>
</select>
...
...
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