|
|
|
@ -25,10 +25,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="status" column="status" />
|
|
|
|
|
<result property="prodType" column="prod_type" />
|
|
|
|
|
<result property="planCode" column="plan_code" />
|
|
|
|
|
<result property="shiftId" column="shift_id" />
|
|
|
|
|
<result property="shiftDesc" column="shift_desc" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectProWetMaterialPlanVo">
|
|
|
|
|
select id, factory_code, plan_time, sync_flag, create_by, create_time, update_by, update_time, order_type, prod_code, prod_desc, prod_source, quantity, unit, atrr1, atrr2, atrr3, status, prod_type, plan_code from pro_wet_material_plan
|
|
|
|
|
select id, factory_code, plan_time, sync_flag, create_by, create_time, update_by, update_time, order_type, prod_code, prod_desc, prod_source, quantity, unit, atrr1, atrr2, atrr3, status, prod_type, plan_code, shift_id, shift_desc from pro_wet_material_plan
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectProWetMaterialPlanList" parameterType="ProWetMaterialPlan" resultMap="ProWetMaterialPlanResult">
|
|
|
|
@ -77,6 +79,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
|
<if test="prodType != null">prod_type,</if>
|
|
|
|
|
<if test="planCode != null">plan_code,</if>
|
|
|
|
|
<if test="shiftId != null">shift_id,</if>
|
|
|
|
|
<if test="shiftDesc != null">shift_desc,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
@ -99,6 +103,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
|
<if test="prodType != null">#{prodType},</if>
|
|
|
|
|
<if test="planCode != null">#{planCode},</if>
|
|
|
|
|
<if test="shiftId != null">#{shiftId},</if>
|
|
|
|
|
<if test="shiftDesc != null">#{shiftDesc},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -124,6 +130,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
|
<if test="prodType != null">prod_type = #{prodType},</if>
|
|
|
|
|
<if test="planCode != null">plan_code = #{planCode},</if>
|
|
|
|
|
<if test="shiftId != null">plan_code = #{shiftId},</if>
|
|
|
|
|
<if test="shiftDesc != null">plan_code = #{shiftDesc},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|