aa
This commit is contained in:
@@ -4134,6 +4134,7 @@ func GetStoreAcctBalance(ctx *jxcontext.Context, storeID int) (storeAcct *model.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
fmt.Println("11", totalIncome, totalExpend)
|
||||
return &model.StoreAcct{
|
||||
StoreID: storeID,
|
||||
AccountBalance: totalIncome - totalExpend,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
@@ -1070,6 +1071,8 @@ func GetStoreAcctIncomeTotal(db *DaoDB, storeID int, incomeTypes []int, vendorOr
|
||||
sql += " AND created_at <= ?"
|
||||
sqlParams = append(sqlParams, toTime)
|
||||
}
|
||||
fmt.Println(sql)
|
||||
fmt.Println(sqlParams)
|
||||
if err = GetRow(db, &income, sql, sqlParams); err == nil && income != nil {
|
||||
return income.IncomePrice, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user