/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CoreCms.Net.Model.Entities;
using Newtonsoft.Json.Linq;
using SqlSugar;
namespace CoreCms.Net.Model.ViewModels.DTO
{
///
/// 查询团购秒杀下单数量返回实体
///
public class FindLimitOrderDto
{
///
/// 总单数
///
public int TotalOrders { get; set; } = 0;
///
/// 用户总单数
///
public int TotalUserOrders { get; set; } = 0;
}
///
/// 发票模糊查询提交实体
///
public class GetTaxCodePost
{
///
/// 发票抬头
///
public string name { get; set; }
}
///
/// 创建订单提交参数
///
public class CreateOrder
{
///
/// 区域序列
///
public int areaId { get; set; }
///
/// 订单编号
///
public string orderId { get; set; }
///
/// 状态
///
public int status { get; set; } = 0;
///
/// 明细id
///
public string itemIds { get; set; }
///
/// 明细数量
///
public string itemNums { get; set; }
///
/// 购物车序列
///
public string cartIds { get; set; }
///
/// 优惠券码
///
public string couponCode { get; set; }
///
/// 买家留言
///
public string memo { get; set; }
///
/// 积分
///
public int point { get; set; } = 0;
///
/// 收货方式,1快递物流,2同城配送,3门店自提
///
public int receiptType { get; set; } = 1;
///
/// 来源平台
///
public int source { get; set; } = 2;
///
/// 发票税务编号
///
public string taxCode { get; set; }
///
/// 发票抬头
///
public string taxName { get; set; }
///
/// 发票类型
///
public int taxType { get; set; } = 1;
///
/// 用户地址库序列
///
public int ushipId { get; set; } = 0;
///
/// 门店序列
///
public int storeId { get; set; } = 0;
///
/// 订单类型[对应CoreCmsOrder表orderType字段]/也对应购物车cart订单类型
///
public int orderType { get; set; } = 1;
///
/// 提货人姓名
///
public string ladingName { get; set; }
///
/// 提货人联系方式
///
public string ladingMobile { get; set; }
///
/// 非普通订单关联营销对象序列
///
public int objectId { get; set; } = 0;
///
/// 拼团订单分组序列
///
public int teamId { get; set; } = 0;
///
/// 场景值(升级微信自定义交易组件后弃用)
///
public int scene { get; set; } = 0;
///
/// 是否需要推单,1:需要,0:不需要
///
public int requireOrder { get; set; } = 0;
///
/// requireOrder = 1时生效,0,非二级商户号订单,1,二级商户号订单,2,两种方式皆可(后续只会存在1)
///
public int requiredFundType { get; set; } = 0;
///
/// 跟踪ID,有效期十分钟,会影响主播归因、分享员归因等,需创建订单前调用,调用生成订单 api 时需传入该参数
///
public string traceId { get; set; }
///
/// 明细ids
///
public int[] itemIdarray { get; set; }
///
/// 明细数量
///
public int[] itemNumarray { get; set; }
///
/// 计划订单id
///
public string planorderId { get; set; }
}
///
/// 支付确认页面取信息提交参数集合
///
public class CheckPayPost
{
///
/// 订单号集合
///
public string ids { get; set; }
///
/// //支付的时候,有一些特殊的参数需要传递到支付里面,这里就是干这个事情的,key=>value格式的一维数组
///
public JObject @params { get; set; } = null;
///
/// 付款方式
///
public int paymentType { get; set; }
}
///
/// 获取订单不同状态的数量提交参数
///
public class GetOrderStatusNumPost
{
///
/// 类型集合
///
public string ids { get; set; }
///
/// 是否进行售后
///
public bool isAfterSale { get; set; }
}
///
/// 获取订单列表提交参数
///
public class GetOrderListPost
{
///
/// 每页数量
///
public int limit { get; set; } = 5;
///
/// 页码
///
public int page { get; set; } = 1;
///
/// 状态
///
public int status { get; set; } = 0;
///
/// 是否大于0
///
public int money { get; set; } = 0;
}
///
/// 获取订单列表提交参数
///
public class GetOrderJingxiaoListPost
{
///
/// 每页数量
///
public int limit { get; set; } = 5;
///
/// 页码
///
public int page { get; set; } = 1;
///
/// 订单id
///
public string orderId { get; set; }
///
/// 订单状态 是否大于0
///
public int status { get; set; } = 0;
///
/// 订单类型 是否大于0
///
public int orderType { get; set; } = 0;
///
/// 发货状态 是否大于0
///
public int shipStatus { get; set; } = 0;
///
/// 支付状态 是否大于0
///
public int payStatus { get; set; } = 0;
///
/// 支付方式代码
///
public string paymentCode { get; set; }
///
/// 售后状态 是否大于0
///
public int confirmStatus { get; set; } = 0;
///
/// 订单来源 是否大于0
///
public int source { get; set; } = 0;
///
/// 收货方式 是否大于0
///
public int receiptType { get; set; } = 0;
///
/// 收货人姓名
///
public string shipName { get; set; }
///
/// 收货人地址
///
public string shipAddress { get; set; }
///
/// 收货电话
///
public string shipMobile { get; set; }
///
/// 付款单号
///
public string paymentId { get; set; }
///
/// datetime 2024-01-02到2024-08-07 或者 2024-08-07
///
public string createTime { get; set; }
///
/// 商品名称
///
public string goodName { get; set; }
///
/// 商品编码
///
public string goodSn { get; set; }
///
/// 订单状态 是否大于0
///
public int orderUnifiedStatus { get; set; } = 0;
}
///
/// 获取订单列表提交参数
///
public class GetOrderPageByMerchantPost
{
///
/// 日期类型
///
public string dateType { get; set; }
///
/// 自定义日期
///
public string[] date { get; set; }
///
/// 每页数量
///
public int limit { get; set; } = 5;
///
/// 页码
///
public int page { get; set; } = 1;
///
/// 状态
///
public int status { get; set; } = 0;
///
/// 收货类型
///
public int receiptType { get; set; } = 0;
///
/// 门店序列
///
public int storeId { get; set; } = 0;
}
///
/// 搜索获取订单列表提交参数
///
public class GetOrderPageByMerchantSearcgPost
{
///
/// 查询关键词
///
public string keyword { get; set; }
///
/// 每页数量
///
public int limit { get; set; } = 5;
///
/// 页码
///
public int page { get; set; } = 1;
///
/// 状态
///
public int status { get; set; } = 0;
///
/// 收货类型
///
public int receiptType { get; set; } = 0;
///
/// 门店序列
///
public int storeId { get; set; } = 0;
}
///
/// 后端订单管理列表返回实体dto
///
public class OrderListUIResult
{
///
/// 订单编号
///
public string OrderId { get; set; }
///
/// 订单状态
///
public string StatusText { get; set; }
///
/// 用户用户
///
public string UserName { get; set; }
///
/// 收货人手机
///
public string ShipMobile { get; set; }
///
/// 操作html代码
///
public string Operating { get; set; }
///
/// 收货区域
///
public string AreaName { get; set; }
///
/// 支付状态说明
///
public string PayStatus { get; set; }
///
/// 发货状态说明
///
public string ShipStatus { get; set; }
///
/// 订单来源说明
///
public string Source { get; set; }
///
/// 订单类型说明(团购,普通)
///
public string Type { get; set; }
///
/// 订单售后状态
///
public string AfterSaleStatus { get; set; }
///
/// 获取订单打印状态
///
public bool Print { get; set; }
///
/// 订单号(备注醒目)
///
public string OrderIdK { get; set; }
///
/// 订单金额
///
public decimal OrderAmount { get; set; }
///
/// 支付方式
///
public string PaymentCode { get; set; }
///
/// 数据创建时间
///
public DateTime CreateTime { get; set; }
}
///
/// 后端订单发货返回集合实体
///
public class AdminOrderShipResult
{
public string[] orderId { get; set; }
public decimal weight { get; set; } = 0;
public List memo { get; set; }
public decimal costFreight { get; set; } = 0;
public int storeId { get; set; } = 0;
public int shipAreaId { get; set; } = 0;
public string shipAddress { get; set; }
public string shipName { get; set; }
public string shipMobile { get; set; }
public int logisticsId { get; set; } = 0;
public CoreCmsShip ship { get; set; } = null;
public string logisticsName { get; set; }
public List items { get; set; }
public List orders { get; set; }
///
/// 定位信息,用逗号分割
/// liao20240605
///
public string? Coordinate { get; set; }
}
///
/// 后端订单发货返回单个实体
///
public class AdminOrderShipOneResult
{
public string orderId { get; set; }
public decimal weight { get; set; } = 0;
public string memo { get; set; }
public decimal costFreight { get; set; } = 0;
public int storeId { get; set; } = 0;
public int shipAreaId { get; set; } = 0;
public string shipAddress { get; set; }
public string shipName { get; set; }
public string shipMobile { get; set; }
public int logisticsId { get; set; } = 0;
public CoreCmsShip ship { get; set; } = null;
public string logisticsName { get; set; }
public List items { get; set; }
public CoreCmsOrder orderInfo { get; set; }
}
///
/// 前端提交售后单提交参数
///
public class ToAddBillAfterSalesPost
{
///
/// 订单编号
///
public string orderId { get; set; }
///
/// 是否收到退货,1未收到退货,不会创建退货单,2收到退货,会创建退货单,只有未发货的商品才能选择未收到货,只有已发货的才能选择已收到货
///
public int type { get; set; } = 0;
///
/// 如果是退款退货,退货的明细 以 [[order_item_id=>nums]]的二维数组形式传值
///
public JArray items { get; set; }
///
/// 上传图集
///
public string[] images { get; set; }
///
/// 备注
///
public string reason { get; set; }
///
/// 金额
///
public decimal refund { get; set; } = 0;
}
///
/// 计划订单
///
public class JiHuaOrder
{
///
/// 学校
///
public System.String shipAddress { get; set; }
///
/// 联系人
///
public System.String shipName { get; set; }
///
/// 联系电话
///
public System.String shipMobile { get; set; }
///
/// 收货地址
///
public System.String shouhuoAddress { get; set; }
///
/// quxian
///
public System.String shi { get; set; }
///
/// quxian
///
public System.String quxian { get; set; }
///
/// 片区
///
public System.String pianqu { get; set; }
///
/// 商品名称
///
public System.String name { get; set; }
///
/// 商品规格
///
public System.String specification { get; set; }
///
/// 货品价格单价
///
public System.Decimal price { get; set; }
///
/// 数量
///
public System.Int32 nums { get; set; }
}
}