库存调整记录查询条件添加;

This commit is contained in:
王奎兴
2026-05-29 20:57:38 +08:00
parent 3ad3707c59
commit 13e770013a
7 changed files with 37 additions and 3 deletions
@@ -100,6 +100,7 @@ public class InventoryAdjustmentRecordDTO extends BaseVOEntity {
@ApiModelProperty("批次号")
@Excel(name = "批次号")
private String batchNumber;
private String lotNumber;
@ApiModelProperty("容器id")
@Excel(name = "容器id")
@@ -168,4 +169,4 @@ public class InventoryAdjustmentRecordDTO extends BaseVOEntity {
@ApiModelProperty(name = "权限菜单ID")
private Long permissionMenuId;
}
}
@@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.ext_attr_1, b.ext_attr_2, b.ext_attr_3, b.ext_attr_4,
b.production_date, b.expiry_date, b.inventory_date,
b.batch_ref_no, b.sheet_ref_no, b.box_pallet_no,a.ADJUST_ACTION,a.RELATE_NO,
a.in_order_number,a.lot_number,b.batch_number
b.in_order_number,b.lot_number,b.batch_number
from inventory_adjustment_record a left join material_inventory b on a.material_inventory_id = b.material_inventory_id
where a.del_flag = 1
</sql>
@@ -117,6 +117,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="barCode != null and barCode != ''">
and a.bar_code = #{barCode}
</if>
<if test="batchNumber != null and batchNumber != ''">
and b.batch_number = #{batchNumber}
</if>
<if test="lotCode != null and lotCode != ''">
and b.lot_number = #{lotCode}
</if>
<if test="expiryDate != null and expiryDate != ''">
AND DATE(b.expiry_date) = #{expiryDate}
</if>
<if test="productionDate != null and productionDate != ''">
AND DATE(b.production_date) = #{productionDate}
</if>
<if test="shipperId != null ">
and a.shipper_id = #{shipperId}
</if>