减免审核

This commit is contained in:
hongchao 2026-01-06 16:40:01 +08:00
parent e1760ce857
commit 3bf0bb85bf
1 changed files with 9 additions and 11 deletions

View File

@ -7,15 +7,15 @@
<select id="getList" resultType="com.bonus.material.settlement.domain.SltAgreementReduceRecord"> <select id="getList" resultType="com.bonus.material.settlement.domain.SltAgreementReduceRecord">
SELECT SELECT
sra.id as id, sra.id as id,
sra.code as code,
sra.create_time as createTime, sra.create_time as createTime,
su.user_name as createBy, su.user_name as createBy,
bu.unit_name as unitName, bu.unit_name as unitName,
bp.pro_name as projectName, bp.pro_name as projectName,
SUM(srd.lease_price * srd.num) as leasePrice,
SUM(srd.lease_money) as leaseMoney,
swr.workflow_status as status, swr.workflow_status as status,
a.leaseMoneyAll as leaseMoneyAll, sd.dept_name AS impUnitName,
sd.dept_name AS impUnitName a.leaseMoney,
a.leaseMoneyAll
FROM FROM
slt_reduce_apply sra slt_reduce_apply sra
LEFT JOIN slt_reduce_details srd on sra.id=srd.apply_id LEFT JOIN slt_reduce_details srd on sra.id=srd.apply_id
@ -28,13 +28,14 @@
LEFT JOIN LEFT JOIN
( (
SELECT SELECT
sra.agreement_id as agreementId, sra.id as id,
SUM(srd.lease_money) as leaseMoneyAll ROUND(SUM(srd.lease_price * srd.num * (DATEDIFF(srd.end_time, srd.start_time) + 1)), 2) as leaseMoney,
ROUND(SUM(srd.lease_money), 2) as leaseMoneyAll
FROM FROM
slt_reduce_apply sra slt_reduce_apply sra
LEFT JOIN slt_reduce_details srd on sra.id=srd.apply_id LEFT JOIN slt_reduce_details srd on sra.id=srd.apply_id
GROUP BY sra.agreement_id GROUP BY sra.id
) a on a.agreementId=sra.agreement_id ) a on a.id=sra.id
where 1=1 where 1=1
<if test="startTime != null and endTime != ''"> <if test="startTime != null and endTime != ''">
@ -53,9 +54,6 @@
<if test="status != null and status!=''"> <if test="status != null and status!=''">
AND swr.workflow_status = #{status} AND swr.workflow_status = #{status}
</if> </if>
<if test="taskStatus !=null">
AND sra.status = #{taskStatus}
</if>
GROUP BY sra.id GROUP BY sra.id
ORDER BY sra.create_time DESC ORDER BY sra.create_time DESC
</select> </select>