|
|
@ -58,10 +58,11 @@
|
|
|
|
<if test="planCode != null and planCode != ''"> and plan_code like concat('%', #{planCode}, '%')</if>
|
|
|
|
<if test="planCode != null and planCode != ''"> and plan_code like concat('%', #{planCode}, '%')</if>
|
|
|
|
<if test="planType != null and planType != ''"> and plan_type = #{planType}</if>
|
|
|
|
<if test="planType != null and planType != ''"> and plan_type = #{planType}</if>
|
|
|
|
<if test="orderCode != null and orderCode != ''"> and order_code like concat('%', #{orderCode}, '%')</if>
|
|
|
|
<if test="orderCode != null and orderCode != ''"> and order_code like concat('%', #{orderCode}, '%')</if>
|
|
|
|
<if test="planWorkshop != null and planWorkshop != ''"> and plan_workshop like concat('%', #{planWorkshop}, '%')</if>
|
|
|
|
<if test="planWorkshop != null and planWorkshop != ''"> and plan_workshop = #{planWorkshop}</if>
|
|
|
|
<if test="planProdLine != null and planProdLine != ''"> and plan_prod_line = #{planProdLine}</if>
|
|
|
|
<if test="planProdLine != null and planProdLine != ''"> and plan_prod_line = #{planProdLine}</if>
|
|
|
|
<if test="planLoop != null and planLoop != ''"> and plan_loop = #{planLoop}</if>
|
|
|
|
<if test="planLoop != null and planLoop != ''"> and plan_loop = #{planLoop}</if>
|
|
|
|
<if test="planLoopType != null and planLoopType != ''"> and plan_loop_type = #{planLoopType}</if>
|
|
|
|
<if test="planLoopType != null and planLoopType != ''"> and plan_loop_type = #{planLoopType}</if>
|
|
|
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''"> and equipment_code like concat('%', #{equipmentCode}, '%')</if>
|
|
|
|
<if test="planLoopStart != null "> and plan_loop_start = #{planLoopStart}</if>
|
|
|
|
<if test="planLoopStart != null "> and plan_loop_start = #{planLoopStart}</if>
|
|
|
|
<if test="planLoopEnd != null "> and plan_loop_end = #{planLoopEnd}</if>
|
|
|
|
<if test="planLoopEnd != null "> and plan_loop_end = #{planLoopEnd}</if>
|
|
|
|
<if test="orderStart != null "> and order_start = #{orderStart}</if>
|
|
|
|
<if test="orderStart != null "> and order_start = #{orderStart}</if>
|
|
|
@ -87,15 +88,15 @@
|
|
|
|
<if test="repairCode != null "> and repair_code = #{repairCode}</if>
|
|
|
|
<if test="repairCode != null "> and repair_code = #{repairCode}</if>
|
|
|
|
<if test="outsourceCode != null "> and outsource_code = #{outsourceCode}</if>
|
|
|
|
<if test="outsourceCode != null "> and outsource_code = #{outsourceCode}</if>
|
|
|
|
<if test="workCode != null "> and work_code = #{workCode}</if>
|
|
|
|
<if test="workCode != null "> and work_code = #{workCode}</if>
|
|
|
|
|
|
|
|
<if test="loopStart != null "> and CONVERT(date,plan_loop_start) >= #{loopStart}</if>
|
|
|
|
|
|
|
|
<if test="loopEnd != null "> and #{loopEnd} >= CONVERT(date,plan_loop_start)</if>
|
|
|
|
|
|
|
|
<if test="loopEndArrayStart != null "> and CONVERT(date,plan_loop_end) >= #{loopEndArrayStart}</if>
|
|
|
|
|
|
|
|
<if test="getLoopEndArrayEnd != null "> and #{getLoopEndArrayEnd} >= CONVERT(date,plan_loop_end)</if>
|
|
|
|
|
|
|
|
<if test="orderStartArrayStart != null "> and CONVERT(date,order_start) >= #{orderStartArrayStart}</if>
|
|
|
|
|
|
|
|
<if test="orderStartArrayEnd != null "> and #{orderStartArrayEnd} >= CONVERT(date,order_start)</if>
|
|
|
|
|
|
|
|
<if test="orderEndArrayStart != null "> and CONVERT(date,order_end) >= #{orderEndArrayStart}</if>
|
|
|
|
|
|
|
|
<if test="orderEndArrayEnd != null "> and #{orderEndArrayEnd} >= CONVERT(date,order_end)</if>
|
|
|
|
and del_flag = '0'
|
|
|
|
and del_flag = '0'
|
|
|
|
<if test="(equipmentCode != null and equipmentCode != '') or (equipmentName != null and equipmentName != '')">
|
|
|
|
|
|
|
|
and order_code in (
|
|
|
|
|
|
|
|
select order_code from equ_order_equ
|
|
|
|
|
|
|
|
where equ_order.order_code = equ_order_equ.order_code
|
|
|
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">and equ_order_equ.equipment_code like concat('%', #{equipmentCode}, '%')</if>
|
|
|
|
|
|
|
|
<if test="equipmentName != null and equipmentName != ''">and equ_order_equ.equipment_name like concat('%', #{equipmentName}, '%')</if>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|