@ -33,10 +33,13 @@
<result property= "createTime" column= "create_time" />
<result property= "createTime" column= "create_time" />
<result property= "updateBy" column= "update_by" />
<result property= "updateBy" column= "update_by" />
<result property= "updateTime" column= "update_time" />
<result property= "updateTime" column= "update_time" />
<result property= "upkeep" column= "upkeep" />
<result property= "calculationRule" column= "calculation_rule" />
<result property= "shutDown" column= "shut_down" />
</resultMap>
</resultMap>
<sql id= "selectEquOrderVo" >
<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 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 from equ_order
</sql>
</sql>
<select id= "selectEquOrderList" parameterType= "EquOrder" resultMap= "EquOrderResult" >
<select id= "selectEquOrderList" parameterType= "EquOrder" resultMap= "EquOrderResult" >
@ -69,6 +72,9 @@
<if test= "createTime != null " > and create_time = #{createTime}</if>
<if test= "createTime != null " > and create_time = #{createTime}</if>
<if test= "updateBy != null and updateBy != ''" > and update_by like concat('%', #{updateBy}, '%')</if>
<if test= "updateBy != null and updateBy != ''" > and update_by like concat('%', #{updateBy}, '%')</if>
<if test= "updateTime != null " > and update_time = #{updateTime}</if>
<if test= "updateTime != null " > and update_time = #{updateTime}</if>
<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>
</where>
</where>
and del_flag = '0'
and del_flag = '0'
</select>
</select>
@ -131,6 +137,9 @@
<if test= "createTime != null" > create_time,</if>
<if test= "createTime != null" > create_time,</if>
<if test= "updateBy != null" > update_by,</if>
<if test= "updateBy != null" > update_by,</if>
<if test= "updateTime != null" > update_time,</if>
<if test= "updateTime != null" > update_time,</if>
<if test= "upkeep != null" > upkeep,</if>
<if test= "calculationRule != null" > calculation_rule,</if>
<if test= "shutDown != null" > shut_down,</if>
</trim>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "orderId != null" > #{orderId},</if>
<if test= "orderId != null" > #{orderId},</if>
@ -161,6 +170,9 @@
<if test= "createTime != null" > #{createTime},</if>
<if test= "createTime != null" > #{createTime},</if>
<if test= "updateBy != null" > #{updateBy},</if>
<if test= "updateBy != null" > #{updateBy},</if>
<if test= "updateTime != null" > #{updateTime},</if>
<if test= "updateTime != null" > #{updateTime},</if>
<if test= "upkeep != null" > #{upkeep},</if>
<if test= "calculationRule != null" > #{calculationRule},</if>
<if test= "shutDown != null" > #{shutDown},</if>
</trim>
</trim>
</insert>
</insert>
@ -194,6 +206,9 @@
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "updateBy != null" > update_by = #{updateBy},</if>
<if test= "updateBy != null" > update_by = #{updateBy},</if>
<if test= "updateTime != null" > update_time = #{updateTime},</if>
<if test= "updateTime != null" > update_time = #{updateTime},</if>
<if test= "upkeep != null" > upkeep = #{upkeep},</if>
<if test= "calculationRule != null" > calculation_rule = #{calculationRule},</if>
<if test= "shutDown != null" > shut_down = #{shutDown},</if>
</trim>
</trim>
where order_id = #{orderId}
where order_id = #{orderId}
</update>
</update>