| | |
| | | } |
| | | } |
| | | boolean saveBool = super.save(docInfo); |
| | | SysParams sysParams=sysParamsService.getSysPramBySettingKey("nc_dispatch_file"); |
| | | if (sysParams ==null){ |
| | | throw new JeecgBootException("未配置导入NC与电子图版是否触发审签流程,请联系管理员"); |
| | | }else { |
| | | if (saveBool&&sysParams.getSettingValue().equals("1")){ |
| | | //触发审签 |
| | | DispatchFile dispatchFile = new DispatchFile(); |
| | | dispatchFile.setDocId(docInfo.getDocId()); |
| | | dispatchFile.setFileId(docFile.getFileId()); |
| | | dispatchFile.setAttributionId(uploadRequest.getAttributionId()); |
| | | dispatchFile.setAttributionType(String.valueOf(uploadRequest.getAttributionType())); |
| | | dispatchFile.setDocClassCode(uploadRequest.getDocClassCode()); |
| | | dispatchFileService.saveDispatchFile(dispatchFile); |
| | | if (uploadRequest.getDocClassCode().equals("NC")||uploadRequest.getDocClassCode().equals("other")){ |
| | | SysParams sysParams=sysParamsService.getSysPramBySettingKey("nc_dispatch_file"); |
| | | if (sysParams ==null){ |
| | | throw new JeecgBootException("未配置导入NC与电子图版是否触发审签流程,请联系管理员"); |
| | | }else { |
| | | if (saveBool&&sysParams.getSettingValue().equals("1")){ |
| | | //触发审签 |
| | | DispatchFile dispatchFile = new DispatchFile(); |
| | | dispatchFile.setDocId(docInfo.getDocId()); |
| | | dispatchFile.setFileId(docFile.getFileId()); |
| | | dispatchFile.setAttributionId(uploadRequest.getAttributionId()); |
| | | dispatchFile.setAttributionType(String.valueOf(uploadRequest.getAttributionType())); |
| | | dispatchFile.setDocClassCode(uploadRequest.getDocClassCode()); |
| | | dispatchFileService.saveDispatchFile(dispatchFile); |
| | | } |
| | | } |
| | | } |
| | | return saveBool; |