|
|
@@ -181,7 +181,7 @@ public class PricePolicyManagementServiceImpl implements PricePolicyManagementSe
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void updatePricePolicy(UpdatePricePolicyDTO dto) {
|
|
|
+ public boolean updatePricePolicy(UpdatePricePolicyDTO dto) {
|
|
|
// 查询该充电站的所有充电桩接口
|
|
|
List<ThirdPartyConnectorInfo> connectors = connectorInfoMapper.selectList(
|
|
|
Wrappers.<ThirdPartyConnectorInfo>lambdaQuery()
|
|
|
@@ -190,7 +190,7 @@ public class PricePolicyManagementServiceImpl implements PricePolicyManagementSe
|
|
|
|
|
|
if (CollectionUtils.isEmpty(connectors)) {
|
|
|
log.warn("未找到充电站的充电桩接口信息, stationId: {}", dto.getStationId());
|
|
|
- return;
|
|
|
+ return Boolean.FALSE;
|
|
|
}
|
|
|
|
|
|
BigDecimal operationServiceFee = dto.getHasContractServiceFee() && dto.getContractServiceFee() != null
|
|
|
@@ -203,6 +203,7 @@ public class PricePolicyManagementServiceImpl implements PricePolicyManagementSe
|
|
|
}
|
|
|
|
|
|
log.info("更新充电站价格策略成功, stationId: {}, operationServiceFee: {}", dto.getStationId(), operationServiceFee);
|
|
|
+ return Boolean.TRUE;
|
|
|
}
|
|
|
|
|
|
/**
|