feat(wms): 添加发货时间筛选功能

- 实现根据发货开始时间筛选线圈物料
- 实现根据发货结束时间筛选线圈物料
- 集成到现有的查询条件构建逻辑中
- 支持按时间段范围查询发货记录
This commit is contained in:
2026-01-11 08:57:24 +08:00
parent 99f52fa038
commit 5c0b1793f0

View File

@@ -471,6 +471,11 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
qw.ge(bo.getByCreateTimeStart() != null, "mc.create_time", bo.getByCreateTimeStart());
qw.le(bo.getByCreateTimeEnd() != null, "mc.create_time", bo.getByCreateTimeEnd());
// 根据发货开始和结束筛选发货时间
qw.ge(bo.getByExportTimeStart() != null, "mc.export_time", bo.getByExportTimeStart());
qw.le(bo.getByExportTimeEnd() != null, "mc.export_time", bo.getByExportTimeEnd());
//根据异常数量筛选(大于等于指定值)
if (bo.getMinAbnormalCount() != null) {
qw.apply("COALESCE(ca.abnormal_count, 0) >= {0}", bo.getMinAbnormalCount());