房间号改为字字符串型,所在楼层、所在排 --renpc

This commit is contained in:
Renpc-kilig 2023-11-20 09:58:00 +08:00
parent e50874ebe4
commit 8b17c84314
3 changed files with 20 additions and 21 deletions

View File

@ -32,15 +32,15 @@ public class HouseDTO {
@ApiModelProperty(name = "buildingName", value = "楼/排名称") @ApiModelProperty(name = "buildingName", value = "楼/排名称")
private String buildingName; private String buildingName;
@ApiModelProperty(name = "affiliationUnit", value = "所在单元/列") @ApiModelProperty(name = "affiliationUnit", value = "所在单元/列")
private Integer affiliationUnit; private String affiliationUnit;
@ApiModelProperty(name = "unitNum", value = "单元/排数") @ApiModelProperty(name = "unitNum", value = "单元/排数")
private String unitNum; private String unitNum;
@ApiModelProperty(name = "affiliationFloors", value = "所在层/院") @ApiModelProperty(name = "affiliationFloors", value = "所在层/院")
private Integer affiliationFloors; private String affiliationFloors;
@ApiModelProperty(name = "floorsNum", value = "楼层数") @ApiModelProperty(name = "floorsNum", value = "楼层数")
private String floorsNum; private String floorsNum;
@ApiModelProperty(name = "houseNum", value = "门牌号") @ApiModelProperty(name = "houseNum", value = "门牌号")
private Integer houseNum; private String houseNum;
@ApiModelProperty(name = "categoryId", value = "房屋类别") @ApiModelProperty(name = "categoryId", value = "房屋类别")
private String categoryId; private String categoryId;
@ApiModelProperty(name = "categoryName", value = "房屋类别名称") @ApiModelProperty(name = "categoryName", value = "房屋类别名称")
@ -186,20 +186,19 @@ public class HouseDTO {
this.buildingName = buildingName; this.buildingName = buildingName;
} }
public Integer getAffiliationUnit() { public String getAffiliationUnit() {
return affiliationUnit; return affiliationUnit;
} }
public void setAffiliationUnit(Integer affiliationUnit) { public void setAffiliationUnit(String affiliationUnit) {
this.affiliationUnit = affiliationUnit; this.affiliationUnit = affiliationUnit;
} }
public String getAffiliationFloors() {
public Integer getAffiliationFloors() {
return affiliationFloors; return affiliationFloors;
} }
public void setAffiliationFloors(Integer affiliationFloors) { public void setAffiliationFloors(String affiliationFloors) {
this.affiliationFloors = affiliationFloors; this.affiliationFloors = affiliationFloors;
} }
@ -219,11 +218,11 @@ public class HouseDTO {
this.floorsNum = floorsNum; this.floorsNum = floorsNum;
} }
public Integer getHouseNum() { public String getHouseNum() {
return houseNum; return houseNum;
} }
public void setHouseNum(Integer houseNum) { public void setHouseNum(String houseNum) {
this.houseNum = houseNum; this.houseNum = houseNum;
} }

View File

@ -292,9 +292,9 @@ public class HouseServiceImpl extends AbstractService implements IHouseService {
for (HouseDTO houseDTO : houseDTOList) { for (HouseDTO houseDTO : houseDTOList) {
BatchHouseDTO.House house = new BatchHouseDTO.House(); BatchHouseDTO.House house = new BatchHouseDTO.House();
if (null != houseDTO.getAffiliationFloors()) { if (null != houseDTO.getAffiliationFloors()) {
if (i == houseDTO.getAffiliationFloors()) { if (i == Integer.valueOf(houseDTO.getAffiliationFloors())) {
if (null != houseDTO.getAffiliatedUnit()) { if (null != houseDTO.getAffiliatedUnit()) {
if (j == houseDTO.getAffiliationUnit()) { if (j == Integer.valueOf(houseDTO.getAffiliationUnit())) {
house.setIsCreator(0); house.setIsCreator(0);
house.setPopulationCount(0); house.setPopulationCount(0);
house.setHouseId(houseDTO.getHouseId()); house.setHouseId(houseDTO.getHouseId());

View File

@ -350,13 +350,13 @@
<if test="buildingName != null and buildingName != ''"> <if test="buildingName != null and buildingName != ''">
building_name = #{buildingName}, building_name = #{buildingName},
</if> </if>
<if test="affiliationUnit != null"> <if test="affiliationUnit != null and affiliationUnit != ''">
affiliation_unit = #{affiliationUnit}, affiliation_unit = #{affiliationUnit},
</if> </if>
<if test="affiliationFloors != null"> <if test="affiliationFloors != null and affiliationFloors != ''">
affiliation_floors = #{affiliationFloors}, affiliation_floors = #{affiliationFloors},
</if> </if>
<if test="houseNum != null"> <if test="houseNum != null and houseNum != ''">
house_num = #{houseNum}, house_num = #{houseNum},
</if> </if>
<if test="categoryId != null and categoryId != ''"> <if test="categoryId != null and categoryId != ''">
@ -749,13 +749,13 @@
<if test="buildingName != null and buildingName != ''"> <if test="buildingName != null and buildingName != ''">
AND building_name = #{buildingName} AND building_name = #{buildingName}
</if> </if>
<if test="affiliationUnit != null"> <if test="affiliationUnit != null and affiliationUnit != ''">
AND affiliation_unit = #{affiliationUnit} AND affiliation_unit = #{affiliationUnit}
</if> </if>
<if test="affiliationFloors != null"> <if test="affiliationFloors != null and affiliationFloors != ''">
AND affiliation_floors = #{affiliationFloors} AND affiliation_floors = #{affiliationFloors}
</if> </if>
<if test="houseNum != null"> <if test="houseNum != null and houseNum != ''">
AND house_num = #{houseNum} AND house_num = #{houseNum}
</if> </if>
<if test="isRental != null"> <if test="isRental != null">
@ -1016,13 +1016,13 @@
<if test="buildingName != null and buildingName != ''"> <if test="buildingName != null and buildingName != ''">
AND building_name = #{buildingName} AND building_name = #{buildingName}
</if> </if>
<if test="affiliationUnit != null"> <if test="affiliationUnit != null and affiliationUnit != ''">
AND affiliation_unit = #{affiliationUnit} AND affiliation_unit = #{affiliationUnit}
</if> </if>
<if test="affiliationFloors != null"> <if test="affiliationFloors != null and affiliationFloors != ''">
AND affiliation_floors = #{affiliationFloors} AND affiliation_floors = #{affiliationFloors}
</if> </if>
<if test="houseNum != null"> <if test="houseNum != null and houseNum != ''">
AND house_num = #{houseNum} AND house_num = #{houseNum}
</if> </if>
<if test="isRental != null"> <if test="isRental != null">