正在显示
2 个修改的文件
包含
4 行增加
和
0 行删除
@@ -43,6 +43,7 @@ func (respository OrderBestshopRepository) transformPgModelToDomainModel(orderMo | @@ -43,6 +43,7 @@ func (respository OrderBestshopRepository) transformPgModelToDomainModel(orderMo | ||
43 | PartnerId: orderModel.PartnerId, | 43 | PartnerId: orderModel.PartnerId, |
44 | IsCopy: orderModel.IsCopy, | 44 | IsCopy: orderModel.IsCopy, |
45 | CompanyId: orderModel.CompanyId, | 45 | CompanyId: orderModel.CompanyId, |
46 | + OrderArea: orderModel.OrderArea, | ||
46 | }, nil | 47 | }, nil |
47 | } | 48 | } |
48 | 49 | ||
@@ -65,6 +66,7 @@ func (respository OrderBestshopRepository) Add(order *domain.OrderBestShop) erro | @@ -65,6 +66,7 @@ func (respository OrderBestshopRepository) Add(order *domain.OrderBestShop) erro | ||
65 | PartnerId: order.PartnerId, | 66 | PartnerId: order.PartnerId, |
66 | IsCopy: order.IsCopy, | 67 | IsCopy: order.IsCopy, |
67 | CompanyId: order.CompanyId, | 68 | CompanyId: order.CompanyId, |
69 | + OrderArea: order.OrderArea, | ||
68 | } | 70 | } |
69 | _, err := tx.Model(&m).Insert() | 71 | _, err := tx.Model(&m).Insert() |
70 | order.Id = m.Id | 72 | order.Id = m.Id |
@@ -91,6 +93,7 @@ func (respository OrderBestshopRepository) Edit(order *domain.OrderBestShop) err | @@ -91,6 +93,7 @@ func (respository OrderBestshopRepository) Edit(order *domain.OrderBestShop) err | ||
91 | PartnerId: order.PartnerId, | 93 | PartnerId: order.PartnerId, |
92 | IsCopy: order.IsCopy, | 94 | IsCopy: order.IsCopy, |
93 | CompanyId: order.CompanyId, | 95 | CompanyId: order.CompanyId, |
96 | + OrderArea: order.OrderArea, | ||
94 | } | 97 | } |
95 | _, err := tx.Model(&m).Where("id=?", order.Id).Update() | 98 | _, err := tx.Model(&m).Where("id=?", order.Id).Update() |
96 | order.Id = m.Id | 99 | order.Id = m.Id |
-
请 注册 或 登录 后发表评论