列表页增加搜索功能 --renpc
This commit is contained in:
parent
200f3c3e1a
commit
5bb0a66e75
@ -104,6 +104,8 @@ public class BatchHouseDTO {
|
|||||||
private String gmtCreate;
|
private String gmtCreate;
|
||||||
@ApiModelProperty(name = "isCreator", value = "是否时创建人")
|
@ApiModelProperty(name = "isCreator", value = "是否时创建人")
|
||||||
private Integer isCreator;
|
private Integer isCreator;
|
||||||
|
@ApiModelProperty(name = "populationCount", value = "房内人数")
|
||||||
|
private Integer populationCount;
|
||||||
|
|
||||||
public String getHouseId() {
|
public String getHouseId() {
|
||||||
return houseId;
|
return houseId;
|
||||||
@ -136,6 +138,14 @@ public class BatchHouseDTO {
|
|||||||
public void setIsCreator(Integer isCreator) {
|
public void setIsCreator(Integer isCreator) {
|
||||||
this.isCreator = isCreator;
|
this.isCreator = isCreator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getPopulationCount() {
|
||||||
|
return populationCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPopulationCount(Integer populationCount) {
|
||||||
|
this.populationCount = populationCount;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -295,6 +295,9 @@ public class HouseServiceImpl extends AbstractService implements IHouseService {
|
|||||||
if (i == houseDTO.getAffiliationFloors()) {
|
if (i == houseDTO.getAffiliationFloors()) {
|
||||||
if (null != houseDTO.getAffiliatedUnit()) {
|
if (null != houseDTO.getAffiliatedUnit()) {
|
||||||
if (j == houseDTO.getAffiliationUnit()) {
|
if (j == houseDTO.getAffiliationUnit()) {
|
||||||
|
// 获取当前房屋内的人数
|
||||||
|
Integer count = populationService.count(params);
|
||||||
|
house.setPopulationCount(count);
|
||||||
house.setIsCreator(0);
|
house.setIsCreator(0);
|
||||||
house.setHouseId(houseDTO.getHouseId());
|
house.setHouseId(houseDTO.getHouseId());
|
||||||
house.setName(houseDTO.getHouseNum().toString());
|
house.setName(houseDTO.getHouseNum().toString());
|
||||||
|
@ -377,6 +377,7 @@
|
|||||||
house_population t1
|
house_population t1
|
||||||
WHERE
|
WHERE
|
||||||
t1.is_delete = 0
|
t1.is_delete = 0
|
||||||
|
AND (t1.out_house != 1 OR t1.out_house IS NOT NULL)
|
||||||
<if test="houseId != null and houseId != ''">
|
<if test="houseId != null and houseId != ''">
|
||||||
AND t1.house_id = #{houseId}
|
AND t1.house_id = #{houseId}
|
||||||
</if>
|
</if>
|
||||||
|
Loading…
Reference in New Issue
Block a user