|
|
@ -25,6 +25,7 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant; |
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
@ -731,20 +732,21 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
return new Result<List<CustomerListResultDTO>>().ok(listResultDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<StaffBasicInfoResultDTO> selectStaffBasicInfo(String userId,String customerId) { |
|
|
|
@Override |
|
|
|
public Result<StaffBasicInfoResultDTO> selectStaffBasicInfo(String userId, String customerId) { |
|
|
|
StaffBasicInfoResultDTO resultDTO = baseDao.selectStaffBasicInfo(userId); |
|
|
|
if(null!=resultDTO){ |
|
|
|
resultDTO.setRoleList(baseDao.selectStaffRoles(userId,resultDTO.getCustomerId())); |
|
|
|
if (null != resultDTO) { |
|
|
|
resultDTO.setRoleList(baseDao.selectStaffRoles(userId, resultDTO.getCustomerId())); |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(customerId, userId); |
|
|
|
if (null != staffInfo){ |
|
|
|
if (null != staffInfo) { |
|
|
|
resultDTO.setAgencyId(staffInfo.getAgencyId()); |
|
|
|
resultDTO.setAgencyName(staffInfo.getAgencyName()); |
|
|
|
resultDTO.setLevel(staffInfo.getLevel()); |
|
|
|
resultDTO.setLongitude(staffInfo.getLongitude()); |
|
|
|
resultDTO.setLatitude(staffInfo.getLatitude()); |
|
|
|
AgencyInfoCache agency= CustomerOrgRedis.getAgencyInfo(staffInfo.getAgencyId()); |
|
|
|
AgencyInfoCache agency = CustomerOrgRedis.getAgencyInfo(staffInfo.getAgencyId()); |
|
|
|
resultDTO.setAreaCodePath(null != agency && !CollectionUtils.isEmpty(agency.getAreaCodePath()) ? agency.getAreaCodePath() : new ArrayList<>()); |
|
|
|
resultDTO.setAreaCode(null != agency && StringUtils.isNotBlank(agency.getAreaCode()) ? agency.getAreaCode() : StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
//获取工作人员所属客户名
|
|
|
|
CustomerDTO dto = new CustomerDTO(); |
|
|
@ -757,8 +759,8 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
resultDTO.setCustomerName(customerResult.getData().getCustomerName()); |
|
|
|
} |
|
|
|
} |
|
|
|
return new Result<StaffBasicInfoResultDTO>().ok(resultDTO); |
|
|
|
} |
|
|
|
return new Result<StaffBasicInfoResultDTO>().ok(resultDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param formDTO |
|
|
|