aa
This commit is contained in:
@@ -141,7 +141,7 @@ type Printer struct {
|
|||||||
IccID string `json:"iccid" db:"icc_id"` //sim卡号
|
IccID string `json:"iccid" db:"icc_id"` //sim卡号
|
||||||
Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
Sound string `json:"sound"` //声音类型 sounda ,b,c,d,e,f,g
|
||||||
Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10
|
Volume int `json:"volume"` //音量,1-5 ,对应打印机2-10
|
||||||
FlowFlag int `json:"flowFlag"` //是否超流量了,1表示超了
|
FlowFlag int `json:"flowFlag" db:"flow_flag"` //是否超流量了,1表示超了
|
||||||
}
|
}
|
||||||
|
|
||||||
type PrintMsg struct {
|
type PrintMsg struct {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package services
|
package services
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/tibiotapi"
|
"git.rosy.net.cn/baseapi/platformapi/tibiotapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-print/dao"
|
"git.rosy.net.cn/jx-print/dao"
|
||||||
@@ -28,7 +27,6 @@ func SimFlowDaySettle() (err error) {
|
|||||||
}
|
}
|
||||||
//找出所有状态不为 超流量的打印机(iccid卡)
|
//找出所有状态不为 超流量的打印机(iccid卡)
|
||||||
printers, _ := dao.GetPrinters(db, 0, "", 0, 0, 0)
|
printers, _ := dao.GetPrinters(db, 0, "", 0, 0, 0)
|
||||||
fmt.Println("1111111111111111", utils.Format4Output(printers, true))
|
|
||||||
for _, v := range printers {
|
for _, v := range printers {
|
||||||
//查询前一日使用的流量数
|
//查询前一日使用的流量数
|
||||||
if v.IccID != "" {
|
if v.IccID != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user