|
|
@ -172,8 +172,8 @@ public class ProductionStockServiceImpl implements ProductionStockService { |
|
|
if(getFinalRoll==null){ |
|
|
if(getFinalRoll==null){ |
|
|
throw new RuntimeException("卷号不存在!"); |
|
|
throw new RuntimeException("卷号不存在!"); |
|
|
} |
|
|
} |
|
|
if(getFinalRoll.getStatusCode()!=0){ |
|
|
|
|
|
throw new RuntimeException("卷状态不为已创建无法入库!"); |
|
|
|
|
|
|
|
|
if(getFinalRoll.getStatusCode()!=1){ |
|
|
|
|
|
throw new RuntimeException("卷状态不为checked无法入库!"); |
|
|
} |
|
|
} |
|
|
ShopOrderVo shopOrder=new ShopOrderVo(); |
|
|
ShopOrderVo shopOrder=new ShopOrderVo(); |
|
|
shopOrder.setSite(inData.getSite()); |
|
|
shopOrder.setSite(inData.getSite()); |
|
|
@ -268,7 +268,7 @@ public class ProductionStockServiceImpl implements ProductionStockService { |
|
|
transDetailSubData.setRollQty(subData.get(j).getRollQty()); |
|
|
transDetailSubData.setRollQty(subData.get(j).getRollQty()); |
|
|
transDetailSubData.setOrderRef1(getHeader.getOrderRef1()); |
|
|
transDetailSubData.setOrderRef1(getHeader.getOrderRef1()); |
|
|
inList.add(transDetailSubData); |
|
|
inList.add(transDetailSubData); |
|
|
productionStockMapper.updateFinalRollStatus(transDetailSubData.getSite(),transDetailSubData.getRollNo(),1,"Stocked"); |
|
|
|
|
|
|
|
|
productionStockMapper.updateFinalRollStatus(transDetailSubData.getSite(),transDetailSubData.getRollNo(),2,"Stocked"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|