fix: 呼叫套轴数量校验
This commit is contained in:
@@ -3997,12 +3997,12 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
List<Deliverycachepointivt> canUsePoint = deliverycachepointivtService.list(new LambdaQueryWrapper<Deliverycachepointivt>()
|
List<Deliverycachepointivt> canUsePoint = deliverycachepointivtService.list(new LambdaQueryWrapper<Deliverycachepointivt>()
|
||||||
.eq(Deliverycachepointivt::getProduct_area, area)
|
.eq(Deliverycachepointivt::getProduct_area, area)
|
||||||
.eq(Deliverycachepointivt::getPlan, xnDevice.getPlan())
|
.eq(Deliverycachepointivt::getPlan, xnDevice.getPlan())
|
||||||
.eq(Deliverycachepointivt::getIs_used, "1")
|
.eq(Deliverycachepointivt::getIs_used, "1"));
|
||||||
.eq(Deliverycachepointivt::getPoint_status, "01"));
|
|
||||||
// 获取当前区域、位置的分切计划
|
// 获取当前区域、位置的分切计划
|
||||||
List<PdmBiSlittingproductionplan> planSize = slittingproductionplanService.list(new LambdaQueryWrapper<PdmBiSlittingproductionplan>()
|
List<PdmBiSlittingproductionplan> planSize = slittingproductionplanService.list(new LambdaQueryWrapper<PdmBiSlittingproductionplan>()
|
||||||
.eq(PdmBiSlittingproductionplan::getResource_name, xnDevice.getExt_code())
|
.eq(PdmBiSlittingproductionplan::getResource_name, xnDevice.getExt_code())
|
||||||
.eq(PdmBiSlittingproductionplan::getIs_delete, "0"));
|
.eq(PdmBiSlittingproductionplan::getIs_delete, "0")
|
||||||
|
.apply("DATE(call_time) >= DATE_SUB(CURDATE(), INTERVAL 1 DAY)"));
|
||||||
int planCount = (int) planSize.stream()
|
int planCount = (int) planSize.stream()
|
||||||
.map(PdmBiSlittingproductionplan::getParent_container_name)
|
.map(PdmBiSlittingproductionplan::getParent_container_name)
|
||||||
.filter(ObjectUtil::isNotEmpty)
|
.filter(ObjectUtil::isNotEmpty)
|
||||||
|
|||||||
Reference in New Issue
Block a user