diff --git a/src/main/java/com/cm/population/pojo/dtos/house/HouseDTO.java b/src/main/java/com/cm/population/pojo/dtos/house/HouseDTO.java index 0773c60..5fb1add 100644 --- a/src/main/java/com/cm/population/pojo/dtos/house/HouseDTO.java +++ b/src/main/java/com/cm/population/pojo/dtos/house/HouseDTO.java @@ -32,15 +32,15 @@ public class HouseDTO { @ApiModelProperty(name = "buildingName", value = "楼/排名称") private String buildingName; @ApiModelProperty(name = "affiliationUnit", value = "所在单元/列") - private Integer affiliationUnit; + private String affiliationUnit; @ApiModelProperty(name = "unitNum", value = "单元/排数") private String unitNum; @ApiModelProperty(name = "affiliationFloors", value = "所在层/院") - private Integer affiliationFloors; + private String affiliationFloors; @ApiModelProperty(name = "floorsNum", value = "楼层数") private String floorsNum; @ApiModelProperty(name = "houseNum", value = "门牌号") - private Integer houseNum; + private String houseNum; @ApiModelProperty(name = "categoryId", value = "房屋类别") private String categoryId; @ApiModelProperty(name = "categoryName", value = "房屋类别名称") @@ -186,20 +186,19 @@ public class HouseDTO { this.buildingName = buildingName; } - public Integer getAffiliationUnit() { + public String getAffiliationUnit() { return affiliationUnit; } - public void setAffiliationUnit(Integer affiliationUnit) { + public void setAffiliationUnit(String affiliationUnit) { this.affiliationUnit = affiliationUnit; } - - public Integer getAffiliationFloors() { + public String getAffiliationFloors() { return affiliationFloors; } - public void setAffiliationFloors(Integer affiliationFloors) { + public void setAffiliationFloors(String affiliationFloors) { this.affiliationFloors = affiliationFloors; } @@ -219,11 +218,11 @@ public class HouseDTO { this.floorsNum = floorsNum; } - public Integer getHouseNum() { + public String getHouseNum() { return houseNum; } - public void setHouseNum(Integer houseNum) { + public void setHouseNum(String houseNum) { this.houseNum = houseNum; } diff --git a/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java b/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java index f27bf59..ece7c54 100644 --- a/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java +++ b/src/main/java/com/cm/population/service/house/impl/HouseServiceImpl.java @@ -292,9 +292,9 @@ public class HouseServiceImpl extends AbstractService implements IHouseService { for (HouseDTO houseDTO : houseDTOList) { BatchHouseDTO.House house = new BatchHouseDTO.House(); if (null != houseDTO.getAffiliationFloors()) { - if (i == houseDTO.getAffiliationFloors()) { + if (i == Integer.valueOf(houseDTO.getAffiliationFloors())) { if (null != houseDTO.getAffiliatedUnit()) { - if (j == houseDTO.getAffiliationUnit()) { + if (j == Integer.valueOf(houseDTO.getAffiliationUnit())) { house.setIsCreator(0); house.setPopulationCount(0); house.setHouseId(houseDTO.getHouseId()); diff --git a/src/main/resources/mybatis/mapper/house/house-mapper.xml b/src/main/resources/mybatis/mapper/house/house-mapper.xml index b096baf..734dfc3 100644 --- a/src/main/resources/mybatis/mapper/house/house-mapper.xml +++ b/src/main/resources/mybatis/mapper/house/house-mapper.xml @@ -350,13 +350,13 @@ building_name = #{buildingName}, - + affiliation_unit = #{affiliationUnit}, - + affiliation_floors = #{affiliationFloors}, - + house_num = #{houseNum}, @@ -749,13 +749,13 @@ AND building_name = #{buildingName} - + AND affiliation_unit = #{affiliationUnit} - + AND affiliation_floors = #{affiliationFloors} - + AND house_num = #{houseNum} @@ -1016,13 +1016,13 @@ AND building_name = #{buildingName} - + AND affiliation_unit = #{affiliationUnit} - + AND affiliation_floors = #{affiliationFloors} - + AND house_num = #{houseNum}