feat(WmsMaterialCoil): 添加按创建人筛选功能
- 在 WmsMaterialCoilBo 中新增 createBys 字段用于多创建人筛选 - 实现逗号分隔的创建人列表解析功能 - 添加非空验证和字符串清理逻辑 - 构建 in 查询条件支持多创建人匹配 - 集成到现有查询条件构建流程中
This commit is contained in:
@@ -351,5 +351,8 @@ public class WmsMaterialCoilBo extends BaseEntity {
|
|||||||
* 调拨类型
|
* 调拨类型
|
||||||
*/
|
*/
|
||||||
private String transferType;
|
private String transferType;
|
||||||
|
|
||||||
|
//根据逗号分割的创建人筛选
|
||||||
|
private String createBys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -733,7 +733,16 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// 根据创建人筛选(支持逗号分隔的多个创建人)
|
||||||
|
if (StringUtils.isNotBlank(bo.getCreateBys())) {
|
||||||
|
List<String> createByList = Arrays.stream(bo.getCreateBys().split(","))
|
||||||
|
.filter(StringUtils::isNotBlank)
|
||||||
|
.map(String::trim)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
if (!createByList.isEmpty()) {
|
||||||
|
qw.in("mc.create_by", createByList);
|
||||||
|
}
|
||||||
|
}
|
||||||
//根据异常数量筛选(大于等于指定值)
|
//根据异常数量筛选(大于等于指定值)
|
||||||
if (bo.getMinAbnormalCount() != null) {
|
if (bo.getMinAbnormalCount() != null) {
|
||||||
qw.apply("COALESCE(ca.abnormal_count, 0) >= {0}", bo.getMinAbnormalCount());
|
qw.apply("COALESCE(ca.abnormal_count, 0) >= {0}", bo.getMinAbnormalCount());
|
||||||
|
|||||||
Reference in New Issue
Block a user