mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
会员优惠计费模板不发布
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user