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

页面修改

parent 1aedb5a1
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
namespace Mall.Model.Entity.Education
{
/// <summary>
/// 课程分类实体类
/// </summary>
[Serializable]
[DB(ConnectionName = "ThinkConnection")]
public class RB_Course_Category
{
/// <summary>
/// 主键(课程分类编号)
/// </summary>
public int CateId { get; set; }
/// <summary>
/// 父级编号
/// </summary>
public int ParentId { get; set; }
/// <summary>
/// 课程分类名称
/// </summary>
public string CateName { get; set; }
/// <summary>
/// 排序
/// </summary>
public int SortNum { get; set; }
/// <summary>
/// 删除状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 创建人
/// </summary>
public int CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 修改人
/// </summary>
public int UpdateBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 集团编号
/// </summary>
public int Group_Id { get; set; }
/// <summary>
/// 学校Id
/// </summary>
public int School_Id { get; set; }
/// <summary>
/// 所属科目
/// </summary>
public int CourseSubject { get; set; }
/// <summary>
/// 源数据课程分类编号
/// </summary>
public string GUIDStr { get; set; }
/// <summary>
/// 商城表RB_Product_Category的Id
/// </summary>
public int Mall_Product_Category_Id { get; set; }
}
}
...@@ -2730,6 +2730,7 @@ namespace Mall.Module.Product ...@@ -2730,6 +2730,7 @@ namespace Mall.Module.Product
GoodsRelevanceList = goodsRelevanceList?.Where(qitem => qitem.GoodsId == gmodel.Id)?.ToList(), GoodsRelevanceList = goodsRelevanceList?.Where(qitem => qitem.GoodsId == gmodel.Id)?.ToList(),
num = item.Number, num = item.Number,
EduData = eduData, EduData = eduData,
EduTeacherId= gmodel?.EduTeacherId??0,
forehead_integral = gmodel.PointsDeduction, forehead_integral = gmodel.PointsDeduction,
forehead_integral_type = gmodel.PointsDeductionType, forehead_integral_type = gmodel.PointsDeductionType,
accumulative = gmodel.IsMultipleDeduction,//累计多件抵扣 accumulative = gmodel.IsMultipleDeduction,//累计多件抵扣
......
...@@ -2505,6 +2505,7 @@ namespace Mall.Module.Product ...@@ -2505,6 +2505,7 @@ namespace Mall.Module.Product
use_attr = model.IsCustomSpecification, use_attr = model.IsCustomSpecification,
remark = model?.Remark ?? "", remark = model?.Remark ?? "",
edu_data = eduDataJson, edu_data = eduDataJson,
EduTeacherId= model?.EduTeacherId??0,
attr_groups = model.SpecificationList.Select(x => new attr_groups = model.SpecificationList.Select(x => new
{ {
attr_group_id = x.Sort, attr_group_id = x.Sort,
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VT.FW.DB.Dapper;
namespace Mall.Repository.Education
{
/// <summary>
/// 课程分类仓储层
/// </summary>
public class RB_Think_Course_CategoryRepository : BaseRepository<Model.Entity.Education.RB_Course_Category>
{
/// <summary>
/// 获取课程分类列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public List<Model.Entity.Education.RB_Course_Category> GetCourseCategoryListRepository(Model.Entity.Education.RB_Course_Category query)
{
StringBuilder builder = new StringBuilder();
var parameters = new DynamicParameters();
builder.AppendFormat(@"
SELECT *
FROM RB_Course_Category
WHERE 1=1
");
builder.AppendFormat(" AND {0}=0 ", nameof(Model.Entity.Education.RB_Course_Category.Status));
if (query != null)
{
}
return Get<Model.Entity.Education.RB_Course_Category>(builder.ToString(), parameters).ToList();
}
}
}
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