This commit is contained in:
gazebo
2019-07-23 09:32:32 +08:00
parent 3d4d539ab1
commit 2b38cbf750
3 changed files with 7 additions and 7 deletions

View File

@@ -34,11 +34,11 @@ type StoreDetail struct {
type StoreDetail2 struct {
model.Store
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
CourierStoreName string
VendorStoreID string `orm:"column(vendor_store_id)"`
DistrictName string
CityName string
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
CourierStoreName string `json:"courierStoreName"`
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
DistrictName string `json:"districtName"`
CityName string `json:"cityName"`
}
func (s *StoreDetail) GetPricePerentage(price int) (pricePercentage int) {

View File

@@ -131,7 +131,7 @@ func StoreDetail2ShopInfo(storeDetail *dao.StoreDetail2) (shopInfo *dadaapi.Shop
}
shopInfo = &dadaapi.ShopInfo{
OriginShopID: utils.Int2Str(storeDetail.ID),
StationName: storeDetail.Name,
StationName: storeDetail.CourierStoreName,
CityName: cityName,
AreaName: districtName,
StationAddress: storeDetail.Address,

View File

@@ -130,7 +130,7 @@ func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.S
}
shopInfo := &mtpsapi.ShopInfo{
ShopID: utils.Int2Str(storeDetail.ID),
ShopName: storeDetail.Name,
ShopName: storeDetail.CourierStoreName,
Category: mtpsapi.ShopCategoryFruit,
SecondCategory: mtpsapi.ShopCategoryFruitFruit,
ContactName: storeDetail.PayeeName,