查询正在使用中的计费模板方法, 添加过滤条件, 状态为1启用状态

This commit is contained in:
Guoqs
2025-04-25 18:04:16 +08:00
parent 50a5f46671
commit f49dbae30e

View File

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