1
This commit is contained in:
19
business/dao/print_activation.go
Normal file
19
business/dao/print_activation.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
)
|
||||
|
||||
func CheckHeard(printNo string) (bool, error) {
|
||||
var data *model.PrintActivation
|
||||
err := GetRow(GetDB(), &data, `SELECT * FROM printer_activation WHERE print_no = ?`, []interface{}{printNo}...)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
if data == nil {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
return true, nil
|
||||
}
|
||||
Reference in New Issue
Block a user