diff --git a/business/jxcallback/scheduler/basesch/basesch.go b/business/jxcallback/scheduler/basesch/basesch.go index 2e604e76a..171152e9e 100644 --- a/business/jxcallback/scheduler/basesch/basesch.go +++ b/business/jxcallback/scheduler/basesch/basesch.go @@ -179,7 +179,7 @@ func (c *BaseScheduler) CreateWaybill(platformVendorID int, order *model.GoodsOr if err != nil || len(storeList) != 1 { 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 { return nil, err } @@ -195,6 +195,7 @@ func (c *BaseScheduler) CreateWaybill(platformVendorID int, order *model.GoodsOr balance = result } } + fmt.Println("1111111111111111111111",balance) //balance, _ = partner.CurStoreAcctManager.GetBrandBalance(storeDetail.BrandID) handlerInfo := partner.GetDeliveryPlatformFromVendorID(platformVendorID) if handlerInfo != nil && handlerInfo.Use4CreateWaybill {