From f49dbae30e60ea250a8424dae216b3eaa6ef8c1e Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Fri, 25 Apr 2025 18:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=AD=A3=E5=9C=A8=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=B8=AD=E7=9A=84=E8=AE=A1=E8=B4=B9=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=96=B9=E6=B3=95,=20=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6,=20=E7=8A=B6=E6=80=81=E4=B8=BA1=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jsowell/pile/service/PileRemoteService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/PileRemoteService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/PileRemoteService.java index 73e41ae2f..ca775d478 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/PileRemoteService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/PileRemoteService.java @@ -329,15 +329,20 @@ public class PileRemoteService { log.warn("获取计费模板信息, 通过模板id:{}查询计费模板为null", dto.getTemplateId()); return false; } + + // 判断是否下发计费模板 默认下发 boolean sendBillingTemplateToPile = true; + // 会员优惠计费模板不下发 if (Constants.ONE.equals(billingTemplateVO.getMemberFlag())) { sendBillingTemplateToPile = false; } + // 电单车计费模板不下发 if (Constants.TWO.equals(billingTemplateVO.getDeviceType())) { sendBillingTemplateToPile = false; } + // 更新计费模板的发布时间 PileBillingTemplate pileBillingTemplate = new PileBillingTemplate(); pileBillingTemplate.setId(Long.valueOf(billingTemplateVO.getTemplateId()));