aa
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tibiotapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-print/dao"
|
||||
@@ -26,7 +27,8 @@ func SimFlowDaySettle() (err error) {
|
||||
return
|
||||
}
|
||||
//找出所有状态不为 超流量的打印机(iccid卡)
|
||||
printers, _ := dao.GetPrinters(db, 0, "", 0, model.PrinterStatusOverFlow)
|
||||
printers, _ := dao.GetPrinters(db, 0, "", 0, 0, 0)
|
||||
fmt.Println("1111111111111111", utils.Format4Output(printers, true))
|
||||
for _, v := range printers {
|
||||
//查询前一日使用的流量数
|
||||
if v.IccID != "" {
|
||||
@@ -83,7 +85,7 @@ func SimFlowMonthSettle() {
|
||||
return
|
||||
}
|
||||
//找出所有有iccid 卡的
|
||||
printers, _ := dao.GetPrinters(db, 0, "", 0, model.PrinterStatusOverFlow)
|
||||
printers, _ := dao.GetPrinters(db, 0, "", 0, 0, 0)
|
||||
for _, v := range printers {
|
||||
if v.IccID != "" {
|
||||
flowIncome := &model.SimFlowIncome{
|
||||
|
||||
Reference in New Issue
Block a user