|
|
|
@ -38,10 +38,11 @@
|
|
|
|
|
<result property="shutDown" column="shut_down" />
|
|
|
|
|
<result property="orderInspect" column="order_inspect" />
|
|
|
|
|
<result property="repairCode" column="repair_code" />
|
|
|
|
|
<result property="workCode" column="work_code" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquOrderVo">
|
|
|
|
|
select order_id, plan_id, plan_code, plan_type, order_code, plan_workshop, plan_prod_line, plan_loop, plan_loop_type, plan_loop_start, plan_loop_end, order_start, order_end, equipment_code, order_status, order_cost, plan_person, 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 from equ_order
|
|
|
|
|
select order_id, plan_id, plan_code, plan_type, order_code, plan_workshop, plan_prod_line, plan_loop, plan_loop_type, plan_loop_start, plan_loop_end, order_start, order_end, equipment_code, order_status, order_cost, plan_person, 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 from equ_order
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquOrderList" parameterType="EquOrder" resultMap="EquOrderResult">
|
|
|
|
@ -79,6 +80,7 @@
|
|
|
|
|
<if test="shutDown != null "> and shut_down = #{shutDown}</if>
|
|
|
|
|
<if test="orderInspect != null "> and order_inspect = #{orderInspect}</if>
|
|
|
|
|
<if test="repairCode != null "> and repair_code = #{repairCode}</if>
|
|
|
|
|
<if test="workCode != null "> and work_code = #{workCode}</if>
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -161,6 +163,8 @@
|
|
|
|
|
<if test="shutDown != null">shut_down,</if>
|
|
|
|
|
<if test="orderInspect != null">order_inspect,</if>
|
|
|
|
|
<if test="repairCode != null">repair_code,</if>
|
|
|
|
|
<if test="repairCode != null">repair_code,</if>
|
|
|
|
|
<if test="workCode != null">work_code,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
|
@ -196,6 +200,7 @@
|
|
|
|
|
<if test="shutDown != null">#{shutDown},</if>
|
|
|
|
|
<if test="orderInspect != null">#{orderInspect},</if>
|
|
|
|
|
<if test="repairCode != null">#{repairCode},</if>
|
|
|
|
|
<if test="workCode != null">#{workCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -234,6 +239,7 @@
|
|
|
|
|
<if test="shutDown != null">shut_down = #{shutDown},</if>
|
|
|
|
|
<if test="orderInspect != null">order_inspect = #{orderInspect},</if>
|
|
|
|
|
<if test="repairCode != null">repair_code = #{repairCode},</if>
|
|
|
|
|
<if test="workCode != null">work_code = #{workCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where order_id = #{orderId}
|
|
|
|
|
</update>
|
|
|
|
|