| | |
| | | //更新工单完成数量 |
| | | ProductionOrdeInfoParam orderParam = new ProductionOrdeInfoParam(); |
| | | orderParam.setWorkOrderNo(S_ORDER_CODE); |
| | | ProductionOrdeInfoService productionOrdeInfoService = opc.productionOrdeInfoService; |
| | | List<ProductionOrdeInfoResult> list = productionOrdeInfoService.findListBySpec(orderParam); |
| | | if(list.size()>0) { |
| | | ProductionOrdeInfoResult result = list.get(0); |
| | | orderParam.setId(result.getId()); |
| | | if (null == result.getActualQty() || "".equals(result.getActualQty())){ |
| | | result.setActualQty(0); |
| | | if(!"".equals(S_ORDER_CODE)&&null!=S_ORDER_CODE){ |
| | | ProductionOrdeInfoService productionOrdeInfoService = opc.productionOrdeInfoService; |
| | | List<ProductionOrdeInfoResult> list = productionOrdeInfoService.findListBySpec(orderParam); |
| | | if(list.size()>0) { |
| | | ProductionOrdeInfoResult result = list.get(0); |
| | | orderParam.setId(result.getId()); |
| | | if (null == result.getActualQty() || "".equals(result.getActualQty())){ |
| | | result.setActualQty(0); |
| | | } |
| | | orderParam.setActualQty(result.getActualQty()+1); |
| | | productionOrdeInfoService.update(orderParam); |
| | | } |
| | | orderParam.setActualQty(result.getActualQty()+1); |
| | | productionOrdeInfoService.update(orderParam); |
| | | } |
| | | |
| | | |
| | | OPCUnit.write(opc.getOP170_J_PC_FINISH(), "true"); //PC完成 |
| | | |
| | | logger.info("OP170工位,handleFinsh PC处理完成!"); |