|
|
|
@ -40,6 +40,7 @@
|
|
|
|
|
<result property="orderInspect" column="order_inspect"/>
|
|
|
|
|
<result property="repairCode" column="repair_code"/>
|
|
|
|
|
<result property="workCode" column="work_code"/>
|
|
|
|
|
<result property="complianceRate" column="compliance_rate"/>
|
|
|
|
|
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="itemName" column="item_name"/>
|
|
|
|
@ -56,7 +57,7 @@
|
|
|
|
|
plan_loop_start, plan_loop_end, order_start, order_end, equipment_code, order_status,
|
|
|
|
|
order_cost, plan_person, plan_person_name, order_cost_time, order_sign_person,
|
|
|
|
|
factory_code, attr1, attr2, attr3, del_flag, create_by, create_time,
|
|
|
|
|
update_by, update_time,upkeep,calculation_rule,shut_down,order_inspect,repair_code,work_code,outsource_code
|
|
|
|
|
update_by, update_time,upkeep,calculation_rule,shut_down,order_inspect,repair_code,work_code,outsource_code,compliance_rate
|
|
|
|
|
from equ_order
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -98,6 +99,7 @@
|
|
|
|
|
eo.repair_code,
|
|
|
|
|
eo.work_code,
|
|
|
|
|
eo.outsource_code,
|
|
|
|
|
eo.compliance_rate,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
ep.plan_name planName
|
|
|
|
|
from equ_order eo
|
|
|
|
@ -338,6 +340,7 @@
|
|
|
|
|
<if test="workCode != null">work_code,</if>
|
|
|
|
|
<if test="planRestrict != null">plan_restrict,</if>
|
|
|
|
|
<if test="outsourceCode != null">outsource_code,</if>
|
|
|
|
|
<if test="complianceRate != null">compliance_rate,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
|
@ -377,6 +380,7 @@
|
|
|
|
|
<if test="workCode != null">#{workCode},</if>
|
|
|
|
|
<if test="planRestrict != null">#{planRestrict},</if>
|
|
|
|
|
<if test="outsourceCode != null">#{outsourceCode},</if>
|
|
|
|
|
<if test="complianceRate != null">#{complianceRate},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -418,6 +422,7 @@
|
|
|
|
|
<if test="repairCode != null">repair_code = #{repairCode},</if>
|
|
|
|
|
<if test="workCode != null">work_code = #{workCode},</if>
|
|
|
|
|
<if test="outsourceCode != null">outsource_code = #{outsourceCode},</if>
|
|
|
|
|
<if test="complianceRate != null">compliance_rate = #{complianceRate},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where order_id = #{orderId}
|
|
|
|
|
</update>
|
|
|
|
@ -434,7 +439,8 @@
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="delEquOrderByOrderIds">
|
|
|
|
|
update equ_order set del_flag = '1' where order_id in
|
|
|
|
|
update equ_order set del_flag = '1'
|
|
|
|
|
where order_id in
|
|
|
|
|
<foreach item="orderId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{orderId}
|
|
|
|
|
</foreach>
|
|
|
|
|