From b3e06b860b747c7f20853cbc5c65a096f1635404 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sun, 1 Oct 2023 22:47:10 +0800 Subject: [PATCH] update --- .../svc/enterprise_manage/svc_central_kitchen_for_school.go | 6 +++--- app/router/customer_router.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go index b831949..d130f7a 100644 --- a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go +++ b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go @@ -639,13 +639,13 @@ func CentralKitchenForSchoolOrdList(req md.CentralKitchenForSchoolOrdListReq) (r sess.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) } if req.Kind != 0 { - sess.And("central_kitchen_for_school_package_ord.kind = ", req.Kind) + sess.And("central_kitchen_for_school_package_ord.kind = ?", req.Kind) } if req.Sate != 0 { - sess.And("central_kitchen_for_school_package_ord.state = ", req.Sate) + sess.And("central_kitchen_for_school_package_ord.state = ?", req.Sate) } if req.OrdSate != 0 { - sess.And("central_kitchen_for_school_package_ord.ord_state = ", req.OrdSate) + sess.And("central_kitchen_for_school_package_ord.ord_state = ?", req.OrdSate) } if req.OutTradeNo != "" { sess.And("central_kitchen_for_school_package_ord.out_trade_no like ?", "%"+req.OutTradeNo+"%") diff --git a/app/router/customer_router.go b/app/router/customer_router.go index 1ac7591..fe068c9 100644 --- a/app/router/customer_router.go +++ b/app/router/customer_router.go @@ -26,7 +26,7 @@ func CustomerInit(r *gin.RouterGroup) { r.GET("/wxGetAccessToken", hdl.WxGetAccessToken) r.POST("/wxDecryptUserInfo", hdl.WxDecryptUserInfo) r.POST("/wxDecryptMobile", hdl.WxDecryptMobile) - r.POST("/wxPay", hdl.WxDecryptMobile) + r.POST("/wxPay", hdl.WxPay) r.POST("/register", hdl.Register) r.POST("/aesDecrypt", hdl.AesDecrypt)