@ -116,6 +116,21 @@
LEFT JOIN logpm_aftersales_processing_results AS lapr ON lapr.work_order_id = lawo.id AND lapr.is_deleted = 0
<where >
lawo.is_deleted = 0
<if test= "param.workOrderNumbers != null and param.workOrderNumbers != '' " >
and lawo.work_order_number in
<foreach collection= "param.workOrderNumbers.split(',')" item= "workOrderNumber" separator= "," open= "(" close= ")" >
#{workOrderNumber}
</foreach>
</if>
<if test= "param.orderCodes != null and param.orderCodes != '' " >
and lawo.order_code in
<foreach collection= "param.orderCodes.split(',')" item= "orderCode" separator= "," open= "(" close= ")" >
#{orderCode}
</foreach>
</if>
<if test= "param.startCreateTime != null and param.endCreateTime != null " >
and lawo.create_time between #{param.startCreateTime} and #{param.endCreateTime}
</if>
<if test= "param.workOrderStatusNameS != null and param.workOrderStatusNameS != '' " > and lawo.work_order_status = #{param.workOrderStatusNameS } </if>
<if test= "param.id != null and param.id != '' " > and lawo.id = #{param.id } </if>
<if test= "param.workOrderType != null and param.workOrderType != '' " > and lawo.work_order_type = #{param.workOrderType } </if>
@ -554,6 +569,21 @@
<where >
lap.conditions != '3' and lap.is_deleted = 0 and law.id is not null and lap.processing_status in ('1','3') and lap.types_of = '2' and law.work_order_status in ('10','20','30')
<if test= "param.workOrderNumbers != null and param.workOrderNumbers != '' " >
and law.work_order_number in
<foreach collection= "param.workOrderNumbers.split(',')" item= "workOrderNumber" separator= "," open= "(" close= ")" >
#{workOrderNumber}
</foreach>
</if>
<if test= "param.orderCodes != null and param.orderCodes != '' " >
and law.order_code in
<foreach collection= "param.orderCodes.split(',')" item= "orderCode" separator= "," open= "(" close= ")" >
#{orderCode}
</foreach>
</if>
<if test= "param.startCreateTime != null and param.endCreateTime != null " >
and law.create_time between #{param.startCreateTime} and #{param.endCreateTime}
</if>
<if test= "param.workOrderStatusNameS != null and param.workOrderStatusNameS != '' " > and law.work_order_status = #{param.workOrderStatusNameS } </if>
<if test= "param.operator != null and param.operator != '' " > and law.operator = #{param.operator } </if>
<if test= "param.workOrderStatus != null and param.workOrderStatus != ''" > and law.work_order_status = #{param.workOrderStatus}</if>
@ -681,6 +711,21 @@
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
<if test= "param.workOrderNumbers != null and param.workOrderNumbers != '' " >
and lawo.work_order_number in
<foreach collection= "param.workOrderNumbers.split(',')" item= "workOrderNumber" separator= "," open= "(" close= ")" >
#{workOrderNumber}
</foreach>
</if>
<if test= "param.orderCodes != null and param.orderCodes != '' " >
and lawo.order_code in
<foreach collection= "param.orderCodes.split(',')" item= "orderCode" separator= "," open= "(" close= ")" >
#{orderCode}
</foreach>
</if>
<if test= "param.startCreateTime != null and param.endCreateTime != null " >
and lawo.create_time between #{param.startCreateTime} and #{param.endCreateTime}
</if>
<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>