This commit is contained in:
2025-07-21 17:39:53 +08:00
parent 4dc4365d5f
commit 6744e5df8f
5 changed files with 5 additions and 3 deletions

View File

@@ -68,6 +68,7 @@ public class WmsStockIoDetailServiceImpl implements IWmsStockIoDetailService {
private QueryWrapper<WmsStockIoDetail> buildQueryWrapper(WmsStockIoDetailBo bo) {
Map<String, Object> params = bo.getParams();
QueryWrapper<WmsStockIoDetail> qw = new QueryWrapper<>();
qw.eq("d.del_flag", 0); // 手动添加逻辑删除条件
qw.eq(bo.getStockIoId() != null, "d.stock_io_id", bo.getStockIoId());
qw.eq(bo.getWarehouseId() != null, "d.warehouse_id", bo.getWarehouseId());
qw.eq(StringUtils.isNotBlank(bo.getItemType()), "d.item_type", bo.getItemType());