房屋内录入人员信息时必填项修改 --renpc

This commit is contained in:
Renpc-kilig 2023-11-13 15:38:29 +08:00
parent ac6d27ce77
commit d57a723b65
4 changed files with 21 additions and 14 deletions

View File

@ -240,12 +240,14 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
}
// 获取人口详情
if(StringUtils.isNotEmpty(populationDTO.getPopulationInfoId())) {
PopulationInfoDTO populationInfoDTO = populationInfoService.get(populationDTO.getPopulationInfoId());
if(null != populationInfoDTO) {
if (null != populationInfoDTO) {
populationDTO.setPopulationInfoDTO(populationInfoDTO);
}
}
}
}
PageInfo<PopulationDTO> pageInfo = new PageInfo<>(populationDTOList);
return new SuccessResultList<>(populationDTOList, pageInfo.getPageNum(), pageInfo.getTotal());
}
@ -257,6 +259,7 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
// 获取人口详情
for (PopulationDTO populationDTO : overList) {
if(StringUtils.isNotEmpty(populationDTO.getPopulationInfoId())) {
PopulationInfoDTO populationInfoDTO = populationInfoService.get(populationDTO.getPopulationInfoId());
PopulationInfoHouseDTO populationInfoHouseDTO = new PopulationInfoHouseDTO();
BeanUtils.copyProperties(populationInfoDTO, populationInfoHouseDTO);
@ -266,6 +269,7 @@ public class PopulationServiceImpl extends AbstractService implements IPopulatio
populationInfoHouseDTO.setPopulationInfoBaseDTO(base);
populationDTO.setPopulationInfoHouseDTO(populationInfoHouseDTO);
}
// 获取房屋详情
HouseDTO houseDTO = houseService.get(populationDTO.getHouseId());

View File

@ -31,6 +31,9 @@
<button type="button" class="layui-btn layui-btn-sm" lay-event="saveEvent">
<i class="fa fa-lg fa-plus"></i> 新增
</button>
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="updateEvent">
<i class="fa fa-lg fa-edit"></i> 编辑
</button>
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="removeEvent">
<i class="fa fa-lg fa-trash"></i> 删除
</button>

View File

@ -33,13 +33,13 @@
<div class="layui-input-block">
<input type="hidden" id="populationInfoId" name="populationInfoId" class="layui-input" value="" maxlength="36">
<input type="hidden" id="houseId" name="houseId" class="layui-input" value="" maxlength="36">
<input type="text" readonly id="name" name="name" class="layui-input" value="" placeholder="请输入姓名" maxlength="255">
<input type="text" id="name" name="name" class="layui-input" value="" placeholder="请输入姓名" maxlength="255">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">证件号码</label>
<div class="layui-input-block">
<input type="text" readonly id="cardNum" name="cardNum" class="layui-input" value="" placeholder="请输入证件号码" maxlength="20">
<input type="text" id="cardNum" name="cardNum" class="layui-input" value="" placeholder="请输入证件号码" maxlength="20">
</div>
</div>
<div class="layui-form-item">

View File

@ -33,13 +33,13 @@
<div class="layui-input-block">
<input type="hidden" id="populationInfoId" name="populationInfoId" class="layui-input" value="" maxlength="36">
<input type="hidden" id="houseId" name="houseId" class="layui-input" value="" maxlength="36">
<input type="text" readonly id="name" name="name" class="layui-input" value="" placeholder="请输入姓名" maxlength="255">
<input type="text" id="name" name="name" class="layui-input" value="" placeholder="请输入姓名" maxlength="255">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">证件号码</label>
<div class="layui-input-block">
<input type="text" readonly id="cardNum" name="cardNum" class="layui-input" value="" placeholder="请输入证件号码" maxlength="20">
<input type="text" id="cardNum" name="cardNum" class="layui-input" value="" placeholder="请输入证件号码" maxlength="20">
</div>
</div>
<div class="layui-form-item">