From f3093e452e7e78e2d14ac373cd402a9e6e6e60a4 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Tue, 31 Dec 2024 16:13:18 +0800 Subject: [PATCH] update --- app/customer/hdl/hdl_central_kitchen_for_school_package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/customer/hdl/hdl_central_kitchen_for_school_package.go b/app/customer/hdl/hdl_central_kitchen_for_school_package.go index ba245ef..4b8ed87 100644 --- a/app/customer/hdl/hdl_central_kitchen_for_school_package.go +++ b/app/customer/hdl/hdl_central_kitchen_for_school_package.go @@ -17,7 +17,7 @@ func CentralKitchenForSchoolPackage(c *gin.Context) { //1、查询出当前合适的package var m []model.CentralKitchenForSchoolPackage now := time.Now().Format("2006-01-02 15:04:05") - err := db.Db.Where("enterprise_id =?", enterpriseId).Where("end_date > ?", now).And("is_delete = 0").And("state = 1").Desc("end_date").Find(&m) + err := db.Db.Where("enterprise_id =?", enterpriseId).Where("end_date >= ?", now).And("is_delete = 0").And("state = 1").Desc("end_date").Find(&m) if err != nil { e.OutErr(c, e.ERR_DB_ORM, err.Error()) return