|
|
@ -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); |
|
|
//区分是否抛出异常的信息 |
|
|
//区分是否抛出异常的信息 |
|
|
|