查询库存逻辑修改;
This commit is contained in:
@@ -748,21 +748,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="productionDate == null">
|
||||
AND a.PRODUCTION_DATE is null
|
||||
</if>
|
||||
<if test="extAttr2 == null or extAttr2 == ''">
|
||||
<if test="extAttr2 == ''">
|
||||
AND a.EXT_ATTR_2 = #{extAttr2}
|
||||
</if>
|
||||
<if test="extAttr1 == null or extAttr1 == ''">
|
||||
<if test="extAttr1 == ''">
|
||||
AND a.EXT_ATTR_1 = #{extAttr1}
|
||||
</if>
|
||||
<if test="boxPalletNo == null or boxPalletNo == ''">
|
||||
<if test="boxPalletNo == ''">
|
||||
AND a.BOX_PALLET_NO = #{boxPalletNo}
|
||||
</if>
|
||||
<if test="sheetRefNo == null or sheetRefNo == ''">
|
||||
<if test="sheetRefNo == ''">
|
||||
AND a.SHEET_REF_NO = #{sheetRefNo}
|
||||
</if>
|
||||
<if test="batchRefNo == null or batchRefNo == ''">
|
||||
<if test="batchRefNo == ''">
|
||||
AND a.BATCH_REF_NO = #{batchRefNo}
|
||||
</if>
|
||||
<if test="extAttr2 == null">
|
||||
AND a.EXT_ATTR_2 is null
|
||||
</if>
|
||||
<if test="extAttr1 == null">
|
||||
AND a.EXT_ATTR_1 is null
|
||||
</if>
|
||||
<if test="boxPalletNo == null">
|
||||
AND a.BOX_PALLET_NO is null
|
||||
</if>
|
||||
<if test="sheetRefNo == null">
|
||||
AND a.SHEET_REF_NO is null
|
||||
</if>
|
||||
<if test="batchRefNo == null">
|
||||
AND a.BATCH_REF_NO is null
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 根据库存ID查询库存信息(包含批次属性字段) -->
|
||||
|
||||
Reference in New Issue
Block a user