This commit is contained in:
suyl
2021-07-21 10:05:10 +08:00
parent 5b59315547
commit 35a4c441ff
2 changed files with 1 additions and 3 deletions

View File

@@ -141,7 +141,7 @@ type Printer struct {
IccID string `json:"iccid" db:"icc_id"` //sim卡号
Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g
Volume int `json:"volume"` //音量1-5 对应打印机2-10
FlowFlag int `json:"flowFlag"` //是否超流量了1表示超了
FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了1表示超了
}
type PrintMsg struct {

View File

@@ -1,7 +1,6 @@
package services
import (
"fmt"
"git.rosy.net.cn/baseapi/platformapi/tibiotapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-print/dao"
@@ -28,7 +27,6 @@ func SimFlowDaySettle() (err error) {
}
//找出所有状态不为 超流量的打印机iccid卡
printers, _ := dao.GetPrinters(db, 0, "", 0, 0, 0)
fmt.Println("1111111111111111", utils.Format4Output(printers, true))
for _, v := range printers {
//查询前一日使用的流量数
if v.IccID != "" {