From a98e0654b0bc831f9635aa35b2bd90269318c343 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Tue, 21 Jan 2025 01:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E5=AE=8C=E7=BB=93=E5=88=97?= =?UTF-8?q?=E8=A1=A8BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/AftersalesWorkOrderMapper.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml index f9e8f037f..8a5f4173a 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml @@ -2598,12 +2598,12 @@ SUM( laprr.money ) AS money, lawo.warehouse_service_name AS warehouseServiceName, lawo.headquarters_name AS headquartersName, - GROUP_CONCAT( + GROUP_CONCAT(DISTINCT CONCAT( '受款方:', lacr2.indemnitor, '受款原因:', lacr2.reason, '受款金额:', lacr2.money )) AS indemnitorInfo, - IFNULL( SUM( lacr2.money ), 0 ) AS indemnitorMoney, - GROUP_CONCAT( + IFNULL( SUM(DISTINCT lacr2.money ), 0 ) AS indemnitorMoney, + GROUP_CONCAT(DISTINCT CONCAT( '赔款方:', lacr1.responsible_party, '赔款原因:', lacr1.reason_receiving_payment, '赔款金额:', lacr1.money )) AS responsibleInfo, - IFNULL( SUM( lacr1.money ), 0 ) AS responsibleMoney, + IFNULL( SUM(DISTINCT lacr1.money ), 0 ) AS responsibleMoney, GROUP_CONCAT( DISTINCT lapr.business_name ) AS businessName, GROUP_CONCAT( DISTINCT lapr.person_responsible_name ) AS personResponsibleName, IFNULL(SUM( lapr.responsibility_ratio ),0) AS responsibilityRatio, @@ -4140,16 +4140,16 @@ lawo.commit_time AS commitTime, lawo.arbitration_time AS arbitrationTime, lawo.audit_time AS auditTime, - GROUP_CONCAT( laprr.result_type ) AS resultType, + GROUP_CONCAT(DISTINCT laprr.result_type ) AS resultType, SUM( laprr.money ) AS money, lawo.warehouse_service_name AS warehouseServiceName, lawo.headquarters_name AS headquartersName, - GROUP_CONCAT( + GROUP_CONCAT(DISTINCT CONCAT( '受款方:', lacr2.indemnitor, '受款原因:', lacr2.reason, '受款金额:', lacr2.money )) AS indemnitorInfo, - IFNULL( SUM( lacr2.money ), 0 ) AS indemnitorMoney, - GROUP_CONCAT( + IFNULL( SUM(DISTINCT lacr2.money ), 0 ) AS indemnitorMoney, + GROUP_CONCAT(DISTINCT CONCAT( '赔款方:', lacr1.responsible_party, '赔款原因:', lacr1.reason_receiving_payment, '赔款金额:', lacr1.money )) AS responsibleInfo, - IFNULL( SUM( lacr1.money ), 0 ) AS responsibleMoney, + IFNULL( SUM(DISTINCT lacr1.money ), 0 ) AS responsibleMoney, GROUP_CONCAT( DISTINCT lapr.business_name ) AS businessName, GROUP_CONCAT( DISTINCT lapr.person_responsible_name ) AS personResponsibleName, IFNULL(SUM( lapr.responsibility_ratio ),0) AS responsibilityRatio,