可信空间连接器入住接口
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -36,6 +36,7 @@ import org.springframework.beans.factory.annotation.Value; | ... | @@ -36,6 +36,7 @@ import org.springframework.beans.factory.annotation.Value; |
| 36 | import org.springframework.stereotype.Service; | 36 | import org.springframework.stereotype.Service; |
| 37 | import org.springframework.transaction.annotation.Transactional; | 37 | import org.springframework.transaction.annotation.Transactional; |
| 38 | 38 | ||
| 39 | import java.text.SimpleDateFormat; | ||
| 39 | import java.util.*; | 40 | import java.util.*; |
| 40 | 41 | ||
| 41 | /** | 42 | /** |
| ... | @@ -371,8 +372,9 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl | ... | @@ -371,8 +372,9 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl |
| 371 | ApprovalStateEnum.REJECT.getValue(),ApprovalStateEnum.DISABLE.getValue()); | 372 | ApprovalStateEnum.REJECT.getValue(),ApprovalStateEnum.DISABLE.getValue()); |
| 372 | //根据使用场景查询 | 373 | //根据使用场景查询 |
| 373 | queryWrapper.eq(MfTdsConnectorIdentityManagement::getUseScenariosCode,rqVO.getUseScenariosCode()); | 374 | queryWrapper.eq(MfTdsConnectorIdentityManagement::getUseScenariosCode,rqVO.getUseScenariosCode()); |
| 375 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | ||
| 374 | //期望效期有效的 | 376 | //期望效期有效的 |
| 375 | queryWrapper.gt(MfTdsConnectorIdentityManagement::getExpirationTime,new Date()); | 377 | queryWrapper.ge(MfTdsConnectorIdentityManagement::getExpirationTime,sdf.format(new Date())); |
| 376 | if(mfTdsConnectorIdentityManagementService.count(queryWrapper)>0){ | 378 | if(mfTdsConnectorIdentityManagementService.count(queryWrapper)>0){ |
| 377 | throw new CsbrSystemException(SystemError.DATA_ALREADY_EXISTS,"该连接器的使用场景已经存在。"); | 379 | throw new CsbrSystemException(SystemError.DATA_ALREADY_EXISTS,"该连接器的使用场景已经存在。"); |
| 378 | } | 380 | } | ... | ... |
-
Please register or sign in to post a comment