创建房屋时,导入人口数据 --renpc
This commit is contained in:
parent
9eba0c7613
commit
26021cd673
@ -120,9 +120,9 @@ public interface IPopulationDao {
|
|||||||
/**
|
/**
|
||||||
* 通过房屋ID删除人员信息
|
* 通过房屋ID删除人员信息
|
||||||
*
|
*
|
||||||
* @param populationId
|
* @param houseId
|
||||||
* @throws UpdateException
|
* @throws UpdateException
|
||||||
*/
|
*/
|
||||||
void deleteById(String populationId) throws RemoveException;
|
void deleteByHouseId(String houseId) throws RemoveException;
|
||||||
|
|
||||||
}
|
}
|
@ -152,7 +152,7 @@ public class HouseServiceImpl extends AbstractService implements IHouseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
populationdao.deleteById(houseId);
|
populationdao.deleteByHouseId(houseId);
|
||||||
for (PopulationVO populationVO : populationVOList) {
|
for (PopulationVO populationVO : populationVOList) {
|
||||||
if(!"1".equals(populationVO.getOutHouse())) {
|
if(!"1".equals(populationVO.getOutHouse())) {
|
||||||
populationService.save(token, populationVO);
|
populationService.save(token, populationVO);
|
||||||
|
@ -110,11 +110,11 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<!-- 删除人房绑定(物理) -->
|
<!-- 删除人房绑定(物理) -->
|
||||||
<update id="deleteById" parameterType="String">
|
<update id="deleteByHouseId" parameterType="String">
|
||||||
DELETE FROM
|
DELETE FROM
|
||||||
house_population
|
house_population
|
||||||
WHERE
|
WHERE
|
||||||
population_id = #{population_id}
|
house_id = #{houseId}
|
||||||
AND out_house != 1
|
AND out_house != 1
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user