From b8905ea4f4610538abe69f77343b6c3b68a17cd4 Mon Sep 17 00:00:00 2001 From: syruan <15555146157@163.com> Date: Thu, 28 Aug 2025 18:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E7=BB=93=E7=AE=97=E8=B4=B9=E7=94=A8?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/material/settlement/SltAgreementInfoMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml index df79e383..5e90f0b0 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/settlement/SltAgreementInfoMapper.xml @@ -796,8 +796,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" saa.create_time as createTime, SUM(IF(sad.slt_type = '1',sad.money,0)) AS leaseCost, SUM(IF(sad.slt_type = '2',sad.money,0)) AS loseCost, - SUM(IF(sad.slt_type = '3',sad.money,0)) AS repairCost, - SUM(IF(sad.slt_type = '4',sad.money,0)) AS scrapCost, + SUM(IF(sad.slt_type = '3' AND sad.is_charge = '1',sad.money,0)) AS repairCost, + SUM(IF(sad.slt_type = '4' AND sad.is_charge = '1',sad.money,0)) AS scrapCost, case when saa.status = '1' then '1' when saa.status = '2' then '2' when saa.status = '3' then '3' end as sltStatus FROM bm_agreement_info bai