rev:打印纸管重量

This commit is contained in:
2024-08-16 18:57:52 +08:00
parent 41d8512ec5
commit 2b873d0749

View File

@@ -210,11 +210,11 @@ public class PrintTableTwoServiceImpl implements PrintTableTwoService {
}
// 校验信息
if (ObjectUtil.isEmpty(jsonPlan.getString("paper_weight"))) {
throw new BadRequestException("子卷号:" + pcsn + "管重量不能为空!(分切计划工单)");
if (ObjectUtil.isEmpty(jsonPlan.getString("paper_weight")) || jsonPlan.getDoubleValue("paper_weight") == 0) {
throw new BadRequestException("子卷号:" + pcsn + "管重量不能为空!(分切计划工单)");
}
if (ObjectUtil.isEmpty(subDao.getThickness_request()) || ObjectUtil.isEmpty(subDao.getWidth_standard())) {
throw new BadRequestException("子卷号:" + pcsn + "规格不能为空!(子卷下线记录)");
throw new BadRequestException("子卷号:" + pcsn + "规格不能为空或为0!(子卷下线记录)");
}
if (ObjectUtil.isEmpty(orderDao.getRollingType())) {
throw new BadRequestException("子卷号:" + pcsn + "毛面/光面不能为空订单BOM记录");