|
@@ -168,7 +168,9 @@ public class ProduceOrderServiceImpl extends ServiceImpl<ProduceOrderMapper, Pro
|
|
}
|
|
}
|
|
|
|
|
|
//欠料状态过滤
|
|
//欠料状态过滤
|
|
- wrapper.apply("IFNULL( t2.lackStatus, 0 )", dto.getLackStatus());
|
|
|
|
|
|
+ if (ObjectUtil.isNotEmpty(dto.getLackStatus())) {
|
|
|
|
+ wrapper.apply("IFNULL( t2.lackStatus, 0 )", dto.getLackStatus());
|
|
|
|
+ }
|
|
|
|
|
|
Page<ProductionOrderVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
Page<ProductionOrderVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
List<ProductionOrderVo> records = page.getRecords();
|
|
List<ProductionOrderVo> records = page.getRecords();
|