mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
查询正在使用中的计费模板方法, 添加过滤条件, 状态为1启用状态
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user