81d2d33d by xiaojie

【数据资产】

1、合约备案查询签署时间
1 parent b8fdcfe1
......@@ -34,5 +34,11 @@ public class ConnectorIdentityRQVO {
@Schema(description = "接入连接器身份标识(由区域/行业功能节点下发,唯一标识连接器身份)")
@NotBlank(message = "接入连接器身份标识为空.")
private String connectorIdentity;
/**
* 凭证颁发日期
*/
@Schema(description = "凭证颁发日期")
private Date credentialTime;
}
......
......@@ -38,6 +38,7 @@ import org.springframework.util.Base64Utils;
import org.springframework.web.multipart.MultipartFile;
import java.io.FileOutputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
......@@ -237,6 +238,19 @@ public class DataPortServiceImpl implements DataPortService {
}
}
// 凭证颁发日期转换
String authTime = connectorRegisterRSVO.getAuthTime();
if (StringUtils.isNotEmpty(authTime)) {
SimpleDateFormat dataFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
Date parse = dataFormat.parse(authTime);
entity.setCredentialTime(parse);
} catch (ParseException e) {
e.printStackTrace();
log.error("凭证颁发日期转换出错.");
}
}
// 修改接入连接器身份标识
entity.setConnectorIdentity(connectorRegisterRSVO.getIdentityCode());
mfTdsConnectorIdentityService.updateById(entity);
......@@ -247,6 +261,7 @@ public class DataPortServiceImpl implements DataPortService {
JSONObject data = new JSONObject();
data.put("guid", entity.getGuid());
data.put("connectorIdentity", entity.getConnectorIdentity());
data.put("credentialTime", entity.getCredentialTime());
jsonObject.put("zqData", data.toJSONString());
invokeUtil.invokeMainDel(jsonObject, zqConfig.getAppKey(), zqConfig.getReceiveUrl());
log.info("======连接器注册结束======");
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!