合并分支 'dev' 到 'test'
fix:修复小程序订单销售日期 查看合并请求 !26
正在显示
4 个修改的文件
包含
24 行增加
和
18 行删除
@@ -52,9 +52,9 @@ spec: | @@ -52,9 +52,9 @@ spec: | ||
52 | ports: | 52 | ports: |
53 | - containerPort: 8082 | 53 | - containerPort: 8082 |
54 | - containerPort: 443 | 54 | - containerPort: 443 |
55 | - volumeMounts: | ||
56 | - - mountPath: /opt/logs | ||
57 | - name: accesslogs | 55 | +# volumeMounts: |
56 | +# - mountPath: /opt/logs | ||
57 | +# name: accesslogs | ||
58 | env: | 58 | env: |
59 | - name: HTTP_PORT | 59 | - name: HTTP_PORT |
60 | value: "8082" | 60 | value: "8082" |
@@ -94,6 +94,6 @@ spec: | @@ -94,6 +94,6 @@ spec: | ||
94 | value: "[partnermg_dev]" | 94 | value: "[partnermg_dev]" |
95 | - name: APP_NAME | 95 | - name: APP_NAME |
96 | value: "" | 96 | value: "" |
97 | - volumes: | ||
98 | - - name: accesslogs | ||
99 | - emptyDir: {} | 97 | +# volumes: |
98 | +# - name: accesslogs | ||
99 | +# emptyDir: {} |
@@ -49,9 +49,9 @@ spec: | @@ -49,9 +49,9 @@ spec: | ||
49 | ports: | 49 | ports: |
50 | - containerPort: 8082 | 50 | - containerPort: 8082 |
51 | - containerPort: 443 | 51 | - containerPort: 443 |
52 | - volumeMounts: | ||
53 | - - mountPath: /opt/logs | ||
54 | - name: accesslogs | 52 | +# volumeMounts: |
53 | +# - mountPath: /opt/logs | ||
54 | +# name: accesslogs | ||
55 | env: | 55 | env: |
56 | - name: HTTP_PORT | 56 | - name: HTTP_PORT |
57 | value: "8082" | 57 | value: "8082" |
@@ -91,6 +91,6 @@ spec: | @@ -91,6 +91,6 @@ spec: | ||
91 | value: "[partnermg_test]" | 91 | value: "[partnermg_test]" |
92 | - name: APP_NAME | 92 | - name: APP_NAME |
93 | value: "partnermg" | 93 | value: "partnermg" |
94 | - volumes: | ||
95 | - - name: accesslogs | ||
96 | - emptyDir: {} | 94 | +# volumes: |
95 | +# - name: accesslogs | ||
96 | +# emptyDir: {} |
@@ -265,6 +265,8 @@ func (s SyncOrderService) copyOrderBestshopToOrderBase(orderBestshop *domain.Ord | @@ -265,6 +265,8 @@ func (s SyncOrderService) copyOrderBestshopToOrderBase(orderBestshop *domain.Ord | ||
265 | // 默认设定为事业合伙人订单 | 265 | // 默认设定为事业合伙人订单 |
266 | orderbase.PartnerCategory = domain.PartnerCategory{Id: 1, Name: "事业合伙人"} | 266 | orderbase.PartnerCategory = domain.PartnerCategory{Id: 1, Name: "事业合伙人"} |
267 | orderbase.Compute() | 267 | orderbase.Compute() |
268 | + // 销售日期 | ||
269 | + orderbase.SaleDate = orderBestshop.CreateTime | ||
268 | err = orderBaseRepository.Save(&orderbase) | 270 | err = orderBaseRepository.Save(&orderbase) |
269 | if err != nil { | 271 | if err != nil { |
270 | e := fmt.Sprintf("添加order_base数据失败%s", err) | 272 | e := fmt.Sprintf("添加order_base数据失败%s", err) |
@@ -21,7 +21,7 @@ type OrderBestShop struct { | @@ -21,7 +21,7 @@ type OrderBestShop struct { | ||
21 | BuyerAddress string `json:"buyerAddress"` | 21 | BuyerAddress string `json:"buyerAddress"` |
22 | //买家备注 | 22 | //买家备注 |
23 | BuyerRemark string `json:"buyerRemark"` | 23 | BuyerRemark string `json:"buyerRemark"` |
24 | - // | 24 | + //客户id |
25 | BuyerId int64 `json:"buyerId"` | 25 | BuyerId int64 `json:"buyerId"` |
26 | //商品总数 | 26 | //商品总数 |
27 | OrderCount int `json:"orderCount"` | 27 | OrderCount int `json:"orderCount"` |
@@ -30,12 +30,16 @@ type OrderBestShop struct { | @@ -30,12 +30,16 @@ type OrderBestShop struct { | ||
30 | //发货时间 | 30 | //发货时间 |
31 | DeliveryTime string `json:"deliveryTime"` | 31 | DeliveryTime string `json:"deliveryTime"` |
32 | //创建时间 | 32 | //创建时间 |
33 | - CreateTime time.Time `json:"createTime"` | ||
34 | - PartnerId int64 `json:"partnerId"` | ||
35 | - Goods []OrderGoodBestShop `json:"goods"` | 33 | + CreateTime time.Time `json:"createTime"` |
34 | + //合伙人id | ||
35 | + PartnerId int64 `json:"partnerId"` | ||
36 | + //订单产品 | ||
37 | + Goods []OrderGoodBestShop `json:"goods"` | ||
36 | //是否将数据同步到 order_base ,order_good | 38 | //是否将数据同步到 order_base ,order_good |
37 | - IsCopy bool `json:"isCopy"` | ||
38 | - CompanyId int64 `json:"companyId"` | 39 | + IsCopy bool `json:"isCopy"` |
40 | + //公司id | ||
41 | + CompanyId int64 `json:"companyId"` | ||
42 | + //订单区域 | ||
39 | OrderArea string `json:"orderArea"` | 43 | OrderArea string `json:"orderArea"` |
40 | } | 44 | } |
41 | 45 |
-
请 注册 或 登录 后发表评论