whyclxw
2025-04-19 d46c942e3b179af8e3257e2425f21019a79524f1
src/main/java/com/whyc/service/BOMFeedbakService.java
@@ -231,7 +231,15 @@
                //解锁产品
                Integer productId = mapper.selectById(id).getProductId();
                Product product = productService.getById(productId);
                phisService.setpHistoryEnable(product.getParentCode(),product.getCustomCode(),-1,1,"问题反馈后"+ username +"确认不需要修改bom,系统执行产品解锁",DateUtil.YYYY_MM_DD_HH_MM_SS.format(product.getVersionTime()));
                if(product!=null){
                    int version=product.getVersion();
                    if(version!=-1){
                        phisService.setpHistoryEnable(product.getParentCode(),product.getCustomCode(),version,1,"问题反馈后"+ username +"确认不需要修改bom,系统执行产品解锁",DateUtil.YYYY_MM_DD_HH_MM_SS.format(product.getVersionTime()));
                    }
                   }else{
                    ProductHistory phis = phisService.getById(productId);
                    phisService.setpHistoryEnable(phis.getParentCode(),phis.getCustomCode(),phis.getVersion(),1,"问题反馈后"+ username +"确认不需要修改bom,系统执行产品解锁",DateUtil.YYYY_MM_DD_HH_MM_SS.format(phis.getVersionTime()));
                }
            }
        }
        return new Response().set(1,bl,msg);