|
|
|
@ -34,10 +34,14 @@
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="workPerson" column="work_person" />
|
|
|
|
|
<result property="workOutsourcingUnit" column="work_outsourcing_unit" />
|
|
|
|
|
<result property="workConnection" column="work_connection" />
|
|
|
|
|
<result property="workReason" column="work_reason" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquPlanVo">
|
|
|
|
|
select plan_id, plan_code, plan_name, plan_workshop, plan_prod_line, equipment_name, equipment_code, plan_loop, plan_loop_type, plan_loop_start, plan_loop_end, plan_person, plan_status, plan_restrict, plan_type, plan_outsource, work_code, upkeep, calculation_rule, shut_down, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_plan
|
|
|
|
|
select plan_id, plan_code, plan_name, plan_workshop, plan_prod_line, equipment_name, equipment_code, plan_loop, plan_loop_type, plan_loop_start, plan_loop_end, plan_person, plan_status, plan_restrict, plan_type, plan_outsource, work_code, upkeep, calculation_rule, shut_down, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time , work_person, work_outsourcing_unit, work_connection,work_reason from equ_plan
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquPlanList" parameterType="EquPlan" resultMap="EquPlanResult">
|
|
|
|
@ -60,6 +64,10 @@
|
|
|
|
|
<if test="planOutsource != null and planOutsource != ''"> and plan_outsource = #{planOutsource}</if>
|
|
|
|
|
<if test="workCode != null and workCode != ''"> and work_code like concat('%', #{workCode}, '%')</if>
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="workPerson != null and workPerson != ''"> and work_person = #{workPerson}</if>
|
|
|
|
|
<if test="workOutsourcingUnit != null and workOutsourcingUnit != ''"> and work_outsourcing_unit = #{workOutsourcingUnit}</if>
|
|
|
|
|
<if test="workConnection != null and workConnection != ''"> and work_connection = #{workConnection}</if>
|
|
|
|
|
<if test="workReason != null and workReason != ''"> and work_reason = #{workReason}</if>
|
|
|
|
|
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
|
|
|
|
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
|
|
|
|
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
|
|
|
@ -135,6 +143,10 @@
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="workPerson != null">work_person,</if>
|
|
|
|
|
<if test="workOutsourcingUnit != null">work_outsourcing_unit,</if>
|
|
|
|
|
<if test="workConnection != null">work_connection,</if>
|
|
|
|
|
<if test="workReason != null">work_reason,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="planId != null">#{planId},</if>
|
|
|
|
@ -166,6 +178,10 @@
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="workPerson != null">#{workPerson},</if>
|
|
|
|
|
<if test="workOutsourcingUnit != null">#{workOutsourcingUnit},</if>
|
|
|
|
|
<if test="workConnection != null">#{workConnection},</if>
|
|
|
|
|
<if test="workReason != null">#{workReason},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -200,6 +216,10 @@
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="workPerson != null">work_person = #{workPerson},</if>
|
|
|
|
|
<if test="workOutsourcingUnit != null">work_outsourcing_unit = #{workOutsourcingUnit},</if>
|
|
|
|
|
<if test="workConnection != null">work_connection = #{workConnection},</if>
|
|
|
|
|
<if test="workReason != null">work_reason = #{workReason},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where plan_id = #{planId}
|
|
|
|
|
</update>
|
|
|
|
|