|
|
@ -61,6 +61,7 @@ import com.epmet.dto.form.demand.UserDemandNameQueryFormDTO; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.dto.result.demand.IcResiDemandDictDTO; |
|
|
|
import com.epmet.dto.result.demand.OptionDTO; |
|
|
|
import com.epmet.dto.result.lingshan.ConfigPartyCenterHouseFormDTO; |
|
|
|
import com.epmet.dto.result.resi.IcResiNonDynamicResultDTO; |
|
|
|
import com.epmet.entity.*; |
|
|
|
import com.epmet.enums.RenHuConditionEnum; |
|
|
@ -132,8 +133,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
private UserService userService; |
|
|
|
@Autowired |
|
|
|
private EpmetAdminOpenFeignClient epmetAdminOpenFeignClient; |
|
|
|
@Autowired |
|
|
|
private IcResiUserDao icResiUserDao; |
|
|
|
// @Autowired
|
|
|
|
// private IcResiUserDao icResiUserDao;
|
|
|
|
@Autowired |
|
|
|
private IcUserChangeRecordService icUserChangeRecordService; |
|
|
|
@Autowired |
|
|
@ -169,8 +170,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
@Resource |
|
|
|
private IcUserChangeDetailedDao icUserChangeDetailedDao; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private DataReportOpenFeignClient dataReportOpenFeignClient; |
|
|
|
// @Autowired
|
|
|
|
// private DataReportOpenFeignClient dataReportOpenFeignClient;
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IcResiRentContractInfoDao icResiRentContractInfoDao; |
|
|
@ -200,6 +201,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delete(DelIcResiUserFormDTO formDTO) { |
|
|
|
IcResiUserEntity origin=baseDao.selectById(formDTO.getIcResiUserId()); |
|
|
|
baseDao.updateToDel(formDTO.getIcResiUserId(),formDTO.getCurrentStaffId()); |
|
|
|
CustomerFormQueryDTO queryDTO = ConvertUtils.sourceToTarget(formDTO, CustomerFormQueryDTO.class); |
|
|
|
Result<Set<String>> subTableRes = operCustomizeOpenFeignClient.queryIcResiSubTables(queryDTO); |
|
|
@ -217,6 +219,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
SpringContextUtils.getBean(DataSyncRecordDisabilityService.class).deleteByIcResiUserId(formDTO.getIcResiUserId()); |
|
|
|
SpringContextUtils.getBean(DataSyncRecordDeathService.class).deleteByIcResiUserId(formDTO.getIcResiUserId()); |
|
|
|
} |
|
|
|
//灵山需求:如果放屋里的人,有党员中心户, 将ic_house.party_center_house_flag置为1,说明该房屋是党员中心户
|
|
|
|
icResiUserImportService.syncHousePartyCenterHouse(origin.getHomeId(),null); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -232,7 +236,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
LambdaQueryWrapper<IcResiUserEntity> resiWrapper=new LambdaQueryWrapper<>(); |
|
|
|
resiWrapper.eq(IcResiUserEntity::getAgencyId,formDTO.getAgencyId()); |
|
|
|
resiWrapper.select(IcResiUserEntity::getId); |
|
|
|
List<IcResiUserEntity> resiIds=icResiUserDao.selectList(resiWrapper); |
|
|
|
List<IcResiUserEntity> resiIds=baseDao.selectList(resiWrapper); |
|
|
|
for(IcResiUserEntity entity:resiIds){ |
|
|
|
baseDao.updateToDel(entity.getId(),formDTO.getCurrentStaffId()); |
|
|
|
CustomerFormQueryDTO queryDTO = ConvertUtils.sourceToTarget(formDTO, CustomerFormQueryDTO.class); |
|
|
@ -448,7 +452,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
} |
|
|
|
//3.变更记录表和变更记录明细表新增数据
|
|
|
|
saveUserChangeRecord(tokenDto, map, resiUserId, name); |
|
|
|
|
|
|
|
//灵山需求:如果放屋里的人,有党员中心户, 将ic_house.party_center_house_flag置为1,说明该房屋是党员中心户
|
|
|
|
icResiUserImportService.syncHousePartyCenterHouse(null,resiUserId); |
|
|
|
return resiUserId; |
|
|
|
|
|
|
|
} |
|
|
@ -787,6 +792,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
} |
|
|
|
} |
|
|
|
CustomerResiUserRedis.delIcResiUserInfo(resiUserId); |
|
|
|
//灵山需求:如果放屋里的人,有党员中心户, 将ic_house.party_center_house_flag置为1,说明该房屋是党员中心户
|
|
|
|
icResiUserImportService.syncHousePartyCenterHouse(entity.getHomeId(),null); |
|
|
|
return resiUserId; |
|
|
|
} |
|
|
|
|
|
|
@ -831,7 +838,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
} |
|
|
|
//修改前数据库居民十八类信息值
|
|
|
|
List<String> columns = categoryListResult.getData().stream().map(IcResiCategoryStatsConfigDTO::getColumnName).collect(Collectors.toList()); |
|
|
|
Map<String, String> hash = icResiUserDao.getCategoryListMap(columns, entity.getId()); |
|
|
|
Map<String, String> hash = baseDao.getCategoryListMap(columns, entity.getId()); |
|
|
|
//封装变更记录和变更明细数据
|
|
|
|
//变更记录
|
|
|
|
IcUserChangeRecordEntity changeRecordEntity = new IcUserChangeRecordEntity(); |
|
|
@ -1685,7 +1692,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
r.setVillageName(neighborHood.getNeighborHoodName()); |
|
|
|
|
|
|
|
// 2.志愿者类型填充
|
|
|
|
List<String> volunteers = icResiUserDao.selectVolunteerByUserId(resiEntity.getId()); |
|
|
|
List<String> volunteers = baseDao.selectVolunteerByUserId(resiEntity.getId()); |
|
|
|
if (CollectionUtils.isNotEmpty(volunteers)) { |
|
|
|
String[] vCategories = volunteers.get(0).split(","); |
|
|
|
|
|
|
@ -1702,7 +1709,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
ArrayList<String> resiCategoryNames = new ArrayList<>(); |
|
|
|
|
|
|
|
Map<String, String> categories = icResiUserDao.getCategoryListMap(resiCategoryColumns, resiUserId); |
|
|
|
Map<String, String> categories = baseDao.getCategoryListMap(resiCategoryColumns, resiUserId); |
|
|
|
categories.forEach((k, v) -> { |
|
|
|
if (NumConstant.ONE_STR.equals(v)) { |
|
|
|
ResiCategoryEnum enumObject = ResiCategoryEnum.getEnum(k); |
|
|
@ -2832,7 +2839,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result editMember(IcResiUserConfirmSubmitDTO dto) { |
|
|
|
IcResiUserEntity user = icResiUserDao.selectById(dto.getIcResiUserId()); |
|
|
|
IcResiUserEntity user = baseDao.selectById(dto.getIcResiUserId()); |
|
|
|
|
|
|
|
LambdaQueryWrapper<IcResiUserEntity> userWrapper = new LambdaQueryWrapper<>(); |
|
|
|
userWrapper.ne(IcResiUserEntity::getId, dto.getIcResiUserId()); |
|
|
|