|
|
|
@ -353,6 +353,13 @@
|
|
|
|
|
from pro_order_workorder_batch
|
|
|
|
|
where workorder_id = #{workorderId} and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getWorkOrderByCode" resultType="com.op.plan.domain.ProOrderWorkorder">
|
|
|
|
|
select workorder_id workorderId,
|
|
|
|
|
workorder_code workorderCode,
|
|
|
|
|
parent_order parentOrder
|
|
|
|
|
from pro_order_workorder
|
|
|
|
|
where workorder_code = #{workorderCode} and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="createPrepareDetails">
|
|
|
|
|
insert into mes_prepare_detail
|
|
|
|
@ -424,6 +431,15 @@
|
|
|
|
|
where workorder_code = #{workorderId}
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateProOrderWorkorderM">
|
|
|
|
|
update pro_order_workorder
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="prodLineCode != null">prod_line_code = #{prodLineCode},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where workorder_id = #{workorderId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteProOrderWorkorderByWorkorderId" parameterType="String">
|
|
|
|
|
update pro_order_workorder
|
|
|
|
|