|
|
@ -24,6 +24,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.entity.DataScope; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.*; |
|
|
|
import com.epmet.commons.tools.dto.form.IdAndNameDTO; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
@ -37,10 +38,7 @@ import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|
|
|
import com.epmet.commons.tools.security.password.PasswordUtils; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.commons.tools.utils.IdCardRegexUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.utils.*; |
|
|
|
import com.epmet.constant.CustomerStaffConstant; |
|
|
|
import com.epmet.constant.RoleKeyConstants; |
|
|
|
import com.epmet.constant.UserConstant; |
|
|
@ -694,6 +692,13 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
if (StringUtils.isBlank(customerStaffDTO.getHeadPhoto())) { |
|
|
|
customerStaffDTO.setHeadPhoto(""); |
|
|
|
} |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(EpmetRequestHolder.getLoginUserCustomerId(), fromDTO.getStaffId()); |
|
|
|
List<IdAndNameDTO> gridList = staffInfo.getGridList(); |
|
|
|
if (null != staffInfo.getGridList() && staffInfo.getGridList().size() > 0) { |
|
|
|
resultDTO.setGridName(staffInfo.getAgencyName() + "-" + gridList.get(0).getName()); |
|
|
|
}else { |
|
|
|
resultDTO.setGridName(staffInfo.getAgencyName()); |
|
|
|
} |
|
|
|
resultDTO.setId(customerStaffDTO.getId()); |
|
|
|
resultDTO.setStaffId(customerStaffDTO.getUserId()); |
|
|
|
resultDTO.setName(customerStaffDTO.getRealName()); |
|
|
@ -711,6 +716,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
resultDTO.setBirthday(customerStaffDTO.getBirthday()); |
|
|
|
resultDTO.setPolitical(customerStaffDTO.getPolitical()); |
|
|
|
resultDTO.setIdCard(customerStaffDTO.getIdCard()); |
|
|
|
resultDTO.setMZ(customerStaffDTO.getMZ()); |
|
|
|
|
|
|
|
//获取工作人员角色
|
|
|
|
List<GovStaffRoleEntity> staffRoles = govStaffRoleService.listRolesByStaffId(fromDTO.getStaffId(), fromDTO.getAgencyId()); |
|
|
|