Commit 00cf1e2f authored by 黄奎's avatar 黄奎

Merge branch 'master' of http://gitlab.oytour.com/Kui2/education

parents 9b62c395 8bf6f35b
...@@ -10,6 +10,11 @@ namespace Edu.Model.ViewModel.User ...@@ -10,6 +10,11 @@ namespace Edu.Model.ViewModel.User
[Serializable] [Serializable]
public class RB_Student_ViewModel : Entity.User.RB_Student public class RB_Student_ViewModel : Entity.User.RB_Student
{ {
/// <summary>
/// 学生Ids
/// </summary>
public string StuIds { get; set; }
/// <summary> /// <summary>
/// 创建人姓名 /// 创建人姓名
/// </summary> /// </summary>
......
...@@ -193,7 +193,7 @@ ORDER BY {orderBy} ...@@ -193,7 +193,7 @@ ORDER BY {orderBy}
{ {
if (demodel.Q_OrderState == 1) if (demodel.Q_OrderState == 1)
{ {
where += $@" and o.{nameof(RB_Order_ViewModel.OrderState)} in(1,2)"; where += $@" and o.{nameof(RB_Order_ViewModel.OrderState)} in(1,2,4)";
} }
else if (demodel.Q_OrderState == 2) else if (demodel.Q_OrderState == 2)
{ {
......
...@@ -74,6 +74,10 @@ WHERE 1=1 ...@@ -74,6 +74,10 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.AreaId), query.AreaId); builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.AreaId), query.AreaId);
} }
if (!string.IsNullOrEmpty(query.StuIds))
{
builder.AppendFormat(" AND t.{0} in({1}) ", nameof(RB_Student_ViewModel.StuId), query.StuIds);
}
} }
return Get<RB_Student_ViewModel>(builder.ToString(), parameters).ToList(); return Get<RB_Student_ViewModel>(builder.ToString(), parameters).ToList();
} }
......
...@@ -138,6 +138,10 @@ namespace Edu.WebApi.Controllers.Customer ...@@ -138,6 +138,10 @@ namespace Edu.WebApi.Controllers.Customer
{ {
var CustomerId = base.ParmJObj.GetInt("CustomerId"); var CustomerId = base.ParmJObj.GetInt("CustomerId");
var data = customerModule.GetCustomerModule(CustomerId); var data = customerModule.GetCustomerModule(CustomerId);
if (data!=null && data.CreateBy > 0)
{
data.CreateByName = UserReidsCache.GetUserLoginInfo(data.CreateBy)?.AccountName ?? "";
}
return ApiResult.Success(data: data); return ApiResult.Success(data: data);
} }
......
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