1
This commit is contained in:
@@ -244,7 +244,7 @@ func checkPrinterInfo(printNo, name, sound, sim string, volume int) (err error)
|
||||
return err
|
||||
}
|
||||
|
||||
func DelPrinter(appID int, printNos []string) (err error) {
|
||||
func DelPrinter(appID int, printNos []string, storeId string) (err error) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
errs []error
|
||||
@@ -254,9 +254,7 @@ func DelPrinter(appID int, printNos []string) (err error) {
|
||||
errs = append(errs, fmt.Errorf("该应用下未找到该打印机!print_no : %v ", v))
|
||||
continue
|
||||
} else {
|
||||
printers[0].DeletedAt = time.Now()
|
||||
|
||||
if _, err = dao.UpdateEntity(db, printers[0], "DeletedAt"); err != nil {
|
||||
if err := dao.DeleteStoreList(printers[0].PrintNo, storeId); err != nil {
|
||||
errs = append(errs, err)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user