|
|
@ -437,10 +437,10 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
* 灵山项目-党员中心户,绑定联户 |
|
|
|
* |
|
|
|
* @param partyCenterHouseId |
|
|
|
* @param lianHuHouseIdList |
|
|
|
* @param lianHuHouseList |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void bingLianHu(String partyCenterHouseId, List<PartyCenterHouseBindLianHuDetailDTO> lianHuHouseIdList) { |
|
|
|
public void bingLianHu(String partyCenterHouseId, List<PartyCenterHouseBindLianHuDetailDTO> lianHuHouseList) { |
|
|
|
IcHouseEntity partyCenterHouse=baseDao.selectById(partyCenterHouseId); |
|
|
|
IcNeighborHoodEntity neighborHoodEntity=icNeighborHoodDao.selectById(partyCenterHouse.getNeighborHoodId()); |
|
|
|
CustomerGridDTO gridDTO=SpringContextUtils.getBean(CustomerGridService.class).get(neighborHoodEntity.getGridId()); |
|
|
@ -451,17 +451,17 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
queryWrapper.eq(LingshanPartyCenterHouseLianhuEntity::getPartyCenterHouseId,partyCenterHouseId); |
|
|
|
partyCenterHouseLianhuDao.deleteByPartyCenterHouseId(partyCenterHouseId); |
|
|
|
// 后插入
|
|
|
|
lianHuHouseIdList.forEach(lianHuHouseId->{ |
|
|
|
lianHuHouseList.forEach(lianHuHouse->{ |
|
|
|
//根据选中类型,查询下面的房屋
|
|
|
|
List<IcHouseEntity> list=new ArrayList<>(); |
|
|
|
if(!"house".equals(lianHuHouseId.getType())){ |
|
|
|
if(!"house".equals(lianHuHouse.getType())){ |
|
|
|
LambdaQueryWrapper<IcHouseEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq("neighborHood".equals(lianHuHouseId.getType()), IcHouseEntity::getNeighborHoodId, lianHuHouseId.getId()) |
|
|
|
.eq("building".equals(lianHuHouseId.getType()), IcHouseEntity::getBuildingId, lianHuHouseId.getId()) |
|
|
|
.eq("unit".equals(lianHuHouseId.getType()), IcHouseEntity::getBuildingUnitId, lianHuHouseId.getId()); |
|
|
|
query.eq("neighborHood".equals(lianHuHouse.getType()), IcHouseEntity::getNeighborHoodId, lianHuHouse.getId()) |
|
|
|
.eq("building".equals(lianHuHouse.getType()), IcHouseEntity::getBuildingId, lianHuHouse.getId()) |
|
|
|
.eq("unit".equals(lianHuHouse.getType()), IcHouseEntity::getBuildingUnitId, lianHuHouse.getId()); |
|
|
|
list.addAll(baseDao.selectList(query)); |
|
|
|
}else{ |
|
|
|
IcHouseEntity icHouseEntity=baseDao.selectById(lianHuHouseId.getId()); |
|
|
|
IcHouseEntity icHouseEntity=baseDao.selectById(lianHuHouse.getId()); |
|
|
|
list.add(icHouseEntity); |
|
|
|
} |
|
|
|
if(CollectionUtils.isNotEmpty(list)){ |
|
|
|