From 00461b00804843c1f63e9589160fb12e8a69e2a1 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 25 Aug 2023 19:01:47 +0800 Subject: [PATCH] update --- app/db/db_central_kitchen_for_school_package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/db/db_central_kitchen_for_school_package.go b/app/db/db_central_kitchen_for_school_package.go index c4f1dc9..9ceff88 100644 --- a/app/db/db_central_kitchen_for_school_package.go +++ b/app/db/db_central_kitchen_for_school_package.go @@ -30,7 +30,7 @@ func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCen func (centralKitchenForSchoolPackageDb *CentralKitchenForSchoolPackageDb) GetCentralKitchenForSchoolPackageByMonth(year, month string) (m *model.CentralKitchenForSchoolPackage, err error) { m = new(model.CentralKitchenForSchoolPackage) - has, err := centralKitchenForSchoolPackageDb.Db.Where("year =? and month =?", year, month).Get(m) + has, err := centralKitchenForSchoolPackageDb.Db.Where("year =? and month =? and is_delete = 0", year, month).Get(m) if err != nil { return nil, logx.Error(err) }