From 9212f14ffdcd0a3b4e9a24dd61924c207eeb0d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 16 Dec 2022 11:48:19 +0800 Subject: [PATCH] 1 --- business/dao/print_bind_store.go | 2 ++ business/jxstore/cms/print.go | 1 + 2 files changed, 3 insertions(+) diff --git a/business/dao/print_bind_store.go b/business/dao/print_bind_store.go index ae638f7bc..07fac97cb 100644 --- a/business/dao/print_bind_store.go +++ b/business/dao/print_bind_store.go @@ -33,3 +33,5 @@ func BindStoreList(req *model.AddPrinterParam, userId string) error { } return CreateEntity(GetDB(), param) } + +// 删除绑定门店 diff --git a/business/jxstore/cms/print.go b/business/jxstore/cms/print.go index f1cf98557..7eaa7ddff 100644 --- a/business/jxstore/cms/print.go +++ b/business/jxstore/cms/print.go @@ -255,6 +255,7 @@ func DelPrinter(appID int, printNos []string) (err error) { continue } else { printers[0].DeletedAt = time.Now() + if _, err = dao.UpdateEntity(db, printers[0], "DeletedAt"); err != nil { errs = append(errs, err) continue