|
|
|
@ -92,7 +92,7 @@
|
|
|
|
|
lawo.warehouse_id warehouseId, |
|
|
|
|
lawo.investigation_process investigationProcess, |
|
|
|
|
lawo.customer_service_id customerServiceId, |
|
|
|
|
lawo.compensation_money totalAmountNum, |
|
|
|
|
IFNULL( sum( lapr.money ), 0 ) AS totalAmountNum, |
|
|
|
|
GROUP_CONCAT(DISTINCT lapr.result_type) AS resultTypes, |
|
|
|
|
GROUP_CONCAT(DISTINCT lapr.compensation_method) AS compensationMethods |
|
|
|
|
FROM |
|
|
|
@ -1109,7 +1109,6 @@
|
|
|
|
|
GROUP_CONCAT(DISTINCT lapr.result_type) AS resultTypes, |
|
|
|
|
IFNULL( sum( lapr.money ), 0 ) AS totalAmountNum, |
|
|
|
|
lawo.ceator, |
|
|
|
|
lawo.compensation_money totalAmountNum, |
|
|
|
|
IF(lawo.work_order_status = '80',lawo.update_time,'') AS completeTime, |
|
|
|
|
IF(lawo.work_order_status = '100','是','否') AS isAppeal, |
|
|
|
|
lawo.process_number, |
|
|
|
@ -1150,7 +1149,6 @@
|
|
|
|
|
a.id) AS t ON t.id = lawo.id |
|
|
|
|
LEFT JOIN logpm_aftersales_processing_results AS lapr ON lapr.work_order_id = lawo.id AND lapr.is_deleted = 0 |
|
|
|
|
LEFT JOIN logpm_aftersales_person_responsible AS laprr ON laprr.word_order_id = lawo.id AND laprr.is_deleted = '0' |
|
|
|
|
<where> |
|
|
|
|
lawo.is_deleted = 0 |
|
|
|
|
<if test="param.workOrderNumbers != null and param.workOrderNumbers != '' "> |
|
|
|
|
and lawo.work_order_number in |
|
|
|
@ -1235,7 +1233,7 @@
|
|
|
|
|
<if test="param.brandName != null and param.brandName != '' ">and t.brand_name like concat('%',#{param.brandName},'%') </if> |
|
|
|
|
<if test="param.waybillNumber != null and param.waybillNumber != ''">and t.waybill_number like concat('%',#{param.waybillNumber},'%') </if> |
|
|
|
|
<if test="param.packageCode != null and param.packageCode != ''">and t.package_code like concat('%',#{param.packageCode},'%') </if> |
|
|
|
|
</where> |
|
|
|
|
|
|
|
|
|
group by lawo.id |
|
|
|
|
ORDER BY lawo.create_time DESC |
|
|
|
|
</select> |
|
|
|
|