|
@@ -54,6 +54,11 @@ public class ProductionSchedulingServiceImpl extends ServiceImpl<ProductionSched
|
|
|
wrapper.in("po", ProductionOrder::getCompanyId, SecurityUtils.getCompanyIds());
|
|
|
wrapper.eq("po", ProductionOrder::getCompanyId, dto.getCompanyId());
|
|
|
|
|
|
+ //排程日期过滤
|
|
|
+ wrapper.eq("ps", ProductionScheduling::getSchedulingDate, dto.getSchedulingDate());
|
|
|
+
|
|
|
+ wrapper.orderByDesc("ps.scheduling_date");
|
|
|
+
|
|
|
Page<ProductionSchedulingVo> page = baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
List<ProductionSchedulingVo> records = page.getRecords();
|
|
|
if (ObjectUtil.isEmpty(records)) {
|