opt:优化校验
This commit is contained in:
@@ -769,6 +769,9 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
StIvtCutpointivt deviceCode = cutpointivtService.getPintByExtCode(device_code, false);
|
||||
List<String> qzzNo = Stream.of(deviceCode.getUp_qzzno(), deviceCode.getDown_qzzno())
|
||||
.filter(ObjectUtil::isNotEmpty).collect(Collectors.toList());
|
||||
if (qzzNo.size() == 0) {
|
||||
throw new BadRequestException("分切机 " + device_code + " 的分切计划不存在!");
|
||||
}
|
||||
List<PdmBiSlittingproductionplan> list = slittingproductionplanService.getByQzzNos(qzzNo, "05");
|
||||
if (list.size() == 0) {
|
||||
throw new BadRequestException("分切机" + device_code + " 的分切计划 " + qzzNo + " 不存在");
|
||||
|
||||
Reference in New Issue
Block a user