Browse Source

提交

master
gwbvipvip 9 months ago
parent
commit
7940fb4452
7 changed files with 306 additions and 0 deletions
  1. +22
    -0
      BPA.KitChen.GroupMealOrder.Application/Service/Order/Dtos/GoodStoreDto.cs
  2. +143
    -0
      BPA.KitChen.GroupMealOrder.Application/Service/Order/Dtos/NormalNewOrderDto.cs
  3. +40
    -0
      BPA.KitChen.GroupMealOrder.Core/Entity/BPA_SubOrderMetaInfo.cs
  4. +21
    -0
      BPA.KitChen.GroupMealOrder.Core/Entity/Base/BasicEntity.cs
  5. +20
    -0
      BPA.KitChen.GroupMealOrder.Core/Enum/EatTypeEnum.cs
  6. +28
    -0
      BPA.KitChen.GroupMealOrder.Core/Enum/OrderTypeEnum.cs
  7. +32
    -0
      BPA.KitChen.GroupMealOrder.Core/Enum/PayModelEnum.cs

+ 22
- 0
BPA.KitChen.GroupMealOrder.Application/Service/Order/Dtos/GoodStoreDto.cs View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMealOrder.Application.Service.Order.Dtos
{
public class GoodStoreDto
{
public string Id { get; set; }
public string GoodId { get; set; }
public string GoodName { get; set; }
public string DeviceId { get; set; }
public string StoreName { get; set; }
public decimal OrginalPrice { get; set; }
/// <summary>
/// 0门店销售,1设备销售
/// </summary>
public int IsDevice { get; set; }
}
}

+ 143
- 0
BPA.KitChen.GroupMealOrder.Application/Service/Order/Dtos/NormalNewOrderDto.cs View File

@@ -0,0 +1,143 @@

using BPA.KitChen.GroupMealOrder.Core.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMealOrder.Application.Service.Order.Dtos
{
public class NormalNewOrderDto: NewOrderBasicDto
{
/// <summary>
/// 实际金额
/// </summary>
public decimal RealMoney { get; set; } = 0;
/// <summary>
/// 优惠券金额
/// </summary>
public decimal CouponPrice { get; set; } = 0;
/// <summary>
/// 用户领取优惠券Id
/// </summary>
public string CouponCustomerId { get; set; } = string.Empty;
/// <summary>
/// 活动折扣金额
/// </summary>
public decimal DisCountPrice { get; set; } = 0;
/// <summary>
/// 会员优惠金额
/// </summary>
public decimal VipCountPrice { get; set; } = 0;
/// <summary>
/// 支付渠道<see cref="PayModelEnum"/>
/// </summary>
public PayModelEnum PayMode { get; set; } = PayModelEnum.WeiXin;
/// <summary>
/// 订单类型 <see cref="OrderTypeEnum"/>
/// </summary>
public OrderTypeEnum SubOrderType { get; set; } = OrderTypeEnum.Normal;
/// <summary>
/// 通知地址
/// </summary>
public string NotifyUrl { get; set; }
/// <summary>
/// 桌号
/// </summary>
public int DeskCode { get; set; }
/// <summary>
/// 就餐方式
/// <see cref="EatTypeEnum"/>
/// </summary>
public EatTypeEnum EatType { get; set; }
/// <summary>
/// 小票备注
/// </summary>
public string PrintRemark { get; set; }
/// <summary>
/// 店铺Id
/// </summary>
public string StoreId { get; set; }
/// <summary>
/// 冒菜用户选购信息
/// </summary>
public List<NewOrderMCDto> MCInfo { get; set; }
}

public class NewOrderBasicDto
{
/// <summary>
/// 订单号
/// </summary>
public string OrderNumber { get; set; }
/// <summary>
/// 客户Id
/// </summary>
public string UserId { get; set; }
/// <summary>
/// 子订单信息
/// </summary>
public List<NewOrderSubOrderInfoDto> SubOrderInfo { get; set; }
/// <summary>
/// 加购商品信息
/// </summary>
public List<NewOrderSubOrderInfoDto> AddFoodInfo { get; set; }
/// <summary>
/// 特价子商品
/// </summary>
public List<NewOrderBasicPriceDto> DisCountSubOrder { get; set; }
}
public class NewOrderBasicPriceDto
{
/// <summary>
/// 价格
/// </summary>
public decimal Price { get; set; }
/// <summary>
/// 商品Id
/// </summary>
public string GoodId { get; set; }
}

public class NewOrderSubOrderInfoDto
{
/// <summary>
/// 商品Id
/// </summary>
public string FoodMenuId { get; set; }
/// <summary>
/// 做法名称
/// </summary>
public string MakeName { get; set; }
/// <summary>
/// 做法ID
/// </summary>
public string MakeId { get; set; }
/// <summary>
/// 是否设备
/// </summary>
public int IsDevice { get; set; }
/// <summary>
/// 是否赠送
/// </summary>
public bool IsGift { get; set; } = false;
}

public class NewOrderMCDto
{
/// <summary>
/// 子订单菜品Id
/// </summary>
public string SubGoodId { get; set; }
/// <summary>
/// 冒菜配料Id
/// </summary>
public string McId { get; set; }
/// <summary>
/// 数量
/// </summary>
public int Count { get; set; }
}
}

+ 40
- 0
BPA.KitChen.GroupMealOrder.Core/Entity/BPA_SubOrderMetaInfo.cs View File

@@ -0,0 +1,40 @@
using Furion.DatabaseAccessor;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMealOrder.Core.Entity
{
[SugarTable("BPA_SubOrderMetaInfo")]
public class BPA_SubOrderMetaInfo
{
public string Id { get; set; }
/// <summary>
/// 订单Id
/// </summary>
public string OrderId { get; set; }
/// <summary>
/// 订单Id
/// </summary>
public string SubOrderId { get; set; }
/// <summary>
/// 商品Id
/// </summary>
public string GoodId { get; set; }
/// <summary>
/// 店铺Id
/// </summary>
public string StoreId { get; set; }
/// <summary>
/// 物料Id
/// </summary>
public string BatchingId { get; set; }
/// <summary>
/// 使用数量
/// </summary>
public int UseCount { get; set; }
}
}

+ 21
- 0
BPA.KitChen.GroupMealOrder.Core/Entity/Base/BasicEntity.cs View File

@@ -0,0 +1,21 @@
using Furion.DatabaseAccessor;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OrderService.Core
{
public class BasicEntity
{
[SugarColumn(IsPrimaryKey = true)]
public string Id { get; set; }
public DateTime? CreatedAt { get; set; }
/// <summary>
/// 权限
/// </summary>
public string GroupId { get; set; }
}
}

+ 20
- 0
BPA.KitChen.GroupMealOrder.Core/Enum/EatTypeEnum.cs View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMealOrder.Core.Enum
{
public enum EatTypeEnum
{
/// <summary>
/// 带走
/// </summary>
Take=1,
/// <summary>
/// 堂食
/// </summary>
Store
}
}

+ 28
- 0
BPA.KitChen.GroupMealOrder.Core/Enum/OrderTypeEnum.cs View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMealOrder.Core.Enum
{
public enum OrderTypeEnum
{
/// <summary>
/// 正常
/// </summary>
Normal,
/// <summary>
/// 立即吃面2
/// </summary>
RightNow,
/// <summary>
/// 盲盒
/// </summary>
Box,
/// <summary>
/// 其他
/// </summary>
Other
}
}

+ 32
- 0
BPA.KitChen.GroupMealOrder.Core/Enum/PayModelEnum.cs View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMealOrder.Core.Enum
{
public enum PayModelEnum
{
/// <summary>
/// 微信
/// </summary>
WeiXin,
/// <summary>
/// 支付宝
/// </summary>
AliPay,
/// <summary>
/// 钱包
/// </summary>
Wallet,
/// <summary>
/// 银联
/// </summary>
UnionPay,
/// <summary>
/// 其他
/// </summary>
Other,
}
}

Loading…
Cancel
Save