Browse Source

2022-11-14 校验结束卷的业务

master
DOUDOU 3 years ago
parent
commit
40c3f0dcbd
  1. 7
      src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java
  2. 5
      src/main/resources/application-dev.yml

7
src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java

@ -2038,6 +2038,7 @@ public class ScheduleServiceImpl implements ScheduleService {
} }
//4.调用存储过程 上机的主材依次校验 //4.调用存储过程 上机的主材依次校验
String createNewRollFlag = pageData.getCreateNewRollFlag();
//先循环验证参数是否符合规则 //先循环验证参数是否符合规则
for (int i = 0; i < sfdcMaterialList.size(); i++) { for (int i = 0; i < sfdcMaterialList.size(); i++) {
SfdcMaterialData sfdcMaterialData = sfdcMaterialList.get(0); SfdcMaterialData sfdcMaterialData = sfdcMaterialList.get(0);
@ -2054,6 +2055,12 @@ public class ScheduleServiceImpl implements ScheduleService {
if (netIssueQty > transQty) { if (netIssueQty > transQty) {
throw new XJException("材料上本卷耗用数量大于发料数量!"); throw new XJException("材料上本卷耗用数量大于发料数量!");
} }
//判断是否是正常的报工
if("N".equalsIgnoreCase(createNewRollFlag) && itemNo > 10){
if (netIssueQty.floatValue() != transQty.floatValue()) {
throw new XJException("正常结束卷时,主材必须完全耗用!");
}
}
//调用存储过程校验每一个卷的数量 //调用存储过程校验每一个卷的数量
Map<String, Object> resultMap = this.checkFinishRollWithSfdcMaterialHist(site, orderNo, itemNo, rollNo, seqNo, editTotalReportQty, otherRollQty, editNewRollQty, netIssueQty, histSeqNo, username); Map<String, Object> resultMap = this.checkFinishRollWithSfdcMaterialHist(site, orderNo, itemNo, rollNo, seqNo, editTotalReportQty, otherRollQty, editNewRollQty, netIssueQty, histSeqNo, username);
//区分是否抛出异常的信息 //区分是否抛出异常的信息

5
src/main/resources/application-dev.yml

@ -29,12 +29,17 @@ spring:
#login-password: admin #login-password: admin
filter: filter:
stat: stat:
enabled: true
log-slow-sql: true log-slow-sql: true
slow-sql-millis: 1000 slow-sql-millis: 1000
merge-sql: false merge-sql: false
wall: wall:
config: config:
multi-statement-allow: true multi-statement-allow: true
web-stat-filter:
url-pattern: /*
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
session-stat-enable: true
##多数据源的配置 ##多数据源的配置

Loading…
Cancel
Save