|
|
|
@ -85,14 +85,6 @@
|
|
|
|
|
<include refid="selectProOrderWorkorderVo"/>
|
|
|
|
|
WHERE parent_order = #{workorderCode}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectWorkOrderByTime" resultMap="ProOrderWorkorderResult">
|
|
|
|
|
<include refid="selectProOrderWorkorderVo"/>
|
|
|
|
|
WHERE CONVERT(date, product_date) = #{productDate} AND is_end = '1' AND workorder_id NOT IN (
|
|
|
|
|
SELECT workorder_id
|
|
|
|
|
FROM pro_wet_material_plan_detail
|
|
|
|
|
WHERE CONVERT(date, create_time) = #{productDate}
|
|
|
|
|
)
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectEndWorkOrder" resultType="java.lang.String">
|
|
|
|
|
select TOP 1 workorder_code
|
|
|
|
@ -101,6 +93,14 @@
|
|
|
|
|
ORDER BY workorder_code DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectWorkOrderByTime" resultMap="ProOrderWorkorderResult">
|
|
|
|
|
<include refid="selectProOrderWorkorderVo"/>
|
|
|
|
|
where workorder_id not in (
|
|
|
|
|
select workorder_id
|
|
|
|
|
from pro_wet_material_plan_detail
|
|
|
|
|
where CONVERT(date, plan_time) = #{productDate})
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertProOrderWorkorder" parameterType="ProOrderWorkorder">
|
|
|
|
|
insert into pro_order_workorder
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|