可信空间连接器入住接口
Showing
1 changed file
with
2 additions
and
3 deletions
| ... | @@ -374,15 +374,14 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl | ... | @@ -374,15 +374,14 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl |
| 374 | if(StringUtils.isNotBlank(rqVO.getGuid())){ | 374 | if(StringUtils.isNotBlank(rqVO.getGuid())){ |
| 375 | queryWrapper.ne(MfTdsConnectorIdentityManagement::getGuid,rqVO.getGuid()); | 375 | queryWrapper.ne(MfTdsConnectorIdentityManagement::getGuid,rqVO.getGuid()); |
| 376 | } | 376 | } |
| 377 | //排除驳回、撤回的数据 | ||
| 378 | queryWrapper.notIn(MfTdsConnectorIdentityManagement::getCrossPlatformApproveState,ApprovalStateEnum.CANCEL.getValue(), | ||
| 379 | ApprovalStateEnum.REJECT.getValue(),ApprovalStateEnum.DISABLE.getValue()); | ||
| 380 | //根据使用场景查询 | 377 | //根据使用场景查询 |
| 381 | queryWrapper.eq(MfTdsConnectorIdentityManagement::getConnectorGuid,rqVO.getConnectorGuid()); | 378 | queryWrapper.eq(MfTdsConnectorIdentityManagement::getConnectorGuid,rqVO.getConnectorGuid()); |
| 382 | queryWrapper.eq(MfTdsConnectorIdentityManagement::getUseScenariosCode,rqVO.getUseScenariosCode()); | 379 | queryWrapper.eq(MfTdsConnectorIdentityManagement::getUseScenariosCode,rqVO.getUseScenariosCode()); |
| 383 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | 380 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| 384 | //期望效期有效的 | 381 | //期望效期有效的 |
| 385 | queryWrapper.ge(MfTdsConnectorIdentityManagement::getExpirationTime,sdf.format(new Date())); | 382 | queryWrapper.ge(MfTdsConnectorIdentityManagement::getExpirationTime,sdf.format(new Date())); |
| 383 | //排除驳回、撤回的数据 | ||
| 384 | queryWrapper.and(wraper->wraper.apply("ifnull(cross_platform_approve_state,biz_approve_state) in ('A','Y')")); | ||
| 386 | if(mfTdsConnectorIdentityManagementService.count(queryWrapper)>0){ | 385 | if(mfTdsConnectorIdentityManagementService.count(queryWrapper)>0){ |
| 387 | throw new CsbrSystemException(SystemError.DATA_ALREADY_EXISTS,"该连接器的使用场景已经存在。"); | 386 | throw new CsbrSystemException(SystemError.DATA_ALREADY_EXISTS,"该连接器的使用场景已经存在。"); |
| 388 | } | 387 | } | ... | ... |
-
Please register or sign in to post a comment