|
|
@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.yxt.anrui.portal.api.sysstaffinfo.*; |
|
|
|
import com.yxt.anrui.portal.api.sysstaffinfo.app.AppSysStaffQuery; |
|
|
|
import com.yxt.anrui.portal.api.sysstaffinfo.app.AppSysStaffVo; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|
|
|
import com.yxt.anrui.portal.biz.sysuser.SysUserService; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
@ -137,9 +136,9 @@ public class SysStaffinfoRest implements SysStaffinfoFeign { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<List<Map<String, String>>> getStaffName(String staffName,String deptSid) { |
|
|
|
public ResultBean<List<Map<String, String>>> getStaffName(String staffName, String deptSid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<Map<String, String>> staffNameList = sysStaffinfoService.getStaffName(staffName,deptSid); |
|
|
|
List<Map<String, String>> staffNameList = sysStaffinfoService.getStaffName(staffName, deptSid); |
|
|
|
return rb.success().setData(staffNameList); |
|
|
|
} |
|
|
|
|
|
|
@ -168,22 +167,11 @@ public class SysStaffinfoRest implements SysStaffinfoFeign { |
|
|
|
if (StringUtils.isNotBlank(appContactsDetailsVo.getHeadImage())) { |
|
|
|
appContactsDetailsVo.setHeadImage(fileUploadComponent.getUrlPrefix() + appContactsDetailsVo.getHeadImage()); |
|
|
|
} |
|
|
|
SysUserVo sysUser = sysUserService.selectByStaffsid(staffSid); |
|
|
|
//根据用户sid查询岗位
|
|
|
|
String isAdmin = ""; |
|
|
|
if(sysUser != null){ |
|
|
|
isAdmin = sysUser.getIsAdmin(); |
|
|
|
List<String> stringList = sysUserService.getPost(staffSid); |
|
|
|
stringList.removeAll(Collections.singleton(null)); |
|
|
|
if (!stringList.isEmpty()) { |
|
|
|
appContactsDetailsVo.setPosition(String.join("|", stringList)); |
|
|
|
} |
|
|
|
if("1".equals(isAdmin)){ |
|
|
|
|
|
|
|
}else{ |
|
|
|
List<String> stringList = sysUserService.getPost(staffSid); |
|
|
|
stringList.removeAll(Collections.singleton(null)); |
|
|
|
if (!stringList.isEmpty()) { |
|
|
|
appContactsDetailsVo.setPosition(String.join("|", stringList)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return new ResultBean<AppContactsDetailsVo>().success().setData(appContactsDetailsVo); |
|
|
|
} |
|
|
|
|
|
|
@ -214,12 +202,12 @@ public class SysStaffinfoRest implements SysStaffinfoFeign { |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<List<AppSysStaffVo>> getGressionUserList(String userSid) { |
|
|
|
return sysStaffinfoService.getGressionUserList(userSid,""); |
|
|
|
return sysStaffinfoService.getGressionUserList(userSid, ""); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<List<AppSysStaffVo>> getGressionUserList(String userSid, String orgPath) { |
|
|
|
return sysStaffinfoService.getGressionUserList(userSid,orgPath); |
|
|
|
return sysStaffinfoService.getGressionUserList(userSid, orgPath); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|