|
|
|
@ -30,10 +30,10 @@ |
|
|
|
and c.SupplierName like '%'+ #{query.supplierName} +'%' |
|
|
|
</if> |
|
|
|
<if test="query.poOrderNo != null and query.poOrderNo != ''"> |
|
|
|
and c.po_orderNo like '%'+ #{query.poOrderNo} +'%' |
|
|
|
and b.po_orderNo like '%'+ #{query.poOrderNo} +'%' |
|
|
|
</if> |
|
|
|
<if test="query.poItemNo != null and query.poItemNo != ''"> |
|
|
|
and c.po_itemNo = #{query.supplierName} |
|
|
|
and b.po_itemNo = #{query.supplierName} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
@ -76,4 +76,34 @@ |
|
|
|
#{createdBy},GetDate(),#{delflag},#{version},#{printFlag}, |
|
|
|
#{hardtagInFlag},#{batchNo},#{productionDate},#{expirationWarningDate},#{expirationDate}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<delete id="deletePoPartLabelData"> |
|
|
|
delete from po_order_roll_no where site=#{site} and bu_no=#{buNo} and roll_no=#{rollNo} and inspection_no=#{inspectionNo} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<update id="updatePrintFlag"> |
|
|
|
update po_order_roll_no set print_flag=isnull(print_flag,0)+1 |
|
|
|
WHERE |
|
|
|
site = #{site} <!-- 先过滤 site --> |
|
|
|
and bu_no=#{buNo} |
|
|
|
AND roll_no IN |
|
|
|
<foreach item="item" collection="rollList" open="(" separator="," close=")"> |
|
|
|
#{item.rollNo} |
|
|
|
</foreach> |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="getPoPartLabelData" resultType="PoOrderRollNoOutData"> |
|
|
|
select site,bu_no,inspection_no,order_no,item_no,roll_no,roll_qty,part_no,part_desc,supplier_id,supplier_name,order_qty, |
|
|
|
created_by,created_date,delflag,version,print_flag, |
|
|
|
hardtag_in_flag,batch_no,production_date,expiration_warning_date,expiration_date |
|
|
|
from po_order_roll_no |
|
|
|
WHERE |
|
|
|
site = #{site} <!-- 先过滤 site --> |
|
|
|
and bu_no=#{buNo} |
|
|
|
AND roll_no IN |
|
|
|
<foreach item="item" collection="rollList" open="(" separator="," close=")"> |
|
|
|
#{item.rollNo} |
|
|
|
</foreach> |
|
|
|
order by created_date |
|
|
|
</select> |
|
|
|
</mapper> |