Browse Source

Merge remote-tracking branch 'origin/dev_abandon_grid' into develop

dev
yinzuomei 3 years ago
parent
commit
7812507e17
  1. 8
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/EpmetHeartOpenFeignClient.java
  2. 11
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/fallback/EpmetHeartOpenFeignClientFallback.java
  3. 11
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/ResiVolunteerController.java
  4. 7
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/VolunteerInfoDao.java
  5. 6
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/VolunteerInfoService.java
  6. 10
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/VolunteerInfoServiceImpl.java
  7. 13
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/VolunteerInfoDao.xml
  8. 11
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/GridController.java
  9. 46
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java
  10. 26
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/ModifyRegGridFormDTO.java
  11. 16
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserController.java
  12. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserService.java
  13. 101
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserServiceImpl.java

8
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/EpmetHeartOpenFeignClient.java

@ -84,4 +84,12 @@ public interface EpmetHeartOpenFeignClient {
*/ */
@PostMapping("/heart/resi/volunteer/count") @PostMapping("/heart/resi/volunteer/count")
Result<Integer> getVolunteerCount(@RequestBody VolunteerCommonFormDTO input); Result<Integer> getVolunteerCount(@RequestBody VolunteerCommonFormDTO input);
/**
* 修改志愿者的注册网格
* @param volunteerInfoDTO
* @return
*/
@PostMapping("/heart/resi/volunteer/modifyVolunteerGrid")
Result modifyVolunteerGrid(@RequestBody VolunteerInfoDTO volunteerInfoDTO);
} }

11
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/fallback/EpmetHeartOpenFeignClientFallback.java

@ -77,4 +77,15 @@ public class EpmetHeartOpenFeignClientFallback implements EpmetHeartOpenFeignCli
public Result<Integer> getVolunteerCount(VolunteerCommonFormDTO input) { public Result<Integer> getVolunteerCount(VolunteerCommonFormDTO input) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_HEART_SERVER, "getVolunteerCount", input); return ModuleUtils.feignConError(ServiceConstant.EPMET_HEART_SERVER, "getVolunteerCount", input);
} }
/**
* 修改志愿者的注册网格
*
* @param volunteerInfoDTO
* @return
*/
@Override
public Result modifyVolunteerGrid(VolunteerInfoDTO volunteerInfoDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_HEART_SERVER, "modifyVolunteerGrid", volunteerInfoDTO);
}
} }

11
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/ResiVolunteerController.java

@ -159,4 +159,15 @@ public class ResiVolunteerController {
Integer volunteerCount = volunteerInfoService.getVolunteerCount(customerId, agencyId); Integer volunteerCount = volunteerInfoService.getVolunteerCount(customerId, agencyId);
return new Result<Integer>().ok(volunteerCount); return new Result<Integer>().ok(volunteerCount);
} }
/**
* 修改志愿者注册信息_的网格信息
* @param volunteerInfoDTO
* @return
*/
@PostMapping("modifyVolunteerGrid")
public Result modifyVolunteerGrid(@RequestBody VolunteerInfoDTO volunteerInfoDTO){
volunteerInfoService.modifyVolunteerGrid(volunteerInfoDTO);
return new Result();
}
} }

7
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/VolunteerInfoDao.java

@ -74,4 +74,11 @@ public interface VolunteerInfoDao extends BaseDao<VolunteerInfoEntity> {
* @date 2020.08.13 10:06 * @date 2020.08.13 10:06
**/ **/
List<String> selectVolunteerIds(@Param("customerId")String customerId); List<String> selectVolunteerIds(@Param("customerId")String customerId);
/**
* 修改志愿者注册信息_网格信息
* @param volunteerInfoDTO
* @return
*/
int updateVolunteerGrid(VolunteerInfoDTO volunteerInfoDTO);
} }

6
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/VolunteerInfoService.java

@ -111,4 +111,10 @@ public interface VolunteerInfoService extends BaseService<VolunteerInfoEntity> {
* @return * @return
*/ */
Integer getVolunteerCount(String customerId, String agencyId); Integer getVolunteerCount(String customerId, String agencyId);
/**
* 修改志愿者注册信息_的网格信息
* @param volunteerInfoDTO
*/
void modifyVolunteerGrid(VolunteerInfoDTO volunteerInfoDTO);
} }

10
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/VolunteerInfoServiceImpl.java

@ -420,4 +420,14 @@ public class VolunteerInfoServiceImpl extends BaseServiceImpl<VolunteerInfoDao,
return pidsAndAgencyIdPath; return pidsAndAgencyIdPath;
} }
/**
* 修改志愿者注册信息_的网格信息
*
* @param volunteerInfoDTO
*/
@Override
public void modifyVolunteerGrid(VolunteerInfoDTO volunteerInfoDTO) {
baseDao.updateVolunteerGrid(volunteerInfoDTO);
}
} }

13
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/VolunteerInfoDao.xml

@ -72,4 +72,17 @@
AND CUSTOMER_ID = #{customerId} AND CUSTOMER_ID = #{customerId}
order by CREATED_TIME asc order by CREATED_TIME asc
</select> </select>
<update id="updateVolunteerGrid" parameterType="com.epmet.dto.VolunteerInfoDTO">
UPDATE volunteer_info
SET GRID_ID = #{gridId},
GRID_NAME = #{gridName},
PID = #{pid},
PIDS = #{pids},
UPDATED_TIME = NOW()
WHERE
del_flag = '0'
AND customer_id = #{customerId}
AND user_id = #{userId}
</update>
</mapper> </mapper>

11
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/GridController.java

@ -241,15 +241,4 @@ public class GridController {
return new Result(); return new Result();
} }
/**
* desc:移除网格内的工作人员关系 并迁移到组织
* @author jianjun liu
* @remark: 如果是网格添加的则解除关系后将注册关系改为对应的组织 如果不是则直接解除关系(相当于移除该人员与网格的关系)
*/
@PostMapping("removeGridStaff2Agency/{gridId}")
//@RequirePermission(requirePermission = RequirePermissionEnum.ORG_STAFF_TRANSFER)
public Result removeGridStaff2Agency( @PathVariable String gridId){
customerGridService.abandonGridForDealBizData(gridId);
return new Result();
}
} }

46
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java

@ -972,7 +972,6 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu
* @param formDTO * @param formDTO
* @return * @return
*/ */
@Transactional(rollbackFor = Exception.class)
@Override @Override
public void abandonGrid(AbandonGridFormDTO formDTO) { public void abandonGrid(AbandonGridFormDTO formDTO) {
//未处理的事件 //未处理的事件
@ -989,16 +988,8 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "存在未关闭的议题", "该网格存在未关闭的议题,请处理完再操作"); throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "存在未关闭的议题", "该网格存在未关闭的议题,请处理完再操作");
} }
//可以弃用、处理数据 todo //可以弃用、处理数据(网格工作人员所属关系(网格工作人员人数), 删除正在审核中的徽章认证)
// ....
// ....
this.abandonGridForDealBizData(formDTO.getGridId()); this.abandonGridForDealBizData(formDTO.getGridId());
//处理成功,隐藏网格
LambdaUpdateWrapper<CustomerGridEntity> updateGrid=new LambdaUpdateWrapper<>();
updateGrid.set(CustomerGridEntity::getAbandonFlag,true);
updateGrid.eq(CustomerGridEntity::getId,formDTO.getGridId());
baseDao.update(null,updateGrid);
CustomerOrgRedis.delGridInfo(formDTO.getGridId()); CustomerOrgRedis.delGridInfo(formDTO.getGridId());
} }
@ -1014,24 +1005,28 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu
logger.debug("abandonGridForDealBizData staffList:{}", JSON.toJSONString(staffList)); logger.debug("abandonGridForDealBizData staffList:{}", JSON.toJSONString(staffList));
List<StaffOrgRelationEntity> updateList = new ArrayList<>(); List<StaffOrgRelationEntity> updateList = new ArrayList<>();
staffList.forEach(staffOrg->{ staffList.forEach(staffOrg->{
if(OrgTypeEnum.GRID.getCode().equals(staffOrg.getOrgType())){ //只有工作人员是网格添加的才处理
StaffOrgRelationEntity entity = new StaffOrgRelationEntity(); if(!OrgTypeEnum.GRID.getCode().equals(staffOrg.getOrgType())) {
entity.setId(staffOrg.getId()); return;
entity.setOrgType(OrgTypeEnum.AGENCY.getCode()); }
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(staffOrg.getOrgId()); StaffOrgRelationEntity entity = new StaffOrgRelationEntity();
if (gridInfo == null || StringUtils.isBlank(gridInfo.getPid())){ entity.setId(staffOrg.getId());
log.error("abandonGridForDealBizData agencyId:{} is not exist",gridInfo.getPid()); entity.setOrgType(OrgTypeEnum.AGENCY.getCode());
return; GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(staffOrg.getOrgId());
} if (gridInfo == null || StringUtils.isBlank(gridInfo.getPid())) {
entity.setOrgId(gridInfo.getPid()); assert gridInfo != null;
updateList.add(entity); log.error("abandonGridForDealBizData grid:{} pid is not exist", JSON.toJSONString(gridInfo));
return;
} }
entity.setOrgId(gridInfo.getPid());
updateList.add(entity);
}); });
//更新工作人员组织关系 //更新工作人员组织关系
String customerId = staffList.get(NumConstant.ZERO).getCustomerId(); String customerId = staffList.get(NumConstant.ZERO).getCustomerId();
updateGridStaff2Agency(customerId,gridId, staffList, updateList); updateGridStaff2Agency(customerId,gridId, staffList, updateList);
//清空工作人员缓存 //清空工作人员缓存
staffList.forEach(staff->CustomerStaffRedis.delStaffInfoFormCache(customerId,staff.getStaffId())); staffList.forEach(staff->CustomerStaffRedis.delStaffInfoFormCache(customerId,staff.getStaffId()));
} catch (Exception e) { } catch (Exception e) {
log.error("abandonGridForDealBizData exception", e); log.error("abandonGridForDealBizData exception", e);
throw e; throw e;
@ -1051,11 +1046,18 @@ public class CustomerGridServiceImpl extends BaseServiceImpl<CustomerGridDao, Cu
//网格对应的人数减少 //网格对应的人数减少
long reduceCount = NumConstant.ZERO - staffList.stream().map(StaffOrgRelationDTO::getStaffId).distinct().count(); long reduceCount = NumConstant.ZERO - staffList.stream().map(StaffOrgRelationDTO::getStaffId).distinct().count();
log.debug("updateGridStaff2Agency gridId:{} reduceCount:{}",gridId, reduceCount); log.debug("updateGridStaff2Agency gridId:{} reduceCount:{}",gridId, reduceCount);
int effectRow = customerGridDao.updateTotalUser(gridId, reduceCount); customerGridDao.updateTotalUser(gridId, reduceCount);
//删除正在审核中的徽章认证
Result<Integer> badgeResult = epmetUserFeignClient.deleteBadgeCertificateAuditing(customerId,gridId); Result<Integer> badgeResult = epmetUserFeignClient.deleteBadgeCertificateAuditing(customerId,gridId);
if (badgeResult == null || !badgeResult.success()){ if (badgeResult == null || !badgeResult.success()){
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"删除未审核徽章失败,请稍后重试"); throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"删除未审核徽章失败,请稍后重试");
} }
//处理成功,隐藏网格
LambdaUpdateWrapper<CustomerGridEntity> updateGrid=new LambdaUpdateWrapper<>();
updateGrid.set(CustomerGridEntity::getAbandonFlag,true);
updateGrid.eq(CustomerGridEntity::getId,gridId);
baseDao.update(null,updateGrid);
} }
} }

26
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/ModifyRegGridFormDTO.java

@ -0,0 +1,26 @@
package com.epmet.dto.form;
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@Data
public class ModifyRegGridFormDTO implements Serializable {
public interface AddUserInternalGroup {
}
public interface AddUserShowGroup extends CustomerClientShowGroup {
}
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class)
private String userId;
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class)
private String customerId;
@NotBlank(message = "请选择您所在的网格", groups = AddUserShowGroup.class)
private String gridId;
}

16
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserController.java

@ -210,4 +210,20 @@ public class UserController {
ValidatorUtils.validateEntity(findIcUserFormDTO,FindIcUserFormDTO.AddUserInternalGroup.class); ValidatorUtils.validateEntity(findIcUserFormDTO,FindIcUserFormDTO.AddUserInternalGroup.class);
return new Result<EpmetUserFamilyDTO>().ok(userService.findIcUser(findIcUserFormDTO)); return new Result<EpmetUserFamilyDTO>().ok(userService.findIcUser(findIcUserFormDTO));
} }
/**
* 居民端-修改注册网格
* @param tokenDto
* @param formDTO
* @return
*/
@PostMapping(value = "modify-reg-grid")
public Result modifyRegGrid(@LoginUser TokenDto tokenDto,@RequestBody ModifyRegGridFormDTO formDTO){
formDTO.setUserId(tokenDto.getUserId());
formDTO.setCustomerId(tokenDto.getCustomerId());
ValidatorUtils.validateEntity(formDTO,ModifyRegGridFormDTO.AddUserShowGroup.class,
ModifyRegGridFormDTO.AddUserInternalGroup.class);
userService.modifyRegGrid(formDTO);
return new Result();
}
} }

6
epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserService.java

@ -121,4 +121,10 @@ public interface UserService extends BaseService<UserEntity> {
* @return * @return
*/ */
EpmetUserFamilyDTO findIcUser(FindIcUserFormDTO findIcUserFormDTO); EpmetUserFamilyDTO findIcUser(FindIcUserFormDTO findIcUserFormDTO);
/**
* 居民端-修改注册网格
* @param formDTO
*/
void modifyRegGrid(ModifyRegGridFormDTO formDTO);
} }

101
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserServiceImpl.java

@ -1,26 +1,27 @@
package com.epmet.service.impl; package com.epmet.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
import com.epmet.commons.tools.constant.NumConstant; import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.exception.EpmetErrorCode; import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.EpmetException; import com.epmet.commons.tools.exception.EpmetException;
import com.epmet.commons.tools.exception.RenException; import com.epmet.commons.tools.exception.RenException;
import com.epmet.commons.tools.redis.common.CustomerOrgRedis;
import com.epmet.commons.tools.redis.common.bean.GridInfoCache;
import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.utils.CpUserDetailRedis; import com.epmet.commons.tools.utils.CpUserDetailRedis;
import com.epmet.commons.tools.utils.Result; import com.epmet.commons.tools.utils.Result;
import com.epmet.constant.UserConstant; import com.epmet.constant.UserConstant;
import com.epmet.dao.UserDao; import com.epmet.dao.*;
import com.epmet.dao.UserResiInfoDao;
import com.epmet.dao.UserRoleDao;
import com.epmet.dao.UserWechatDao;
import com.epmet.dto.*; import com.epmet.dto.*;
import com.epmet.dto.form.*; import com.epmet.dto.form.*;
import com.epmet.dto.result.*; import com.epmet.dto.result.*;
import com.epmet.entity.UserBaseInfoEntity; import com.epmet.entity.*;
import com.epmet.entity.UserEntity; import com.epmet.feign.EpmetHeartOpenFeignClient;
import com.epmet.entity.UserWechatEntity;
import com.epmet.feign.EpmetPointOpenFeignClient; import com.epmet.feign.EpmetPointOpenFeignClient;
import com.epmet.feign.GovOrgFeignClient; import com.epmet.feign.GovOrgFeignClient;
import com.epmet.redis.UserBaseInfoRedis;
import com.epmet.service.IcResiUserService; import com.epmet.service.IcResiUserService;
import com.epmet.service.UserBaseInfoService; import com.epmet.service.UserBaseInfoService;
import com.epmet.service.UserService; import com.epmet.service.UserService;
@ -31,6 +32,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
@ -63,6 +65,16 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
private UserResiInfoDao userResiInfoDao; private UserResiInfoDao userResiInfoDao;
@Autowired @Autowired
private IcResiUserService icResiUserService; private IcResiUserService icResiUserService;
@Autowired
private RegisterRelationDao registerRelationDao;
@Autowired
private EpmetHeartOpenFeignClient epmetHeartOpenFeignClient;
@Autowired
private ResiUserBadgeDao resiUserBadgeDao;
@Autowired
private UserBadgeCertificateRecordDao userBadgeCertificateRecordDao;
@Autowired
private UserBaseInfoRedis userBaseInfoRedis;
private static final Logger log = LoggerFactory.getLogger(UserServiceImpl.class); private static final Logger log = LoggerFactory.getLogger(UserServiceImpl.class);
@ -417,4 +429,79 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
return result; return result;
} }
/**
* 居民端-修改注册网格
*
* @param formDTO
*/
@Transactional(rollbackFor = Exception.class)
@Override
public void modifyRegGrid(ModifyRegGridFormDTO formDTO) {
GridInfoCache newGridInfo= CustomerOrgRedis.getGridInfo(formDTO.getGridId());
if (null == newGridInfo) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "居民端_修改注册网格:查询当前网格信息异常", "服务器开小差了...");
}
//修改register_relation表
//原始注册记录
LambdaQueryWrapper<RegisterRelationEntity> wrapper=new LambdaQueryWrapper();
wrapper.eq(RegisterRelationEntity::getCustomerId,formDTO.getCustomerId())
.eq(RegisterRelationEntity::getUserId,formDTO.getUserId())
.eq(RegisterRelationEntity::getFirstRegister, NumConstant.ONE_STR);
RegisterRelationEntity originReg=registerRelationDao.selectOne(wrapper);
if(null==originReg){
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "居民端_修改注册网格:查询用户原始注册网格记录异常", "服务器开小差了...");
}
//1、删除废弃网格的
registerRelationDao.deleteById(originReg.getId());
//2、当前选择的网格,是否有记录,有更新没有删除
LambdaQueryWrapper<RegisterRelationEntity> query=new LambdaQueryWrapper();
query.eq(RegisterRelationEntity::getCustomerId,formDTO.getCustomerId())
.eq(RegisterRelationEntity::getUserId,formDTO.getUserId())
.eq(RegisterRelationEntity::getGridId, formDTO.getGridId());
RegisterRelationEntity nowReg=registerRelationDao.selectOne(query);
if (null != nowReg) {
nowReg.setFirstRegister(NumConstant.ONE_STR);
nowReg.setRegister(NumConstant.ONE_STR);
nowReg.setParticipation(NumConstant.ONE_STR);
registerRelationDao.updateById(nowReg);
} else {
RegisterRelationEntity insert=new RegisterRelationEntity();
insert.setCustomerId(formDTO.getCustomerId());
insert.setGridId(formDTO.getGridId());
insert.setUserId(formDTO.getUserId());
insert.setFirstRegister(NumConstant.ONE_STR);
insert.setRegister(NumConstant.ONE_STR);
insert.setParticipation(NumConstant.ONE_STR);
registerRelationDao.insert(insert);
}
//2、修改历史徽章表
LambdaUpdateWrapper<UserBadgeCertificateRecordEntity> recUpdate=new LambdaUpdateWrapper<>();
recUpdate.set(UserBadgeCertificateRecordEntity::getGridId,newGridInfo.getId());
recUpdate.eq(UserBadgeCertificateRecordEntity::getCustomerId,formDTO.getCustomerId())
.eq(UserBadgeCertificateRecordEntity::getUserId,formDTO.getUserId());
userBadgeCertificateRecordDao.update(null,recUpdate);
LambdaUpdateWrapper<ResiUserBadgeEntity> badgeUpdate=new LambdaUpdateWrapper<>();
badgeUpdate.set(ResiUserBadgeEntity::getGridId,newGridInfo.getId());
badgeUpdate.eq(ResiUserBadgeEntity::getCustomerId,formDTO.getCustomerId())
.eq(ResiUserBadgeEntity::getUserId,formDTO.getUserId());
resiUserBadgeDao.update(null,badgeUpdate);
//3、修改支援者信息表
VolunteerInfoDTO volunteerInfoDTO=new VolunteerInfoDTO();
volunteerInfoDTO.setCustomerId(formDTO.getCustomerId());
volunteerInfoDTO.setUserId(formDTO.getUserId());
volunteerInfoDTO.setGridId(newGridInfo.getId());
volunteerInfoDTO.setPid(newGridInfo.getPid());
volunteerInfoDTO.setPids(newGridInfo.getPids());
volunteerInfoDTO.setGridName(newGridInfo.getGridName());
Result volunteerRes=epmetHeartOpenFeignClient.modifyVolunteerGrid(volunteerInfoDTO);
if (!volunteerRes.success()) {
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "居民端_修改注册网格:修改用户志愿者信息异常", "服务器开小差了...");
}
//4、删除用户缓存信息
userBaseInfoRedis.clearUserCache(Arrays.asList(formDTO.getUserId()));
}
} }

Loading…
Cancel
Save