using System; using System.Collections.Generic; using System.Linq; using SqlSugar; namespace SA.Entity.zxdcrm_audit_Models { /// /// 上证综研订单表 /// [SugarTable("wx_szzyorder_handle")] public class wx_szzyorder_handle { /// /// 订单号 /// [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] public int orderid { get; set; } /// /// 分公司号 /// [SugarColumn(ColumnName="employeeid" )] public string employeeid { get; set; } =""; /// /// 分公司密码 /// [SugarColumn(ColumnName="password" )] public string password { get; set; } =""; /// /// 分公司用户ID /// [SugarColumn(ColumnName="userid" )] public string userid { get; set; } =""; /// /// 产品ID /// [SugarColumn(ColumnName="productid" )] public int? productid { get; set; } /// /// 产品名称 /// [SugarColumn(ColumnName="productname" )] public string productname { get; set; } =""; /// /// 子产品ID /// [SugarColumn(ColumnName="subproductid" )] public int? subproductid { get; set; } /// /// 子产品名称 /// [SugarColumn(ColumnName="subproductname" )] public string subproductname { get; set; } =""; /// /// 订单类型(默认为1)1:普通订单2:续费订单3:升级订单 /// 默认值: 1 /// [SugarColumn(ColumnName="ordertype" )] public int? ordertype { get; set; } /// /// 订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) /// [SugarColumn(ColumnName="upgradeorderids" )] public string upgradeorderids { get; set; } =""; /// /// 升级补差总额(当OrderType=3时有效) /// [SugarColumn(ColumnName="totalupgradevalue" )] public int? totalupgradevalue { get; set; } /// /// 应付金额(默认为子产品原价)当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 /// [SugarColumn(ColumnName="needpay" )] public decimal? needpay { get; set; } /// /// 是否同时开通订单(默认为0,需要开通订单权限)0:否1:是 /// [SugarColumn(ColumnName="openorder" )] public int? openorder { get; set; } /// /// 订单号(上海CRM系统生成) /// [SugarColumn(ColumnName="szzyorderid" )] public long? szzyorderid { get; set; } /// /// 订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) /// [SugarColumn(ColumnName="orderstatus" )] public string orderstatus { get; set; } =""; /// /// 接口返回下单时间 /// [SugarColumn(ColumnName="ctime" )] public DateTime? ctime { get; set; } /// /// 接口返回应付金额 /// [SugarColumn(ColumnName="returnneedpay" )] public int? returnneedpay { get; set; } /// /// 合同编号 /// [SugarColumn(ColumnName="contractcode" )] public string contractcode { get; set; } =""; /// /// 返回码(0:成功,>0:错误码) /// [SugarColumn(ColumnName="ret" )] public int? ret { get; set; } /// /// 错误信息(当ret>0时有效) /// [SugarColumn(ColumnName="msg" )] public string msg { get; set; } =""; /// /// 接口返回详情 /// [SugarColumn(ColumnName="returndetail" )] public string returndetail { get; set; } =""; /// /// 操作人 /// [SugarColumn(ColumnName="inneruserid" )] public int? inneruserid { get; set; } /// /// 订单开通时间 /// [SugarColumn(ColumnName="otime" )] public DateTime? otime { get; set; } /// /// 资源ID /// [SugarColumn(ColumnName="resid" )] public string resid { get; set; } =""; /// /// 请求订单接口状态,1:成功,0:失败 /// [SugarColumn(ColumnName="requeststatus" )] public int? requeststatus { get; set; } /// /// 是否月结 /// 默认值: 0 /// [SugarColumn(ColumnName="isfinancepay" )] public int? isfinancepay { get; set; } /// /// 月结日期 /// [SugarColumn(ColumnName="finacepaydate" )] public DateTime? finacepaydate { get; set; } /// /// 订单修改备注 /// [SugarColumn(ColumnName="remark" )] public string remark { get; set; } =""; /// /// 实际支付金额 /// [SugarColumn(ColumnName="finalpay" )] public decimal? finalpay { get; set; } /// /// 订单状态名称 /// [SugarColumn(ColumnName="orderstatusname" )] public string orderstatusname { get; set; } =""; /// /// 客服操作时间 /// [SugarColumn(ColumnName="operatetime" )] public DateTime? operatetime { get; set; } /// /// 订单暂停结束时间 /// [SugarColumn(ColumnName="stime" )] public string stime { get; set; } =""; /// /// 订单暂停结束时间 /// [SugarColumn(ColumnName="etime" )] public string etime { get; set; } =""; /// /// 订单暂停权限备注说明 /// [SugarColumn(ColumnName="suspendcomment" )] public string suspendcomment { get; set; } =""; /// /// 更新订单时间 /// [SugarColumn(ColumnName="updateordertime" )] public DateTime? updateordertime { get; set; } /// /// 是否开通 /// 默认值: 0 /// [SugarColumn(ColumnName="isopen" )] public int? isopen { get; set; } /// /// 到期时间 /// [SugarColumn(ColumnName="endtime" )] public DateTime? endtime { get; set; } /// /// 售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属)0:总公司负责售后服务1:分公司负责售后服务 /// 默认值: 0 /// [SugarColumn(ColumnName="teamserve" )] public int? teamserve { get; set; } /// /// 分成比例文本 /// [SugarColumn(ColumnName="fctext" )] public string fctext { get; set; } =""; /// /// 客户微信用户名 /// [SugarColumn(ColumnName="customerusername" )] public string customerusername { get; set; } =""; /// /// 到账金额 /// [SugarColumn(ColumnName="arrivalpay" )] public decimal? arrivalpay { get; set; } /// /// 到账时间 /// [SugarColumn(ColumnName="arrivaltime" )] public DateTime? arrivaltime { get; set; } /// /// 客户来源。1:推广资源,2:线下资源,3:自找资源 /// [SugarColumn(ColumnName="source" )] public string source { get; set; } =""; /// /// 姓名 /// [SugarColumn(ColumnName="cname" )] public string cname { get; set; } =""; /// /// 开通天数 /// [SugarColumn(ColumnName="opendays" )] public int? opendays { get; set; } /// /// 订单用户归类 /// [SugarColumn(ColumnName="customerclassify" )] public string customerclassify { get; set; } =""; /// /// 订单部门 /// [SugarColumn(ColumnName="saledeptid" )] public int? saledeptid { get; set; } /// /// 软件用户名 /// [SugarColumn(ColumnName="softusername" )] public string softusername { get; set; } =""; /// /// 渠道 /// [SugarColumn(ColumnName="channel" )] public int? channel { get; set; } /// /// 套数 /// [SugarColumn(ColumnName="booknum" )] public int? booknum { get; set; } /// /// 开通用户 /// [SugarColumn(ColumnName="openuser" )] public string openuser { get; set; } =""; /// /// 子类代码 /// [SugarColumn(ColumnName="productcode" )] public string productcode { get; set; } =""; /// /// 大类代码 /// [SugarColumn(ColumnName="bigproductcode" )] public string bigproductcode { get; set; } =""; /// /// 是否支付,0:未支付,1:已经支付 /// [SugarColumn(ColumnName="ispayed" )] public int? ispayed { get; set; } /// /// 支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 /// [SugarColumn(ColumnName="paytype" )] public int? paytype { get; set; } /// /// 用户名 /// [SugarColumn(ColumnName="username" )] public string username { get; set; } =""; /// /// 客户端IP地址 /// [SugarColumn(ColumnName="sIP" )] public string sIP { get; set; } =""; /// /// 风控状态:1 通过,0 未通过 /// 默认值: 0 /// [SugarColumn(ColumnName="riskctrlstatus" )] public int? riskctrlstatus { get; set; } /// /// /// [SugarColumn(ColumnName="appusername" )] public string appusername { get; set; } =""; /// /// 营业部编码 /// [SugarColumn(ColumnName="companycode" )] public string companycode { get; set; } =""; /// /// 合同状态:0 新建 1:已签合同 /// [SugarColumn(ColumnName="contractstatus" )] public int? contractstatus { get; set; } /// /// 合同签订时间 /// [SugarColumn(ColumnName="contractctime" )] public DateTime? contractctime { get; set; } /// /// /// [SugarColumn(ColumnName="qywxstatus" )] public int? qywxstatus { get; set; } /// /// /// [SugarColumn(ColumnName="qywxopendate" )] public DateTime? qywxopendate { get; set; } /// /// 活动产品code /// [SugarColumn(ColumnName="activeproductcode" )] public string activeproductcode { get; set; } =""; /// /// 活动产品信息 /// [SugarColumn(ColumnName="activeproductext" )] public string activeproductext { get; set; } =""; /// /// /// [SugarColumn(ColumnName="istest" )] public int? istest { get; set; } /// /// /// [SugarColumn(ColumnName="hashgrecord" )] public int? hashgrecord { get; set; } /// /// 身份证 /// [SugarColumn(ColumnName="idcard" )] public string idcard { get; set; } =""; /// /// ***第三方平台订单号*** /// [SugarColumn(ColumnName="outorderno" )] public string outorderno { get; set; } =""; /// /// 订单时间戳字段 /// 默认值: CURRENT_TIMESTAMP /// [SugarColumn(ColumnName="utime" )] public DateTime? utime { get; set; } /// /// 赠送天数 /// [SugarColumn(ColumnName="giftdays" )] public int? giftdays { get; set; } /// /// 合规驳回说明 /// [SugarColumn(ColumnName="rejectremark" )] public string rejectremark { get; set; } =""; /// /// 赠送第二产品天数 /// [SugarColumn(ColumnName="giftdays2" )] public int? giftdays2 { get; set; } /// /// 企业微信外部联系人的userid /// [SugarColumn(ColumnName="external_userid" )] public string external_userid { get; set; } =""; /// /// 企业微信好友ID /// [SugarColumn(ColumnName="wework_remoteid" )] public string wework_remoteid { get; set; } =""; /// /// 结算类型 /// [SugarColumn(ColumnName="settletype" )] public int? settletype { get; set; } /// /// 附件名称 /// [SugarColumn(ColumnName="fujian" )] public string fujian { get; set; } =""; /// /// 微信小店单号 /// [SugarColumn(ColumnName="wXShopOrderNo" )] public string wXShopOrderNo { get; set; } =""; /// /// /// [SugarColumn(ColumnName="last_modify_time" )] public DateTime? last_modify_time { get; set; } /// /// /// [SugarColumn(ColumnName="retp" )] public decimal? retp { get; set; } /// /// 部门编码 /// [SugarColumn(ColumnName="deptcode" )] public string deptcode { get; set; } =""; } }