| | |
| | | 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); |
| | |
| | | }); |
| | | cService.insertBatch(componentList); |
| | | //更新散装件审批子表中type为完结 |
| | | cAService.endType(link.getMainId()); |
| | | cAService.endStatus(link.getMainId()); |
| | | } |
| | | else if(type.intValue() == EnumWorksheetType.ComponentProduct.getType()){ //更新散装件-产品关系 |
| | | //查找到对应的散装件-产品关系数据 |