|
|
@ -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}
|
|
|
|