aa
This commit is contained in:
@@ -646,7 +646,9 @@ func (c *PurchaseHandler) GetShopIDsByPage() (vendorStoreIDs []string, err error
|
|||||||
func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
|
func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
|
||||||
param := make(map[string]interface{})
|
param := make(map[string]interface{})
|
||||||
param["shop_id"] = utils.Int2Str(storeID)
|
param["shop_id"] = utils.Int2Str(storeID)
|
||||||
param["supplier_id"] = params["supplierID"]
|
// param["supplier_id"] = params["supplierID"]
|
||||||
|
param["supplier_id"] = 0 //只能创建散店,不能直接创建连锁下门店,供应商ID传0,就是创建的没有绑定供应商的散店
|
||||||
|
|
||||||
//省市区
|
//省市区
|
||||||
placeCity, err := dao.GetPlaceByCode(db, storeDetail.CityCode)
|
placeCity, err := dao.GetPlaceByCode(db, storeDetail.CityCode)
|
||||||
param["city"] = placeCity.EbaiCode
|
param["city"] = placeCity.EbaiCode
|
||||||
|
|||||||
Reference in New Issue
Block a user