This commit is contained in:
邹宗楠
2022-10-09 18:01:19 +08:00
parent a9f530cf0d
commit 9b5dfabb34

View File

@@ -15,14 +15,14 @@ import (
)
// /warehouse/create 创建单个区域仓
func (P *PurchaseHandler) CreateWarehouse(outWarehouseID string) (warehouseID int64, err error) {
func (P *PurchaseHandler) CreateWarehouse(outWarehouseID, appOrgCode string) (warehouseID int64, err error) {
tempName := "门店编码:" + outWarehouseID + "的区域仓"
req := &warehouse_create_request.WarehouseCreateParam{
OutWarehouseId: outWarehouseID,
Name: tempName,
Intro: "",
}
resp, err := getAPI("", 0, "").CreateWarehouse(req)
resp, err := getAPI(appOrgCode, 0, "").CreateWarehouse(req)
if err != nil {
return 0, err
}