Browse Source

理赔金未出列表修复

dev
汤建军 2 months ago
parent
commit
df4c9c2d50
  1. 55
      blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml

55
blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/mapper/AftersalesWorkOrderMapper.xml

@ -655,38 +655,37 @@
<select id="getListSettlementNew" resultType="com.logpm.aftersales.entity.AftersalesSettlementEntity">
SELECT
`lawo`.`work_order_number` AS workOrderNumber,
`lap`.`business_name` AS businessName,
`ldpl`.`brand_name` AS brandName,
`ldsa`.`mall_name` AS mallName,
`laap`.`waybill_number` AS waybillNumber,
`lawo`.`work_order_type` AS workOrderType,
`lapr`.`result_type` AS resultType,
`lapr`.`id` AS `laprId`,
`lawo`.`discovery_node` AS discoveryNode,
`lapr`.`result_description` AS resultDescription,
`lawo`.`vehicle_route` AS vehicleRoute,
`lacr`.`indemnitor` AS `indemnitor`,
`lacr`.`reason` AS `reason`,
IFNUll(sum(`lapr`.`money`),0 ) AS `money`,
`lawo`.`id` AS `lawoId`,
`lawo`.`create_time` AS createTime,
`lawo`.`process_number` AS processNumber,
`lawo`.`work_order_status` AS workOrderStatus,
`lawo`.`over_time` AS `over_time`,
`lap`.`business_id` AS `business_id`,
`lap`.`processing_status` AS `processing_status`,
`lap`.`is_deleted` AS `is_deleted`
lawo.work_order_number AS workOrderNumber,
lap.business_name AS businessName,
laap.brand_name AS brandName,
ldsa.mall_name AS mallName,
laap.waybill_number AS waybillNumber,
lawo.work_order_type AS workOrderType,
lapr.result_type AS resultType,
lapr.id AS laprId,
lawo.discovery_node AS discoveryNode,
lapr.result_description AS resultDescription,
lawo.vehicle_route AS vehicleRoute,
lacr.indemnitor AS indemnitor,
lacr.reason AS reason,
IFNUll(sum(lapr.money),0 ) AS money,
lawo.id AS lawoId,
lawo.create_time AS createTime,
lawo.process_number AS processNumber,
lawo.work_order_status AS workOrderStatus,
lawo.over_time AS over_time,
lap.business_id AS business_id,
lap.processing_status AS processing_status,
lap.is_deleted AS is_deleted
from logpm_aftersales_work_order lawo left JOIN
logpm_aftersales_processor lap on lap.work_order_id= lawo.id
left join logpm_aftersales_abnormal_package laap on laap.work_order_id=lawo.id
LEFT JOIN `logpm_distribution_parcel_list` `ldpl` ON `ldpl`.`order_package_code` = `laap`.`package_code`
LEFT JOIN `logpm_distribution_stock_article` `ldsa` ON `ldsa`.`id` = `ldpl`.`stock_article_id`
LEFT JOIN `logpm_aftersales_processing_results` `lapr` ON `lapr`.`work_order_id` = `lap`.`work_order_id`
LEFT JOIN `logpm_aftersales_completion_record` `lacr` ON `lacr`.`work_order_id` = `lapr`.`work_order_id`
left join logpm_aftersales_abnormal_package laap on laap.work_order_id=lawo.id AND laap.is_deleted = 0
LEFT JOIN logpm_distribution_stock_article ldsa ON ldsa.id = laap.order_id
LEFT JOIN logpm_aftersales_processing_results lapr ON lapr.work_order_id = lap.work_order_id AND lapr.is_deleted = 0
LEFT JOIN logpm_aftersales_completion_record lacr ON lacr.work_order_id = lapr.work_order_id
<where>
`lawo`.`work_order_status` = 90 and lap.is_deleted = 0
lawo.work_order_status = 90 and lap.is_deleted = 0
<if test="param.businessId != null"> and lap.business_id =#{param.businessId}</if>
<if test="param.businessName != null and param.businessName != ''"> and lap.business_name LIKE CONCAT( #{param.businessName}, '%')</if>
<if test="param.workOrderNumber != null and param.workOrderNumber != ''"> and lawo.work_order_number LIKE CONCAT( #{param.workOrderNumber}, '%')</if>

Loading…
Cancel
Save