Commit 3fcb1e98 by zhangxingmin

push

parent 181c298b
...@@ -3,28 +3,40 @@ package com.yd.csf.feign.request.salarysplit; ...@@ -3,28 +3,40 @@ package com.yd.csf.feign.request.salarysplit;
import com.yd.common.dto.PageDto; import com.yd.common.dto.PageDto;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class ApiSalarySplitSummaryPageRequest extends PageDto { public class ApiSalarySplitSummaryPageRequest extends PageDto {
/** // /**
* 转介人名称 // * 转介人名称
*/ // */
private String brokerName; // private String brokerName;
//
// /**
// * 出账状态 可出账、待出账、已出账
// */
// private String status;
/** /**
* 出账状态 可出账、待出账、已出账 * 转介人业务id列表
*/ */
private String status; private List<String> brokerBizIdList;
// /**
// * 出账状态列表 可出账、待出账、已出账
// */
// private List<String> statusList;
/** /**
* 出账月-开始月份 * 出账开始年月(2026-07)
*/ */
private Integer startMonth; private String startMonth;
/** /**
* 出账月-结束月份 * 出账结束年月(2027-09)
*/ */
private Integer endMonth; private String endMonth;
/** /**
* 出账机构 * 出账机构
......
...@@ -34,20 +34,20 @@ ...@@ -34,20 +34,20 @@
on ss.fortune_account_biz_id = fa.fortune_account_biz_id on ss.fortune_account_biz_id = fa.fortune_account_biz_id
and fa.is_deleted = 0 and fa.is_deleted = 0
<where> <where>
<if test="request.brokerName != null and request.brokerName != ''"> <if test="request.brokerBizIdList != null and request.brokerBizIdList.size > 0">
and ss.broker_name like concat('%', #{request.brokerName}, '%') and ss.broker_biz_id in
</if> <foreach collection="request.brokerBizIdList" item="item" index="index" open="(" separator="," close=")">
<if test="request.status != null and request.status != ''"> #{item}
and fa.status = #{request.status} </foreach>
</if> </if>
<!-- 开始月份:大于等于该月第一天 --> <!-- 开始月份:大于等于该月第一天(包含整个月开始) -->
<if test="request.startMonth != null"> <if test="request.startMonth != null and request.startMonth != ''">
and fa.fortune_account_date >= STR_TO_DATE(CONCAT(#{request.startMonth}, '01'), '%Y%m%d') and fa.fortune_account_date >= DATE(CONCAT(#{request.startMonth}, '-01'))
</if> </if>
<!-- 结束月份:小于下月第一天(包含该月全部日期) --> <!-- 结束月份:小于下月第一天(包含整个月结束) -->
<if test="request.endMonth != null"> <if test="request.endMonth != null and request.endMonth != ''">
and fa.fortune_account_date &lt; DATE_ADD(STR_TO_DATE(CONCAT(#{request.endMonth}, '01'), '%Y%m%d'), INTERVAL 1 MONTH) and fa.fortune_account_date &lt; DATE_ADD(DATE(CONCAT(#{request.endMonth}, '-01')), INTERVAL 1 MONTH)
</if> </if>
<if test="request.billOrg != null and request.billOrg != ''"> <if test="request.billOrg != null and request.billOrg != ''">
and ss.bill_org like concat('%', #{request.billOrg}, '%') and ss.bill_org like concat('%', #{request.billOrg}, '%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment