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()));