whycxzp
2022-08-13 fde67238dfcd493876d45d6916d3f7bdd2bb7120
src/main/java/com/whyc/service/WorksheetLinkService.java
@@ -57,7 +57,7 @@
        if(link.getLinkStatus() == 2){ //驳回
            //查看是否为散装件审批,是则需要更新散装件审批表中的状态为完结
            if(mainService.getInfoById(link.getMainId()).getType().equals(EnumWorksheetType.Component.getType())){
                cAService.endType(link.getMainId());
                cAService.endStatus(link.getMainId());
            }
            //项目经理驳回,驳回即终止
            mainService.updateEndStatusById(link.getMainId(),"经理驳回,驳回原因:"+link.getDealReason(),0);
@@ -263,7 +263,7 @@
                });
                cService.insertBatch(componentList);
                //更新散装件审批子表中type为完结
                cAService.endType(link.getMainId());
                cAService.endStatus(link.getMainId());
            }
            else if(type.intValue() == EnumWorksheetType.ComponentProduct.getType()){ //更新散装件-产品关系
                //查找到对应的散装件-产品关系数据