|
|
@ -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} |
|
|
|
|
|
|
|
|
<where> |
|
|
|
|
|
and site = #{site} |
|
|
AND notify_no = #{notifyNo} |
|
|
AND notify_no = #{notifyNo} |
|
|
|
|
|
<if test="productionOrderNo != null and productionOrderNo != ''"> |
|
|
AND soorder_no = #{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} |
|
|
|
|
|
<if test="productionOrderNo != null and productionOrderNo != ''"> |
|
|
AND soorder_no = #{productionOrderNo} |
|
|
AND soorder_no = #{productionOrderNo} |
|
|
|
|
|
</if> |
|
|
|
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getFgPartNoWithNotifyNoItemNo" resultType="String"> |
|
|
<select id="getFgPartNoWithNotifyNoItemNo" resultType="String"> |
|
|
|