|
|
|
@ -60,4 +60,19 @@
|
|
|
|
|
SELECT * FROM logpm_aftersales_work_order ${ew.customSqlSegment} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getPendingWorkOrder" resultType="com.logpm.aftersales.vo.AftersalesWorkOrderVO"> |
|
|
|
|
select law.id,law.work_order_type, law.initiation_identification,law.discovery_node,law.work_order_number,law.waybill_number,law.order_code, law.train_number, law.first, |
|
|
|
|
law.secondary, law.vehicle_route,law.deliver_goods_time, law.discovery_time, law.warehousing_time, law.waybill_mall,law.remarks, law.delivery_time,law.delivery_driver |
|
|
|
|
,law.work_order_status, law.customer_service_id, law.customer_service_name,law.waybill_mall_id,law.over_time, law.problem_description,law.warehouse_id, law.person_responsible, |
|
|
|
|
law.process_number, law.reviewed_by, law.audit_time, law.entry_time, law.operator |
|
|
|
|
from logpm_aftersales_processor lap |
|
|
|
|
LEFT JOIN logpm_aftersales_work_order law on lap.business_id = law.id |
|
|
|
|
<where> |
|
|
|
|
lap.conditions != '3' and lap.is_deleted = 0 |
|
|
|
|
<if test="param.workOrderStatus != null and param.workOrderStatus != ''">and law.work_order_status = #{param.work_order_status}</if> |
|
|
|
|
<if test="param.warehouseId != null and param.warehouseId != ''">and law.warehouse_id = #{param.warehouseId}</if> |
|
|
|
|
</where> |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|