This commit is contained in:
邹宗楠
2022-04-08 09:15:03 +08:00
parent c0cd8aa426
commit 16697d37d5

View File

@@ -179,7 +179,7 @@ func (c *BaseScheduler) CreateWaybill(platformVendorID int, order *model.GoodsOr
if err != nil || len(storeList) != 1 { if err != nil || len(storeList) != 1 {
return nil, fmt.Errorf("门店id:[%d],所属品牌不唯一,或其他查询错误", order.JxStoreID) return nil, fmt.Errorf("门店id:[%d],所属品牌不唯一,或其他查询错误", order.JxStoreID)
} }
result, err := dao.GetBrandBalance(dao.GetDB(), storeList[0].BrandID) // 品牌余额 result, err := partner.CurStoreAcctManager.GetBrandBalance(storeList[0].BrandID) // 品牌余额
if err != nil { if err != nil {
return nil, err return nil, err
} }
@@ -195,6 +195,7 @@ func (c *BaseScheduler) CreateWaybill(platformVendorID int, order *model.GoodsOr
balance = result balance = result
} }
} }
fmt.Println("1111111111111111111111",balance)
//balance, _ = partner.CurStoreAcctManager.GetBrandBalance(storeDetail.BrandID) //balance, _ = partner.CurStoreAcctManager.GetBrandBalance(storeDetail.BrandID)
handlerInfo := partner.GetDeliveryPlatformFromVendorID(platformVendorID) handlerInfo := partner.GetDeliveryPlatformFromVendorID(platformVendorID)
if handlerInfo != nil && handlerInfo.Use4CreateWaybill { if handlerInfo != nil && handlerInfo.Use4CreateWaybill {