|
|
|
@ -398,7 +398,7 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else if(workOrders.size()>=3){
|
|
|
|
|
MesReportWork hzWorks = null;
|
|
|
|
|
BigDecimal gamng = null;
|
|
|
|
|
for(int n=0;n<workOrders.size();n++){
|
|
|
|
|
MesReportWork workOrder = workOrders.get(n);
|
|
|
|
|
|
|
|
|
@ -409,12 +409,15 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
|
|
|
|
|
if (sHzWorks == null) {
|
|
|
|
|
return R.fail(workOrder.getWorkorderCode()+"未查询到报工单");
|
|
|
|
|
}
|
|
|
|
|
if(n==0){
|
|
|
|
|
hzWorks = sHzWorks;
|
|
|
|
|
if(n == (workOrders.size()-2)){
|
|
|
|
|
gamng = sHzWorks.getQuantityFeedback();
|
|
|
|
|
}
|
|
|
|
|
if(n == (workOrders.size()-1)){
|
|
|
|
|
sHzWorks.setQuantityFeedback(gamng);
|
|
|
|
|
}
|
|
|
|
|
//三层以上工单报工
|
|
|
|
|
logger.info("==========================三层(第"+n+"层)以上工单("+sHzWorks.getWorkorderCodeSap()+")报工开始");
|
|
|
|
|
sHzWorks.setQuantityFeedback(hzWorks.getQuantityFeedback());
|
|
|
|
|
|
|
|
|
|
sapRson = this.reportHzToSap(sHzWorks);
|
|
|
|
|
logger.info("==========================三层(第"+n+"层)以上工单("+sHzWorks.getWorkorderCodeSap()+")报工结束:"
|
|
|
|
|
+ JSONObject.toJSONString(sapRson));
|
|
|
|
|