Commit 2a575a28 authored by 黄奎's avatar 黄奎

页面修改

parent 7842e6cb
......@@ -318,7 +318,7 @@ namespace Edu.Module.Course
message = "只能选择同一同行的客户报名";
return false;
}
int CustomerId = StuList.FirstOrDefault().CustomerId;
int CustomerId = StuList?.FirstOrDefault()?.CustomerId??0;
var glist = student_OrderGuestRepository.GetStuOrderList(stuIds, userInfo.Group_Id);
if (glist.Any())
{
......@@ -336,7 +336,7 @@ namespace Edu.Module.Course
int EnterId = 0;
string EnterName = "";
int SaleId = StuList.FirstOrDefault().CreateBy;
int SaleId = StuList?.FirstOrDefault()?.CreateBy??0;
if (SaleId >0)
{
//自己负责的
......@@ -371,7 +371,7 @@ namespace Edu.Module.Course
{
CustomerId,
RenewNum,
StuList = StuList.Select(x => new
StuList = StuList?.Select(x => new
{
x.StuId,
x.StuName,
......
......@@ -496,7 +496,8 @@ namespace Edu.WebApi.Controllers.Course
public ApiResult GetOrderGuestRenewState() {
var userInfo = base.UserInfo;
string StuIds = base.ParmJObj.GetStringValue("StuIds");
if (string.IsNullOrEmpty(StuIds)) {
if (string.IsNullOrEmpty(StuIds))
{
return ApiResult.ParamIsNull("请传递学生名单");
}
......@@ -505,7 +506,8 @@ namespace Edu.WebApi.Controllers.Course
{
return ApiResult.Success("", Robj);
}
else {
else
{
return ApiResult.Failed(msg);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment