Browse Source

agv任务大优化

master
常熟吴彦祖 2 months ago
parent
commit
dcb8a227ca
  1. 18
      src/main/resources/mapper/notify/NewIssureMapper.xml

18
src/main/resources/mapper/notify/NewIssureMapper.xml

@ -202,16 +202,24 @@
<select id="getItemNoByNotifyNoAndOrderNo" resultType="java.math.BigDecimal"> <select id="getItemNoByNotifyNoAndOrderNo" resultType="java.math.BigDecimal">
SELECT top 1 item_no SELECT top 1 item_no
FROM SOIssueNotifyOrderList FROM SOIssueNotifyOrderList
WHERE site = #{site}
AND notify_no = #{notifyNo}
AND soorder_no = #{productionOrderNo}
<where>
and site = #{site}
AND notify_no = #{notifyNo}
<if test="productionOrderNo != null and productionOrderNo != ''">
AND soorder_no = #{productionOrderNo}
</if>
</where>
</select> </select>
<select id="getFgPartNoWithNotifyNo" resultType="String"> <select id="getFgPartNoWithNotifyNo" resultType="String">
SELECT top 1 fgpart_no SELECT top 1 fgpart_no
FROM SOIssueNotifyOrderList FROM SOIssueNotifyOrderList
WHERE site = #{site}
<where>
and site = #{site}
AND notify_no = #{notifyNo} AND notify_no = #{notifyNo}
AND soorder_no = #{productionOrderNo}
<if test="productionOrderNo != null and productionOrderNo != ''">
AND soorder_no = #{productionOrderNo}
</if>
</where>
</select> </select>
<select id="getFgPartNoWithNotifyNoItemNo" resultType="String"> <select id="getFgPartNoWithNotifyNoItemNo" resultType="String">

Loading…
Cancel
Save