| | |
| | | import com.java110.intf.user.IUserInnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.PinYinUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.utils.util.*; |
| | | import com.java110.vo.api.staff.ApiStaffDataVo; |
| | | import com.java110.vo.api.staff.ApiStaffVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Java110CmdDoc(title = "查询员工", |
| | | description = "根据员工 名称 手机号等查询员工信息", |
| | | httpMethod = "get", |
| | |
| | | basePrivilegeDto.setResource("/viewAllOrganization"); |
| | | basePrivilegeDto.setUserId(reqJson.getString("userId")); |
| | | List<Map> privileges = menuInnerServiceSMOImpl.checkUserHasResource(basePrivilegeDto); |
| | | if (privileges.size() == 0) { |
| | | if (ListUtil.isNull(privileges)) { |
| | | //查询员工所属二级组织架构 |
| | | OrgStaffRelDto orgStaffRelDto = new OrgStaffRelDto(); |
| | | orgStaffRelDto.setStaffId(reqJson.getString("userId")); |
| | | List<OrgStaffRelDto> orgStaffRelDtos = iOrgStaffRelInnerServiceSMO.queryOrgInfoByStaffIdsNew(orgStaffRelDto); |
| | | if (orgStaffRelDtos.size() > 0) { |
| | | if (!ListUtil.isNull(orgStaffRelDtos)) { |
| | | List<String> haveOrgList = new ArrayList<String>(); |
| | | for (OrgStaffRelDto orgStaffRelDto1 : orgStaffRelDtos) { |
| | | OrgDto orgDto1 = new OrgDto(); |