| | |
| | | string[] Userids = null; |
| | | if (!string.IsNullOrEmpty(userid) && userid!= "null") |
| | | { |
| | | Userids = userid.Split(','); ; |
| | | Userids = userDTOs.Where(x=> userid.Split(',').Contains(x.Id)).OrderBy(x => x.DeptId).ThenBy(x => x.HrPosition).Select(x => x.Id).ToArray(); |
| | | |
| | | } |
| | | else |
| | | { |
| | | Userids = userDTOs.OrderBy(x => x.UserSn).Select(x => x.Id).ToArray(); |
| | | Userids = userDTOs.OrderBy(x => x.DeptId).ThenBy(x=>x.HrPosition).Select(x => x.Id).ToArray(); |
| | | } |
| | | |
| | | List<TongjibaobiaobaobiaoDTO> tongjibaobiaobaobiaoDTOs = new List<TongjibaobiaobaobiaoDTO>(); |