|
@@ -447,4 +447,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<delete id="unlockInv">
|
|
|
delete from inv_lot_loc_id where location_id = #{locationId} and sku = #{sku} and customer_id = #{customerId}
|
|
|
</delete>
|
|
|
+
|
|
|
+ <select id="getQualityInspectionList" resultMap="InvLotLocIdLotattResult">
|
|
|
+ select
|
|
|
+ t2.lotatt01
|
|
|
+ from inv_lot_loc_id t1
|
|
|
+ left join inv_lot_att t2 on t2.lotnum = t1.lotnum
|
|
|
+ where t2.lotatt05 = 'DJ'
|
|
|
+ group by t2.lotatt01
|
|
|
+ order by t2.lotatt01
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getQualityLocationListByLotNumber" resultMap="InvLotLocIdLotattResult">
|
|
|
+ select
|
|
|
+ t3.location_no
|
|
|
+ from inv_lot_loc_id t1
|
|
|
+ left join inv_lot_att t2 on t2.lotnum = t1.lotnum
|
|
|
+ left join base_location_info t3 on t3.id = t1.location_id
|
|
|
+ where t2.lotatt01 = #{lotNumber} and t2.lotatt05 = 'DJ'
|
|
|
+ group by t1.location_id
|
|
|
+ order by t1.location_id
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <update id="updateQualityStatusByLotNumber" parameterType="String">
|
|
|
+ UPDATE inv_lot_att t1
|
|
|
+ SET t1.lotatt05 = #{qualityStatus}
|
|
|
+ WHERE
|
|
|
+ t1.lotatt01 = #{lotNumber}
|
|
|
+ AND t1.lotnum IN ( SELECT lotnum FROM inv_lot_loc_id )
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="querySameTypeByPalletNo" resultMap="InvLotLocIdResult">
|
|
|
+ select inv.*
|
|
|
+ from inv_lot_loc_id inv
|
|
|
+ left join inv_lot_att att on inv.lotnum = att.lotnum
|
|
|
+ left join wms_box_info b on b.location_id = inv.location_id
|
|
|
+ left join base_sku sk on inv.sku = sk.sku
|
|
|
+ </select>
|
|
|
</mapper>
|