创建房屋时,导入人口数据 --renpc

This commit is contained in:
Renpc-kilig 2023-11-16 15:25:22 +08:00
parent 9eba0c7613
commit 26021cd673
3 changed files with 5 additions and 5 deletions

View File

@ -120,9 +120,9 @@ public interface IPopulationDao {
/**
* 通过房屋ID删除人员信息
*
* @param populationId
* @param houseId
* @throws UpdateException
*/
void deleteById(String populationId) throws RemoveException;
void deleteByHouseId(String houseId) throws RemoveException;
}

View File

@ -152,7 +152,7 @@ public class HouseServiceImpl extends AbstractService implements IHouseService {
}
}
populationdao.deleteById(houseId);
populationdao.deleteByHouseId(houseId);
for (PopulationVO populationVO : populationVOList) {
if(!"1".equals(populationVO.getOutHouse())) {
populationService.save(token, populationVO);

View File

@ -110,11 +110,11 @@
</update>
<!-- 删除人房绑定(物理) -->
<update id="deleteById" parameterType="String">
<update id="deleteByHouseId" parameterType="String">
DELETE FROM
house_population
WHERE
population_id = #{population_id}
house_id = #{houseId}
AND out_house != 1
</update>