public IActionResult GetStudentGroupDetail(GetStudentGroupDetailRequest request)
        {
            //宿舍编号参数校验
            if (!request.StudentGroupId.HasValue)
            {
                //宿舍编号为空
                return(Failure(ResultCode.PARAM_IS_INVALLD));
            }
            Student_Group_Detail studentGroupDetail = new Student_Group_Detail();

            studentGroupDetail.StudentGroupId = request.StudentGroupId;

            //按照宿舍id进行条件查询
            List <Student_Group_Detail> student_Group_Detail = _demoContext.DB.Queryable <Student_Group_Detail>().Where(it => it.StudentGroupId == studentGroupDetail.StudentGroupId && it.IsDelete == 0).ToList();

            //判断是否查询到
            if (student_Group_Detail == null)
            {
                //没有查询到
                return(Failure(ResultCode.PARAM_TYPE_BIND_ERROR));
            }


            /*return "";*///aop
            //var json = new
            //{
            //    code = 0,
            //    msg = "",
            //    count=student_Group_Detail.Count,
            //    data = student_Group_Detail

            //};
            //查询成功
            return(Success(student_Group_Detail, student_Group_Detail.Count));
        }
        public IActionResult searchStudentSelect(GetStudentGroupDetailRequest request)
        {
            //宿舍id参数校验
            if (request.StudentGroupId.HasValue)
            {
                //宿舍编号获取为空
                return(Failure(ResultCode.PARAM_IS_INVALLD));
            }
            Student_Group_Detail studentGroupDetail = new Student_Group_Detail();

            studentGroupDetail.StudentGroupId = request.StudentGroupId;
            studentGroupDetail.StudentNo      = request.StudentNo;
            studentGroupDetail.IsDelete       = request.IsDelete;

            //按照宿舍id进行条件查询
            var command = _demoContext.DB.Queryable <Student_Group_Detail>().Where(it => it.StudentNo == studentGroupDetail.StudentNo && it.IsDelete == 0).ToList();

            //判断是否查询到
            if (command.Count == 0)
            {
                //宿舍不存在
                return(Failure(ResultCode.RESULT_DATA_NOT));
            }
            //var json = new
            //{
            //    code = 0,
            //    msg = "",
            //    count = command.Count,
            //    data = command
            //};
            return(Success(command, command.Count));
        }