Commit 6fae6c5d authored by tianbo's avatar tianbo

refactor(amos-boot-module-jg): 优化设备信息导入导出功能

- 为是否撬装式压力容器字段添加自定义转换器 - 优化安全问题时间处理逻辑
parent 92f77aae
......@@ -115,7 +115,7 @@ public class EquipInfoExcelDto extends BaseDto {
private String whetherSphericalTank;
@ApiModelProperty(value = "是否撬装式压力容器")
@ExcelProperty(value = "是否撬装式压力容器")
@ExcelProperty(value = "是否撬装式压力容器", converter = VehicleCylinderConverter.class)
private String whetherSkidMountedPressureVessel;
@ApiModelProperty(value = "是否车用气瓶")
......
......@@ -207,7 +207,7 @@ public class SafetyProblemTopicMessage extends EmqxListener {
safetyProblemTracing.setSourceType(json.getString("sourceType"));
safetyProblemTracing.setSourceTypeCode(json.getString("sourceTypeCode"));
safetyProblemTracing.setSourceId(json.getString("problemSourceId"));
safetyProblemTracing.setProblemTime(ValidationUtil.isEmpty(json.getString("expiryDate")) ? new Date() : json.getDate("expiryDate"));
safetyProblemTracing.setProblemTime(getProblemTime(json));
safetyProblemTracing.setPrincipalUnit(json.getOrDefault("useUnit", "").toString());
safetyProblemTracing.setPrincipalUnitCode(json.getOrDefault("useUnitCode", "").toString());
safetyProblemTracing.setPrincipalUnitType(json.getOrDefault("unitType", "").toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment