|
@ -3,6 +3,7 @@ package com.epmet.service.impl; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
|
|
import com.epmet.dto.CustomerAgencyDTO; |
|
|
import com.epmet.dto.CustomerStaffAgencyDTO; |
|
|
import com.epmet.dto.CustomerStaffAgencyDTO; |
|
|
import com.epmet.dto.CustomerStaffDTO; |
|
|
import com.epmet.dto.CustomerStaffDTO; |
|
|
import com.epmet.dto.form.StaffInfoFromDTO; |
|
|
import com.epmet.dto.form.StaffInfoFromDTO; |
|
@ -171,7 +172,15 @@ public class StaffServiceImpl implements StaffService { |
|
|
result.setStaffHeadPhoto(staffDetail.getHeadPhoto()); |
|
|
result.setStaffHeadPhoto(staffDetail.getHeadPhoto()); |
|
|
result.setGender(staffDetail.getGender()); |
|
|
result.setGender(staffDetail.getGender()); |
|
|
result.setRoleList(staffDetail.getRoles()); |
|
|
result.setRoleList(staffDetail.getRoles()); |
|
|
|
|
|
//用户所属机关名称(上级-本级)
|
|
|
result.setAgencyName(agencyName); |
|
|
result.setAgencyName(agencyName); |
|
|
|
|
|
//新增返参: 用户所属机关id
|
|
|
|
|
|
result.setAgencyId(customerStaffAgency.getAgencyId()); |
|
|
|
|
|
CustomerAgencyDTO customerAgencyDTO=customerAgencyService.get(customerStaffAgency.getAgencyId()); |
|
|
|
|
|
if(null!=customerAgencyDTO){ |
|
|
|
|
|
//用户所属机关名称
|
|
|
|
|
|
result.setAgencyName(customerAgencyDTO.getOrganizationName()); |
|
|
|
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|