【数据资产】
1、合约备案查询签署时间
Showing
2 changed files
with
21 additions
and
0 deletions
| ... | @@ -34,5 +34,11 @@ public class ConnectorIdentityRQVO { | ... | @@ -34,5 +34,11 @@ public class ConnectorIdentityRQVO { |
| 34 | @Schema(description = "接入连接器身份标识(由区域/行业功能节点下发,唯一标识连接器身份)") | 34 | @Schema(description = "接入连接器身份标识(由区域/行业功能节点下发,唯一标识连接器身份)") |
| 35 | @NotBlank(message = "接入连接器身份标识为空.") | 35 | @NotBlank(message = "接入连接器身份标识为空.") |
| 36 | private String connectorIdentity; | 36 | private String connectorIdentity; |
| 37 | |||
| 38 | /** | ||
| 39 | * 凭证颁发日期 | ||
| 40 | */ | ||
| 41 | @Schema(description = "凭证颁发日期") | ||
| 42 | private Date credentialTime; | ||
| 37 | 43 | ||
| 38 | } | 44 | } | ... | ... |
| ... | @@ -38,6 +38,7 @@ import org.springframework.util.Base64Utils; | ... | @@ -38,6 +38,7 @@ import org.springframework.util.Base64Utils; |
| 38 | import org.springframework.web.multipart.MultipartFile; | 38 | import org.springframework.web.multipart.MultipartFile; |
| 39 | 39 | ||
| 40 | import java.io.FileOutputStream; | 40 | import java.io.FileOutputStream; |
| 41 | import java.text.ParseException; | ||
| 41 | import java.text.SimpleDateFormat; | 42 | import java.text.SimpleDateFormat; |
| 42 | import java.util.*; | 43 | import java.util.*; |
| 43 | 44 | ||
| ... | @@ -237,6 +238,19 @@ public class DataPortServiceImpl implements DataPortService { | ... | @@ -237,6 +238,19 @@ public class DataPortServiceImpl implements DataPortService { |
| 237 | } | 238 | } |
| 238 | } | 239 | } |
| 239 | 240 | ||
| 241 | // 凭证颁发日期转换 | ||
| 242 | String authTime = connectorRegisterRSVO.getAuthTime(); | ||
| 243 | if (StringUtils.isNotEmpty(authTime)) { | ||
| 244 | SimpleDateFormat dataFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
| 245 | try { | ||
| 246 | Date parse = dataFormat.parse(authTime); | ||
| 247 | entity.setCredentialTime(parse); | ||
| 248 | } catch (ParseException e) { | ||
| 249 | e.printStackTrace(); | ||
| 250 | log.error("凭证颁发日期转换出错."); | ||
| 251 | } | ||
| 252 | } | ||
| 253 | |||
| 240 | // 修改接入连接器身份标识 | 254 | // 修改接入连接器身份标识 |
| 241 | entity.setConnectorIdentity(connectorRegisterRSVO.getIdentityCode()); | 255 | entity.setConnectorIdentity(connectorRegisterRSVO.getIdentityCode()); |
| 242 | mfTdsConnectorIdentityService.updateById(entity); | 256 | mfTdsConnectorIdentityService.updateById(entity); |
| ... | @@ -247,6 +261,7 @@ public class DataPortServiceImpl implements DataPortService { | ... | @@ -247,6 +261,7 @@ public class DataPortServiceImpl implements DataPortService { |
| 247 | JSONObject data = new JSONObject(); | 261 | JSONObject data = new JSONObject(); |
| 248 | data.put("guid", entity.getGuid()); | 262 | data.put("guid", entity.getGuid()); |
| 249 | data.put("connectorIdentity", entity.getConnectorIdentity()); | 263 | data.put("connectorIdentity", entity.getConnectorIdentity()); |
| 264 | data.put("credentialTime", entity.getCredentialTime()); | ||
| 250 | jsonObject.put("zqData", data.toJSONString()); | 265 | jsonObject.put("zqData", data.toJSONString()); |
| 251 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl()); | 266 | invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl()); |
| 252 | log.info("======连接器注册结束======"); | 267 | log.info("======连接器注册结束======"); | ... | ... |
-
Please register or sign in to post a comment