4a87a78b by xu

可信空间连接器入住接口

1 parent 1f8acf01
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!