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,