feat(WmsMaterialCoil): 添加调拨类型非空筛选功能
- 在WmsMaterialCoilBo中新增hasTransferType字段用于标识是否查询调拨类型不为空的钢卷 - 在WmsMaterialCoilServiceImpl中实现调拨类型非空筛选逻辑 - 当hasTransferType为true时查询调拨类型不为空且不为字符串的钢卷记录
This commit is contained in:
@@ -354,5 +354,11 @@ public class WmsMaterialCoilBo extends BaseEntity {
|
|||||||
|
|
||||||
//根据逗号分割的创建人筛选
|
//根据逗号分割的创建人筛选
|
||||||
private String createBys;
|
private String createBys;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否查询调拨类型不为空的钢卷
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Boolean hasTransferType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -576,6 +576,11 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
|
|||||||
qw.eq(bo.getCoilSurfaceTreatment() != null, "mc.coil_surface_treatment", bo.getCoilSurfaceTreatment());
|
qw.eq(bo.getCoilSurfaceTreatment() != null, "mc.coil_surface_treatment", bo.getCoilSurfaceTreatment());
|
||||||
// 调拨类型
|
// 调拨类型
|
||||||
qw.eq(StringUtils.isNotBlank(bo.getTransferType()), "mc.transfer_type", bo.getTransferType());
|
qw.eq(StringUtils.isNotBlank(bo.getTransferType()), "mc.transfer_type", bo.getTransferType());
|
||||||
|
// 查询调拨类型不为空的钢卷
|
||||||
|
if (Boolean.TRUE.equals(bo.getHasTransferType())) {
|
||||||
|
qw.isNotNull("mc.transfer_type");
|
||||||
|
qw.ne("mc.transfer_type", "");
|
||||||
|
}
|
||||||
// 如果actualWarehouseId不为空,则根据实际库区ID进行查询 如果为-1,则查询无库区的数据
|
// 如果actualWarehouseId不为空,则根据实际库区ID进行查询 如果为-1,则查询无库区的数据
|
||||||
if (bo.getActualWarehouseId() != null) {
|
if (bo.getActualWarehouseId() != null) {
|
||||||
if (bo.getActualWarehouseId() == -1) {
|
if (bo.getActualWarehouseId() == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user