Commit b7f28ab9 authored by liudong1993's avatar liudong1993

司导基础

parent ae764314
using VT.FW.DB;
using Mall.Common.Enum.MallBase;
using System;
using System.Collections.Generic;
using System.Text;
namespace Mall.Model.Entity.GuideCar
{
/// <summary>
/// 司导专区基础
/// </summary>
[Serializable]
[DB(ConnectionName = "DefaultConnection")]
public class RB_GuideCar_Base
{
/// <summary>
/// id
/// </summary>
public int Id { get; set; }
/// <summary>
/// 详情页面链接
/// </summary>
public string PagePath { get; set; }
/// <summary>
/// 是否需要确认 1是 2否
/// </summary>
public int IsConfirm { get; set; }
/// <summary>
/// 提前预定天数
/// </summary>
public int AdvanceDay { get; set; }
/// <summary>
/// 取消提前小时
/// </summary>
public int CancelHour { get; set; }
/// <summary>
/// 订单状态变更
/// </summary>
public string OrderStateJson { get; set; }
/// <summary>
/// 保险名称
/// </summary>
public string InsuranceName { get; set; }
/// <summary>
/// 成本价格
/// </summary>
public decimal CostPrice { get; set; }
/// <summary>
/// 销售价格
/// </summary>
public decimal SalePrice { get; set; }
/// <summary>
/// 保险描述(富文本)
/// </summary>
public string InsuranceDescription { get; set; }
/// <summary>
/// 商户id
/// </summary>
public int TenantId { get; set; }
/// <summary>
/// 小程序id
/// </summary>
public int MallBaseId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateDate { get; set; }
/// <summary>
/// 修改人(员工id)
/// </summary>
public int UpdateBy { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public DateTime UpdateDate { get; set; }
}
}
using Mall.Model.Entity.GuideCar;
using System;
using System.Collections.Generic;
using System.Text;
namespace Mall.Model.Extend.GuideCar
{
/// <summary>
/// 司导专区基础扩展表
/// </summary>
public class RB_GuideCar_Base_Extend : RB_GuideCar_Base
{
}
}
using Mall.Model.Entity.GuideCar;
using Mall.Model.Extend.GuideCar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mall.Repository.GuideCar
{
public class RB_GuideCar_BaseRepository : BaseRepository<RB_GuideCar_Base>
{
/// <summary>
/// 获取列表
/// </summary>
/// <param name="dmodel">查询条件</param>
/// <returns></returns>
public List<RB_GuideCar_Base_Extend> GetLogisticsRulesList(RB_GuideCar_Base_Extend dmodel)
{
string where = $" 1=1 ";
if (dmodel.TenantId > 0)
{
where += $@" and {nameof(RB_GuideCar_Base.TenantId)}={dmodel.TenantId}";
}
if (dmodel.MallBaseId > 0)
{
where += $@" and {nameof(RB_GuideCar_Base.MallBaseId)}={dmodel.MallBaseId}";
}
string sql = $@"
select * from RB_GuideCar_Base where {where}
";
return Get<RB_GuideCar_Base_Extend>(sql).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