Commit 5587b8db authored by chenzhao's avatar chenzhao

修改bug

parent d16cae89
...@@ -361,6 +361,12 @@ public class WaterResourceDto extends BaseDto { ...@@ -361,6 +361,12 @@ public class WaterResourceDto extends BaseDto {
@ExcelProperty(value = "纬度", index = 41) @ExcelProperty(value = "纬度", index = 41)
private Double latitude; private Double latitude;
@ExcelProperty(value = "消火栓类型", index =42)
@ExplicitConstraint(type = "HSLX",indexNum = 42, sourceClass = CommonExplicitConstraint.class)
@ApiModelProperty(value = "消火栓类型")
@TableField(exist = false)
private String hydrantType;
@ExcelIgnore @ExcelIgnore
@ApiModelProperty(value = "附件") @ApiModelProperty(value = "附件")
@TableField(exist = false) @TableField(exist = false)
......
...@@ -967,6 +967,9 @@ public class ExcelServiceImpl { ...@@ -967,6 +967,9 @@ public class ExcelServiceImpl {
item.setResourceTypeName(resourceTypeName[0]); item.setResourceTypeName(resourceTypeName[0]);
item.setResourceType(resourceTypeName[1]); item.setResourceType(resourceTypeName[1]);
} }
if (item.getHydrantType() != null) {
item.setType(item.getHydrantType());
}
if (item.getSystemType() != null) { if (item.getSystemType() != null) {
String[] systemType = item.getSystemType().split("@"); String[] systemType = item.getSystemType().split("@");
item.setSystemType(systemType[0]); item.setSystemType(systemType[0]);
......
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