From 986df3026b1481832c0618f35654c101b6685bdc Mon Sep 17 00:00:00 2001 From: xjm Date: Fri, 22 Dec 2023 10:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BA=BF=E4=B8=8A=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E6=8A=98=E6=89=A3=E9=85=8D=E7=BD=AE=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=88=B0=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerdiscount/CustomerDiscountService.java | 10 ++++++++++ .../customerdiscount/CustomerDiscountController.java | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/customerdiscount/CustomerDiscountService.java b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/customerdiscount/CustomerDiscountService.java index ae549da..d542dcf 100644 --- a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/customerdiscount/CustomerDiscountService.java +++ b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/customer/customerdiscount/CustomerDiscountService.java @@ -3,7 +3,9 @@ package com.cowr.ssjygl.customer.customerdiscount; import com.cowr.common.Const; import com.cowr.common.base.BaseService; import com.cowr.common.view.PageParam; +import com.cowr.common.view.Result; import com.cowr.model.CustomerDiscount; +import com.cowr.model.Sysuser; import com.jfinal.kit.StrKit; import com.jfinal.log.Log; import com.jfinal.plugin.activerecord.Db; @@ -23,6 +25,14 @@ public class CustomerDiscountService extends BaseService { private static final Log log = Log.getLog(CustomerDiscountService.class); public static final CustomerDiscountService me = new CustomerDiscountService(); + public Result save(CustomerDiscount model, Sysuser sysuser) { + return super.save(model, sysuser); + } + + public Result update(CustomerDiscount model, Sysuser sysuser) { + return super.update(model, sysuser); + } + public Page findLocal(PageParam pp, String customerId, String customerName, String stm, String etm) { return find(pp, customerId, customerName, stm, etm); } diff --git a/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/customer/customerdiscount/CustomerDiscountController.java b/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/customer/customerdiscount/CustomerDiscountController.java index b860729..ec3f5b4 100644 --- a/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/customer/customerdiscount/CustomerDiscountController.java +++ b/ssjygl-xsx-service/src/main/java/com/cowr/service/ssjygl/customer/customerdiscount/CustomerDiscountController.java @@ -62,7 +62,7 @@ public class CustomerDiscountController extends Controller { renderJson(Result.failed("当前用户已有折扣正在使用中")); return; } - renderJson(CustomerDiscountService.me.save(model)); + renderJson(CustomerDiscountService.me.save(model,tokenuser)); } /** @@ -88,7 +88,7 @@ public class CustomerDiscountController extends Controller { model.setDel("0"); model.setUpdateUser(tokenuser.getId()); - renderJson(CustomerDiscountService.me.update(model)); + renderJson(CustomerDiscountService.me.update(model,tokenuser)); } /**