From afa87804d3a318dec3b881ba6eaacc37b409c6b8 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 23 Feb 2024 11:23:34 +0800 Subject: [PATCH] update --- app/admin/svc/order/svc_central_kitchen_for_school_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/svc/order/svc_central_kitchen_for_school_order.go b/app/admin/svc/order/svc_central_kitchen_for_school_order.go index de93933..700cc02 100644 --- a/app/admin/svc/order/svc_central_kitchen_for_school_order.go +++ b/app/admin/svc/order/svc_central_kitchen_for_school_order.go @@ -344,7 +344,7 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch if err6 != nil { fmt.Println("dealReturnOrdMap_ERR::::", err6.Error()) //TODO::1、将 central_kitchen_for_school_user_refund_day 审核状态修改为`退款中` - sql := fmt.Sprintf("update central_kitchen_for_school_user_refund_day set state =5, memo = %s where out_request_no = '%s'", v.OutRequestNo, err6.Error()) + sql := fmt.Sprintf("update central_kitchen_for_school_user_refund_day set state =5, memo = '%s' where out_request_no = '%s'", err6.Error(), v.OutRequestNo) db.ExecuteOriginalSql(db.Db, sql) utils.FilePutContents("dealReturnOrdMap_ERR", utils.SerializeStr(map[string]interface{}{ "sql": sql, @@ -380,7 +380,7 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch if err6 != nil { fmt.Println("dealReturnOrdMapForWx_ERR::::", err6.Error()) //TODO::1、将审核状态修改为`退款中` - sql := fmt.Sprintf("update central_kitchen_for_school_user_refund_day set state = 5, memo = %s where out_request_no = '%s'", v.OutRequestNo, err6.Error()) + sql := fmt.Sprintf("update central_kitchen_for_school_user_refund_day set state =5, memo = '%s' where out_request_no = '%s'", err6.Error(), v.OutRequestNo) db.ExecuteOriginalSql(db.Db, sql) utils.FilePutContents("dealReturnOrdMapForWx_ERR", utils.SerializeStr(map[string]interface{}{ "sql": sql,