From 070946a4546836930c2ddd3329b85a4c9cd1e1e5 Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Tue, 25 Mar 2025 16:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=BC=98=E6=83=A0=E8=AE=A1?= =?UTF-8?q?=E8=B4=B9=E6=A8=A1=E6=9D=BF=E4=B8=8D=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jsowell/pile/service/PileRemoteService.java | 8 ++++++++ 1 file changed, 8 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 7a48c79a5..16b035a1a 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 @@ -285,6 +285,14 @@ public class PileRemoteService { log.warn("获取计费模板信息, 通过模板id:{}查询计费模板为null", dto.getTemplateId()); return false; } + // 会员优惠计费模板不发布 + if (Constants.ONE.equals(billingTemplateVO.getMemberFlag())) { + return false; + } + // 电单车计费模板不发布 + if (Constants.TWO.equals(billingTemplateVO.getDeviceType())) { + return false; + } // 更新计费模板的发布时间 PileBillingTemplate pileBillingTemplate = new PileBillingTemplate(); pileBillingTemplate.setId(Long.valueOf(billingTemplateVO.getTemplateId()));