| | |
| | | public AccountingStrategyDetailClient create(Throwable throwable) { |
| | | log.error("计费策略调用失败:{}", throwable.getMessage()); |
| | | return new AccountingStrategyDetailClient(){ |
| | | |
| | | @Override |
| | | public R<TAccountingStrategyDetail> getNowData(Integer accountingStrategyId) { |
| | | return R.fail("获取当前有效的计费策略明细失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<TAccountingStrategyDetail> getDetailBySiteId(Integer siteId) { |
| | |
| | | public R<Boolean> checkChargingStrategy(CheckChargingStrategyDTO dto) { |
| | | return R.fail("校验充电桩计费模版是否准确失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<TAccountingStrategyDetail>> getListByAccountingStrategyId(Integer id) { |
| | | throw new RuntimeException("根据计费策略主表id策略明细失败:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<TAccountingStrategyDetail>> getDetailListByCode(String code) { |