正在显示
4 个修改的文件
包含
11 行增加
和
2 行删除
@@ -11,7 +11,12 @@ const ( | @@ -11,7 +11,12 @@ const ( | ||
11 | OrderIntention //意向订单 | 11 | OrderIntention //意向订单 |
12 | ) | 12 | ) |
13 | 13 | ||
14 | -//买家 | 14 | +const ( |
15 | + OrderDisableNot = iota //订单未关闭 | ||
16 | + OrderDisableYes //订单已关闭 | ||
17 | +) | ||
18 | + | ||
19 | +//Buyer 买家 | ||
15 | type Buyer struct { | 20 | type Buyer struct { |
16 | //买家姓名 | 21 | //买家姓名 |
17 | BuyerName string `json:"buyerName"` | 22 | BuyerName string `json:"buyerName"` |
@@ -50,6 +55,8 @@ type OrderBase struct { | @@ -50,6 +55,8 @@ type OrderBase struct { | ||
50 | Goods []OrderGood `json:"goods"` | 55 | Goods []OrderGood `json:"goods"` |
51 | //核算订单相关数据 | 56 | //核算订单相关数据 |
52 | OrderCompute OrderCompute `json:"orderCompute"` | 57 | OrderCompute OrderCompute `json:"orderCompute"` |
58 | + //是否关闭订单 | ||
59 | + IsDisable int `json:"isDisable"` | ||
53 | } | 60 | } |
54 | 61 | ||
55 | type OrderCompute struct { | 62 | type OrderCompute struct { |
@@ -58,7 +58,7 @@ type OrderBase struct { | @@ -58,7 +58,7 @@ type OrderBase struct { | ||
58 | PartnerBonusExpense float64 | 58 | PartnerBonusExpense float64 |
59 | //上一次查看时间 已读情况 | 59 | //上一次查看时间 已读情况 |
60 | LastViewTime time.Time | 60 | LastViewTime time.Time |
61 | - | 61 | + //是否关闭订单 |
62 | IsDisable int | 62 | IsDisable int |
63 | } | 63 | } |
64 | 64 |
@@ -29,6 +29,7 @@ func (reponsitory OrderBaseRepository) transformPgModelToDomainModel(orderModel | @@ -29,6 +29,7 @@ func (reponsitory OrderBaseRepository) transformPgModelToDomainModel(orderModel | ||
29 | DeliveryCode: orderModel.DeliveryCode, Buyer: orderModel.Buyer, RegionInfo: orderModel.RegionInfo, | 29 | DeliveryCode: orderModel.DeliveryCode, Buyer: orderModel.Buyer, RegionInfo: orderModel.RegionInfo, |
30 | PartnerId: orderModel.PartnerId, SalesmanBonusPercent: orderModel.SalesmanBonusPercent, | 30 | PartnerId: orderModel.PartnerId, SalesmanBonusPercent: orderModel.SalesmanBonusPercent, |
31 | CreateTime: orderModel.CreateTime, DeliveryTime: orderModel.DeliveryTime, UpdateTime: orderModel.UpdateTime, | 31 | CreateTime: orderModel.CreateTime, DeliveryTime: orderModel.DeliveryTime, UpdateTime: orderModel.UpdateTime, |
32 | + IsDisable: orderModel.IsDisable, | ||
32 | OrderCompute: domain.OrderCompute{ | 33 | OrderCompute: domain.OrderCompute{ |
33 | PlanPartnerBonus: orderModel.PlanPartnerBonus, UsePartnerBonus: orderModel.UsePartnerBonus, | 34 | PlanPartnerBonus: orderModel.PlanPartnerBonus, UsePartnerBonus: orderModel.UsePartnerBonus, |
34 | PartnerBonusHas: orderModel.PartnerBonusHas, PartnerBonusNot: orderModel.PartnerBonusNot, | 35 | PartnerBonusHas: orderModel.PartnerBonusHas, PartnerBonusNot: orderModel.PartnerBonusNot, |
@@ -412,6 +412,7 @@ func (c *OrderInfoController) PageListOrderReal() { | @@ -412,6 +412,7 @@ func (c *OrderInfoController) PageListOrderReal() { | ||
412 | "orderDist": orderinfo.RegionInfo.RegionName, | 412 | "orderDist": orderinfo.RegionInfo.RegionName, |
413 | "quantityControl": "", | 413 | "quantityControl": "", |
414 | "priceControl": "", | 414 | "priceControl": "", |
415 | + "status": orderinfo.IsDisable, | ||
415 | } | 416 | } |
416 | if orderinfo.OrderCompute.UseOrderCount >= 0 { | 417 | if orderinfo.OrderCompute.UseOrderCount >= 0 { |
417 | m["quantityControl"] = fmt.Sprint(orderinfo.OrderCompute.UseOrderCount) | 418 | m["quantityControl"] = fmt.Sprint(orderinfo.OrderCompute.UseOrderCount) |
-
请 注册 或 登录 后发表评论