This commit is contained in:
苏尹岚
2021-02-18 11:55:47 +08:00
parent 0ca51ca7fc
commit 66194c55f9
5 changed files with 54 additions and 33 deletions

View File

@@ -97,6 +97,18 @@ func (p *PurchaseHandler) CreateStore(db *dao.DaoDB, storeID int, userName strin
}
func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
poiSettleSaveParam := &mtwmapi.PoiSettleSaveParam{
Type: 0, //创建
ApplyInfos: []*mtwmapi.ApplyInfo{
&mtwmapi.ApplyInfo{
MultiPoiBasicInfo: &mtwmapi.MultiPoiBasicInfo{
Name: params["vendorStoreName"].(string),
},
},
},
}
mtapi := getAPI(storeDetail.VendorOrgCode, storeDetail.ID, "")
mtapi.PoiSettleSave(poiSettleSaveParam)
return vendorStoreID, err
}