浏览代码

入库码盘-每个成品条码只允许码盘一次bug

k 2 年之前
父节点
当前提交
6f9074062d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      warewms-ams/src/main/resources/mapper/ams/InvLotLocIdMapper.xml

+ 1 - 0
warewms-ams/src/main/resources/mapper/ams/InvLotLocIdMapper.xml

@@ -564,6 +564,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         from inv_lot_loc_id li
         left join inv_lot_att att on li.lotnum = att.lotnum
         <where>
+            <if test="sku != null  and sku != ''"> and li.sku = #{sku}</if>
             <if test="lotattDTO != null">
                 <if test="lotattDTO.lotatt01 != null  and lotattDTO.lotatt01 != ''"> and att.lotatt01 = #{lotattDTO.lotatt01}</if>
                 <if test="lotattDTO.lotatt02 != null  and lotattDTO.lotatt02 != ''"> and att.lotatt02 = #{lotattDTO.lotatt02}</if>