diff --git a/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java b/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java index 08bf747..96573ce 100644 --- a/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java +++ b/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java @@ -2038,6 +2038,7 @@ public class ScheduleServiceImpl implements ScheduleService { } //4.调用存储过程 上机的主材依次校验 + String createNewRollFlag = pageData.getCreateNewRollFlag(); //先循环验证参数是否符合规则 for (int i = 0; i < sfdcMaterialList.size(); i++) { SfdcMaterialData sfdcMaterialData = sfdcMaterialList.get(0); @@ -2054,6 +2055,12 @@ public class ScheduleServiceImpl implements ScheduleService { if (netIssueQty > transQty) { throw new XJException("材料上本卷耗用数量大于发料数量!"); } + //判断是否是正常的报工 + if("N".equalsIgnoreCase(createNewRollFlag) && itemNo > 10){ + if (netIssueQty.floatValue() != transQty.floatValue()) { + throw new XJException("正常结束卷时,主材必须完全耗用!"); + } + } //调用存储过程校验每一个卷的数量 Map resultMap = this.checkFinishRollWithSfdcMaterialHist(site, orderNo, itemNo, rollNo, seqNo, editTotalReportQty, otherRollQty, editNewRollQty, netIssueQty, histSeqNo, username); //区分是否抛出异常的信息 diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index f4cb583..7dc9eb4 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -29,12 +29,17 @@ spring: #login-password: admin filter: stat: + enabled: true log-slow-sql: true slow-sql-millis: 1000 merge-sql: false wall: config: multi-statement-allow: true + web-stat-filter: + url-pattern: /* + exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*" + session-stat-enable: true ##多数据源的配置