2024-07-09 设备手持保养和巡检去掉时间

master
A0010407 7 months ago
parent 186d0d0fa8
commit 4c7756eeba

@ -224,8 +224,8 @@
from equ_order eo from equ_order eo
left join base_equipment be on eo.equipment_code = be.equipment_code left join base_equipment be on eo.equipment_code = be.equipment_code
<where> <where>
<if test="createTime == null ">CONVERT(date,eo.create_time) = CONVERT(date,GETDATE())</if> <if test="createTime == null and planType == 'spotInspection'">CONVERT(date,eo.create_time) = CONVERT(date,GETDATE())</if>
<if test="createTime != null"> CONVERT(date,eo.create_time) = #{createTime}</if> <if test="createTime != null and planType == 'spotInspection'">CONVERT(date,eo.create_time) = #{createTime}</if>
and eo.plan_type = #{planType} and eo.plan_type = #{planType}
and eo.del_flag = '0' and eo.del_flag = '0'
and eo.order_status != '1' and eo.order_status != '1'
@ -279,8 +279,8 @@
from equ_order eo from equ_order eo
left join base_equipment be on eo.equipment_code = be.equipment_code left join base_equipment be on eo.equipment_code = be.equipment_code
<where> <where>
<if test="createTime == null ">CONVERT(date,eo.create_time) = CONVERT(date,GETDATE())</if> <if test="createTime == null and planType == 'spotInspection'">CONVERT(date,eo.create_time) = CONVERT(date,GETDATE())</if>
<if test="createTime != null">and CONVERT(date,eo.create_time) = #{createTime}</if> <if test="createTime != null and planType == 'spotInspection'">and CONVERT(date,eo.create_time) = #{createTime}</if>
and eo.del_flag = '0' and eo.del_flag = '0'
and eo.order_status = '1' and eo.order_status = '1'
and eo.plan_type = #{planType} and eo.plan_type = #{planType}

Loading…
Cancel
Save