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

页面修改

parent 7842e6cb
...@@ -318,7 +318,7 @@ namespace Edu.Module.Course ...@@ -318,7 +318,7 @@ namespace Edu.Module.Course
message = "只能选择同一同行的客户报名"; message = "只能选择同一同行的客户报名";
return false; return false;
} }
int CustomerId = StuList.FirstOrDefault().CustomerId; int CustomerId = StuList?.FirstOrDefault()?.CustomerId??0;
var glist = student_OrderGuestRepository.GetStuOrderList(stuIds, userInfo.Group_Id); var glist = student_OrderGuestRepository.GetStuOrderList(stuIds, userInfo.Group_Id);
if (glist.Any()) if (glist.Any())
{ {
...@@ -336,7 +336,7 @@ namespace Edu.Module.Course ...@@ -336,7 +336,7 @@ namespace Edu.Module.Course
int EnterId = 0; int EnterId = 0;
string EnterName = ""; string EnterName = "";
int SaleId = StuList.FirstOrDefault().CreateBy; int SaleId = StuList?.FirstOrDefault()?.CreateBy??0;
if (SaleId >0) if (SaleId >0)
{ {
//自己负责的 //自己负责的
...@@ -371,7 +371,7 @@ namespace Edu.Module.Course ...@@ -371,7 +371,7 @@ namespace Edu.Module.Course
{ {
CustomerId, CustomerId,
RenewNum, RenewNum,
StuList = StuList.Select(x => new StuList = StuList?.Select(x => new
{ {
x.StuId, x.StuId,
x.StuName, x.StuName,
......
...@@ -496,7 +496,8 @@ namespace Edu.WebApi.Controllers.Course ...@@ -496,7 +496,8 @@ namespace Edu.WebApi.Controllers.Course
public ApiResult GetOrderGuestRenewState() { public ApiResult GetOrderGuestRenewState() {
var userInfo = base.UserInfo; var userInfo = base.UserInfo;
string StuIds = base.ParmJObj.GetStringValue("StuIds"); string StuIds = base.ParmJObj.GetStringValue("StuIds");
if (string.IsNullOrEmpty(StuIds)) { if (string.IsNullOrEmpty(StuIds))
{
return ApiResult.ParamIsNull("请传递学生名单"); return ApiResult.ParamIsNull("请传递学生名单");
} }
...@@ -505,7 +506,8 @@ namespace Edu.WebApi.Controllers.Course ...@@ -505,7 +506,8 @@ namespace Edu.WebApi.Controllers.Course
{ {
return ApiResult.Success("", Robj); return ApiResult.Success("", Robj);
} }
else { else
{
return ApiResult.Failed(msg); 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