|
|
@ -2215,7 +2215,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public List<String> changeIcResiUserBelongTo(TokenDto tokenDto, IcUserBelongToChangedFormDTO formDTO) { |
|
|
|
|
|
|
|
List<String> resiUserIdList = baseDao.listUserIds(formDTO.getCustomerId(), formDTO.getSourceGridId(), formDTO.getNeighborhoodId()); |
|
|
|
if (StringUtils.isBlank(formDTO.getCustomerId()) || StringUtils.isBlank(formDTO.getSourceGridId()) |
|
|
|
||StringUtils.isBlank(formDTO.getTargetGridId())){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"参数错误","参数错误"); |
|
|
@ -2224,7 +2224,8 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
|
entity.setGridId(formDTO.getTargetGridId()); |
|
|
|
LambdaQueryWrapper<IcResiUserEntity> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(IcResiUserEntity::getGridId,formDTO.getSourceGridId()) |
|
|
|
.eq(IcResiUserEntity::getCustomerId,formDTO.getCustomerId()); |
|
|
|
.eq(IcResiUserEntity::getVillageId,formDTO.getNeighborhoodId()) |
|
|
|
.eq(IcResiUserEntity::getCustomerId,formDTO.getCustomerId()); |
|
|
|
baseDao.update(entity,wrapper); |
|
|
|
//不调用原来的更新居民了 太慢
|
|
|
|
/*List<String> resiUserIdList = baseDao.listUserIds(formDTO.getCustomerId(), formDTO.getSourceGridId()); |
|
|
|