|
|
@ -36,13 +36,14 @@
|
|
|
|
<result property="prodType" column="prod_type" />
|
|
|
|
<result property="prodType" column="prod_type" />
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
<result property="endFlag" column="end_flag" />
|
|
|
|
<result property="endFlag" column="end_flag" />
|
|
|
|
|
|
|
|
<result property="carNum" column="car_num" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectProOrderWorkorderVo">
|
|
|
|
<sql id="selectProOrderWorkorderVo">
|
|
|
|
select workorder_id, workorder_code, workorder_name, order_id, order_code, product_id, product_code, product_name,
|
|
|
|
select workorder_id, workorder_code, workorder_name, order_id, order_code, product_id, product_code, product_name,
|
|
|
|
product_spc, unit, quantity_produced, quantity_split, route_code, prod_line_code, product_date,
|
|
|
|
product_spc, unit, quantity_produced, quantity_split, route_code, prod_line_code, product_date,
|
|
|
|
shift_id, parent_order, ancestors, status, remark, attr1, attr2, attr3, attr4, create_by, create_time,
|
|
|
|
shift_id, parent_order, ancestors, status, remark, attr1, attr2, attr3, attr4, create_by, create_time,
|
|
|
|
update_by, update_time, prod_type, factory_code , end_flag
|
|
|
|
update_by, update_time, prod_type, factory_code , end_flag , car_num
|
|
|
|
from pro_order_workorder
|
|
|
|
from pro_order_workorder
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
@ -184,6 +185,7 @@
|
|
|
|
<if test="prodType != null">prod_type,</if>
|
|
|
|
<if test="prodType != null">prod_type,</if>
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
<if test="endFlag != null">end_flag,</if>
|
|
|
|
<if test="endFlag != null">end_flag,</if>
|
|
|
|
|
|
|
|
<if test="carNum != null">car_num,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="workorderId != null">#{workorderId},</if>
|
|
|
|
<if test="workorderId != null">#{workorderId},</if>
|
|
|
@ -217,6 +219,7 @@
|
|
|
|
<if test="prodType != null">#{prodType},</if>
|
|
|
|
<if test="prodType != null">#{prodType},</if>
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
<if test="endFlag != null">#{endFlag},</if>
|
|
|
|
<if test="endFlag != null">#{endFlag},</if>
|
|
|
|
|
|
|
|
<if test="carNum != null">#{carNum},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="createPrepare">
|
|
|
|
<insert id="createPrepare">
|
|
|
@ -368,6 +371,7 @@
|
|
|
|
<if test="prodType != null">prod_type = #{prodType},</if>
|
|
|
|
<if test="prodType != null">prod_type = #{prodType},</if>
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
<if test="endFlag != null">end_flag = #{endFlag},</if>
|
|
|
|
<if test="endFlag != null">end_flag = #{endFlag},</if>
|
|
|
|
|
|
|
|
<if test="carNum != null">car_num = #{carNum},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where workorder_id = #{workorderId}
|
|
|
|
where workorder_id = #{workorderId}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|