|
@ -510,23 +510,7 @@ public class IssueServiceImpl extends BaseServiceImpl<IssueDao, IssueEntity> imp |
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public String audit(TokenDto token, IssueAuditionFormDTO param){ |
|
|
public String audit(TokenDto token, IssueAuditionFormDTO param){ |
|
|
|
|
|
scanReason(param.getReason()); |
|
|
if (StringUtils.isNotBlank(param.getReason())) { |
|
|
|
|
|
TextScanParamDTO textScanParamDTO = new TextScanParamDTO(); |
|
|
|
|
|
TextTaskDTO taskDTO = new TextTaskDTO(); |
|
|
|
|
|
taskDTO.setDataId(UUID.randomUUID().toString().replace("-", "")); |
|
|
|
|
|
taskDTO.setContent(param.getReason()); |
|
|
|
|
|
textScanParamDTO.getTasks().add(taskDTO); |
|
|
|
|
|
Result<SyncScanResult> textSyncScanResult = ScanContentUtils.textSyncScan(scanApiUrl.concat(textSyncScanMethod), textScanParamDTO); |
|
|
|
|
|
if (!textSyncScanResult.success()){ |
|
|
|
|
|
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode()); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (!textSyncScanResult.getData().isAllPass()) { |
|
|
|
|
|
throw new RenException(EpmetErrorCode.TEXT_SCAN_FAILED.getCode()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Date unifiedDate = new Date(); |
|
|
Date unifiedDate = new Date(); |
|
|
|
|
|
|
|
|
IssueApplicationDTO application = applicationService.get(param.getIssueApplicationId()); |
|
|
IssueApplicationDTO application = applicationService.get(param.getIssueApplicationId()); |
|
@ -613,6 +597,24 @@ public class IssueServiceImpl extends BaseServiceImpl<IssueDao, IssueEntity> imp |
|
|
return app2update.getIssueId(); |
|
|
return app2update.getIssueId(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void scanReason(String reason) { |
|
|
|
|
|
if (StringUtils.isNotBlank(reason)) { |
|
|
|
|
|
TextScanParamDTO textScanParamDTO = new TextScanParamDTO(); |
|
|
|
|
|
TextTaskDTO taskDTO = new TextTaskDTO(); |
|
|
|
|
|
taskDTO.setDataId(UUID.randomUUID().toString().replace("-", "")); |
|
|
|
|
|
taskDTO.setContent(reason); |
|
|
|
|
|
textScanParamDTO.getTasks().add(taskDTO); |
|
|
|
|
|
Result<SyncScanResult> textSyncScanResult = ScanContentUtils.textSyncScan(scanApiUrl.concat(textSyncScanMethod), textScanParamDTO); |
|
|
|
|
|
if (!textSyncScanResult.success()){ |
|
|
|
|
|
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode()); |
|
|
|
|
|
} else { |
|
|
|
|
|
if (!textSyncScanResult.getData().isAllPass()) { |
|
|
|
|
|
throw new RenException(EpmetErrorCode.TEXT_SCAN_FAILED.getCode()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 表决中列表 |
|
|
* @Description 表决中列表 |
|
|
* @param issueListForm |
|
|
* @param issueListForm |
|
|