Model/OrderInfo.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Model
{
    /// <summary>
    /// 订单表
    /// </summary>
   public class OrderInfo:BaseModel
    {
       
        /// <summary>
        /// 订单号--下单的年月日小时分钟秒
        /// </summary>
        public  string OrderId { get; set; }
        public int GoodsId { get; set;  }
        public  string GoodsName { get; set; }
        public double Count { get; set; }

        public decimal PayPrice { get; set; }
        public  decimal DisCount { get; set; }

       public  DateTime CreateTime { get; set; }

        public  decimal Profit { get; set; }

        public GoodsInfo GoodsInfo { get; set; }

        public OrderInfo()
        {
            GoodsId = int.MaxValue;
            GoodsName = "";
            Count = 0;
            PayPrice = (decimal)0.0;
            DisCount = (decimal)0.0;
            Profit = (decimal)0.0;
            GoodsInfo = null;
        }
       

        public override string GetSql()
        {
            return "([OrderId],[GoodsId],[Count],[DisCount],[PayPrice],[CreateTime],[Remark],[DelFlag])";
        }

        public override string GetAddSql()
        {
            return "Values('" + this.OrderId + "','" +
                this.GoodsId + "','" +
                this.Count + "','" +
                this.DisCount + "','" +
                this.PayPrice + "','" +  
                this.CreateTime+ "','" +
                this.Remark + "'," +
                this.DelFlag + ")";
        }
后面还有 77 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。