Commit 07fa2ef9 authored by 黄奎's avatar 黄奎

页面修改

parent e815835f
......@@ -189,5 +189,9 @@ namespace Edu.Model.ViewModel.Course
#endregion
/// <summary>
/// 是否查询有上架(1-是)
/// </summary>
public int IsQuerySalePlat { get; set; }
}
}
\ No newline at end of file
......@@ -78,6 +78,11 @@ WHERE 1=1
builder.AppendFormat(" AND ({0}) ", str);
}
}
//查询有上架的
if (query.IsQuerySalePlat == 1)
{
builder.AppendFormat(" AND IFNULL(A.Saleplat,'')<>'' ");
}
//所属科目
if (query.CourseSubject > 0)
{
......
......@@ -350,8 +350,9 @@ namespace Edu.WebApi.Controllers.Course
{
IsQPrice = base.ParmJObj.GetInt("IsQPrice", 0),
CourseSubject=base.ParmJObj.GetInt("CourseSubject"),
IsQuerySalePlat=base.ParmJObj.GetInt("IsQuerySalePlat"),
};
query.Saleplat = "1,2,3,4";
query.Group_Id = base.UserInfo.Group_Id;
query.School_Id = base.UserInfo.School_Id;
var list = courseModule.GetCourseListModule(query);
......
......@@ -132,6 +132,25 @@ namespace Edu.WebApi.Controllers.Customer
return ApiResult.Failed("手机号码、QQ号码、微信号码至少填写一项!");
}
var categoryModel = new RB_Customer_Category_Extend()
{
CategoryId = 0,
CatetoryType = (CatetoryTypeEnum)base.ParmJObj.GetInt("CustomerType"),
CategoryName = base.ParmJObj.GetStringValue("CategoryName"),
Status = Common.Enum.DateStateEnum.Normal,
Group_Id = base.UserInfo.Group_Id,
CreateBy = base.UserInfo.Id,
CreateTime = DateTime.Now,
UpdateBy = base.UserInfo.Id,
UpdateTime = DateTime.Now,
School_Id = base.UserInfo.School_Id,
};
if (!string.IsNullOrEmpty(categoryModel.CategoryName))
{
bool cflag = customerModule.SetCustomerCategoryModule(categoryModel);
model.CategoryId = categoryModel.CategoryId;
}
model.Status = Common.Enum.DateStateEnum.Normal;
model.CreateBy = base.UserInfo.Id;
model.CreateTime = DateTime.Now;
......
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