rev:工单查询sql

This commit is contained in:
zhangzq
2023-12-04 09:50:04 +08:00
parent 925b2a998e
commit c4c7fc9c27

View File

@@ -31,8 +31,7 @@
and find_in_set(ShiftOrder.workorder_status, #{query.order_status})
</if>
<if test="query.device_code != null and query.device_code != ''">
and (ShiftOrder.device_code like concat('%',${query.device_code},'%') or ShiftOrder.device_name like concat('%',${query.device_code},'%'))
</if>
and ShiftOrder.device_code like '%${query.device_code}%' </if>
<if test="query.shift_type_scode != null and query.shift_type_scode != ''">
and ShiftOrder.shift_type_scode = #{query.shift_type_scode}
</if>