- up
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user