|
|
|
@ -36,10 +36,11 @@
|
|
|
|
|
<result property="upkeep" column="upkeep" />
|
|
|
|
|
<result property="calculationRule" column="calculation_rule" />
|
|
|
|
|
<result property="shutDown" column="shut_down" />
|
|
|
|
|
<result property="orderInspect" column="order_inspect" />
|
|
|
|
|
</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 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 from equ_order
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquOrderList" parameterType="EquOrder" resultMap="EquOrderResult">
|
|
|
|
@ -75,6 +76,7 @@
|
|
|
|
|
<if test="upkeep != null "> and upkeep = #{upkeep}</if>
|
|
|
|
|
<if test="calculationRule != null "> and calculation_rule = #{calculationRule}</if>
|
|
|
|
|
<if test="shutDown != null "> and shut_down = #{shutDown}</if>
|
|
|
|
|
<if test="orderInspect != null "> and order_inspect = #{orderInspect}</if>
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -151,6 +153,7 @@
|
|
|
|
|
<if test="upkeep != null">upkeep,</if>
|
|
|
|
|
<if test="calculationRule != null">calculation_rule,</if>
|
|
|
|
|
<if test="shutDown != null">shut_down,</if>
|
|
|
|
|
<if test="orderInspect != null">order_inspect,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
|
@ -184,6 +187,7 @@
|
|
|
|
|
<if test="upkeep != null">#{upkeep},</if>
|
|
|
|
|
<if test="calculationRule != null">#{calculationRule},</if>
|
|
|
|
|
<if test="shutDown != null">#{shutDown},</if>
|
|
|
|
|
<if test="orderInspect != null">#{orderInspect},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -220,6 +224,7 @@
|
|
|
|
|
<if test="upkeep != null">upkeep = #{upkeep},</if>
|
|
|
|
|
<if test="calculationRule != null">calculation_rule = #{calculationRule},</if>
|
|
|
|
|
<if test="shutDown != null">shut_down = #{shutDown},</if>
|
|
|
|
|
<if test="orderInspect != null">order_inspect = #{orderInspect},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where order_id = #{orderId}
|
|
|
|
|
</update>
|
|
|
|
|