4a87a78b by xu

可信空间连接器入住接口

1 parent 1f8acf01
......@@ -36,6 +36,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.text.SimpleDateFormat;
import java.util.*;
/**
......@@ -371,8 +372,9 @@ public class TdsConnectorIdentityManagementServiceImpl extends FlowAbstractImpl
ApprovalStateEnum.REJECT.getValue(),ApprovalStateEnum.DISABLE.getValue());
//根据使用场景查询
queryWrapper.eq(MfTdsConnectorIdentityManagement::getUseScenariosCode,rqVO.getUseScenariosCode());
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//期望效期有效的
queryWrapper.gt(MfTdsConnectorIdentityManagement::getExpirationTime,new Date());
queryWrapper.ge(MfTdsConnectorIdentityManagement::getExpirationTime,sdf.format(new Date()));
if(mfTdsConnectorIdentityManagementService.count(queryWrapper)>0){
throw new CsbrSystemException(SystemError.DATA_ALREADY_EXISTS,"该连接器的使用场景已经存在。");
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!