This commit is contained in:
suyl
2021-07-21 14:32:48 +08:00
parent 7aabe0b988
commit 90234c4112

View File

@@ -52,8 +52,10 @@ func SimFlowDaySettle() (err error) {
} else { } else {
if sumExpend, err := dao.GetSimFlowExpendSum(db, v.IccID, monthBegin, monthEnd); err == nil { if sumExpend, err := dao.GetSimFlowExpendSum(db, v.IccID, monthBegin, monthEnd); err == nil {
cardFlow := putils.Flow2KB(putils.SplitFlowAndUnit(getCardInfoResultMonth.CardFlow)) cardFlow := putils.Flow2KB(putils.SplitFlowAndUnit(getCardInfoResultMonth.CardFlow))
fmt.Println("11111111111111111111", cardFlow, sumExpend.Flow)
flowExpend.Flow, flowExpend.FlowUnit = putils.FlowKB2Other(cardFlow - sumExpend.Flow) flowExpend.Flow, flowExpend.FlowUnit = putils.FlowKB2Other(cardFlow - sumExpend.Flow)
if flowExpend.Flow < 0 {
err = fmt.Errorf("流量计算有问题!")
}
} }
} }
} }