支付
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
"git.rosy.net.cn/jx-print/dao"
|
||||
"git.rosy.net.cn/jx-print/globals"
|
||||
"git.rosy.net.cn/jx-print/model"
|
||||
putils "git.rosy.net.cn/jx-print/putils"
|
||||
"git.rosy.net.cn/jx-print/services/api"
|
||||
putils "git.rosy.net.cn/jx-print/utils"
|
||||
|
||||
"time"
|
||||
)
|
||||
@@ -68,7 +68,7 @@ func SimFlowDaySettle() (err error) {
|
||||
sumIncome, _ := dao.GetSimFlowIncomeSum(db, v.IccID, monthBegin, monthEnd)
|
||||
sumExpend, _ := dao.GetSimFlowExpendSum(db, v.IccID, monthBegin, monthEnd)
|
||||
if sumIncome != nil && sumExpend != nil {
|
||||
if sumExpend.Flow-sumIncome.Flow <= 0 {
|
||||
if sumIncome.Flow-sumExpend.Flow <= 0 {
|
||||
v.FlowFlag = 1
|
||||
err = dao.Update(db, v, "flow_flag")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user