From 78238c806e7de78b45bfad0f473ecfb9acb002e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 26 Dec 2019 18:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE=E8=AF=84=E8=A1=A5=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 72105729a..e233eb2c2 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -768,17 +768,17 @@ func GetOrdersSupplement(ctx *jxcontext.Context, storIDs, vendorIDs []int, vendo } func AddUpdateOrdersSupplement(ctx *jxcontext.Context, ordersSupplement *model.OrderSupplementFee) (num int, err error) { - var ( - db = dao.GetDB() - id = ordersSupplement.ID - ) - if id > 0 { - if ordersSupplement.Status == 1 { - return 0,fmt.Errorf("已结账的扣款信息不允许修改", a) - } - dao.UpdateEntity(db, ordersSupplement) - } else { + // var ( + // db = dao.GetDB() + // id = ordersSupplement.ID + // ) + // if id > 0 { + // if ordersSupplement.Status == 1 { + // return 0,fmt.Errorf("已结账的扣款信息不允许修改", a) + // } + // dao.UpdateEntity(db, ordersSupplement) + // } else { - } + // } return num, err }