whyclxw
2025-04-19 d46c942e3b179af8e3257e2425f21019a79524f1
src/main/java/com/whyc/service/BOMFeedbakService.java
@@ -155,6 +155,7 @@
     * @param feedback
     * @return
     */
    @Transactional
    public Response confirmFeedback(BOMFeedback feedback) {
        DocUser user = ActionUtil.getUser();
        int userId = user.getId().intValue();
@@ -225,6 +226,21 @@
            int count=mapper.update(null,wrapper);
            bl=count>0;
            msg="接收者确认反馈";
            if(confirmStatus == 2){
                //解锁产品
                Integer productId = mapper.selectById(id).getProductId();
                Product product = productService.getById(productId);
                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);
    }