Browse Source

【红色代办】提交一下

master
wxz 2 years ago
parent
commit
165c4c338f
  1. 12
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java

12
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingShanAgentServiceServiceImpl.java

@ -5,12 +5,14 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.epmet.LingShanAgentServiceProcessStatusEnum;
import com.epmet.commons.tools.distributedlock.DistributedLock;
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult;
import com.epmet.commons.tools.exception.EpmetErrorCode;
import com.epmet.commons.tools.exception.EpmetException;
import com.epmet.commons.tools.exception.ExceptionUtils;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.redis.common.CustomerOrgRedis;
import com.epmet.commons.tools.redis.common.CustomerResiUserRedis;
import com.epmet.commons.tools.redis.common.CustomerStaffRedis;
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache;
import com.epmet.commons.tools.redis.common.bean.GridInfoCache;
import com.epmet.commons.tools.redis.common.bean.ResiUserInfoCache;
@ -21,6 +23,7 @@ import com.epmet.constant.OrgInfoConstant;
import com.epmet.dao.LingshanAgentServiceCategoryDao;
import com.epmet.dao.LingshanAgentServiceRecordDao;
import com.epmet.dto.form.lingshan.AgentServiceResiSubmitFormDTO;
import com.epmet.dto.result.LoginUserDetailsResultDTO;
import com.epmet.dto.result.agentservice.AgentServiceList4WorkPcResultDTO;
import com.epmet.dto.result.agentservice.ResiMyCreatedAgentServiceResultDTO;
import com.epmet.dto.result.agentservice.WorkServiceAgentResultDTO;
@ -134,6 +137,15 @@ public class LingShanAgentServiceServiceImpl implements LingShanAgentServiceServ
e2Update.setProcessStatus(processType);
e2Update.setProcessDesc(processDesc);
e2Update.setProcessTime(now);
if (LingShanAgentServiceProcessStatusEnum.ACCEPTED.getStatusCode() == processType.intValue()) {
// 如果是受理,则记录受理人
LoginUserDetailsResultDTO loginUserDetails = epmetUserRemoteService.getLoginUserDetails();
e2Update.setAgentId(loginUserDetails.getUserId());
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(EpmetRequestHolder.getLoginUserCustomerId(), loginUserDetails.getUserId());
if (staffInfo != null) {
e2Update.setAgentName(staffInfo.getRealName());
}
}
agentServiceRecordDao.updateById(e2Update);
} catch (Exception e) {

Loading…
Cancel
Save