admin
2024-01-10 7f291910791bdb9a545dc12ef36c3c359cfa4e59
guns-vip-main/src/main/java/cn/stylefeng/guns/plcserver/server/OP170/impl/OP170ServerInterfaceImpl.java
@@ -178,19 +178,19 @@
        //更新工单完成数量
        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处理完成!");