可信空间连接器入住接口
Showing
1 changed file
with
11 additions
and
11 deletions
| ... | @@ -236,17 +236,14 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl | ... | @@ -236,17 +236,14 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl |
| 236 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | 236 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", |
| 237 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | 237 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); |
| 238 | } | 238 | } |
| 239 | for (String guid : guids) { | 239 | String guid = guids.get(0); |
| 240 | MfTdsConnectorIdentityManagement entity = mfTdsConnectorIdentityManagementService.getById(guid); | 240 | MfTdsConnectorIdentityManagement entity = mfTdsConnectorIdentityManagementService.getById(guid); |
| 241 | beforeRemove(entity); | 241 | beforeRemove(entity); |
| 242 | boolean flag = mfTdsConnectorIdentityManagementService.removeById(guid); | 242 | boolean flag = mfTdsConnectorIdentityManagementService.removeById(guid); |
| 243 | if (!flag) { | 243 | if (!flag) { |
| 244 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | 244 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); |
| 245 | } | ||
| 246 | afterRemove(entity); | ||
| 247 | } | 245 | } |
| 248 | // 删除流程数据 | 246 | afterRemove(entity); |
| 249 | approvalFlowUtil.removeApproveByBizGuids(guids); | ||
| 250 | } | 247 | } |
| 251 | 248 | ||
| 252 | /** | 249 | /** |
| ... | @@ -501,7 +498,10 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl | ... | @@ -501,7 +498,10 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl |
| 501 | * @return void | 498 | * @return void |
| 502 | */ | 499 | */ |
| 503 | private void afterRemove(MfTdsConnectorIdentityManagement entity) { | 500 | private void afterRemove(MfTdsConnectorIdentityManagement entity) { |
| 504 | 501 | if(StringUtils.isBlank(entity.getCrossPlatformApproveState())) { | |
| 502 | // 删除流程数据 | ||
| 503 | approvalFlowUtil.removeApproveByBizGuids(Arrays.asList(entity.getGuid())); | ||
| 504 | } | ||
| 505 | } | 505 | } |
| 506 | 506 | ||
| 507 | /** | 507 | /** | ... | ... |
-
Please register or sign in to post a comment