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:
@@ -10,9 +10,11 @@ import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.pile.domain.OrderPileOccupy;
|
||||
import com.jsowell.pile.dto.GenerateOccupyOrderDTO;
|
||||
import com.jsowell.pile.service.IPileBillingTemplateService;
|
||||
import com.jsowell.pile.service.OrderPileOccupyService;
|
||||
import com.jsowell.pile.vo.uniapp.OccupyOrderDetailVO;
|
||||
import com.jsowell.pile.vo.uniapp.OrderPileOccupyVO;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -32,8 +34,12 @@ public class OccupyOrderController extends BaseController {
|
||||
@Autowired
|
||||
private OrderPileOccupyService orderPileOccupyService;
|
||||
|
||||
@Autowired
|
||||
private IPileBillingTemplateService pileBillingTemplateService;
|
||||
|
||||
/**
|
||||
* todo 查询站点占桩费率
|
||||
* 查询站点占桩费率
|
||||
* https://api.jsowellcloud.com/uniapp/occupyOrder/getStationOccupyFee/{stationId}
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
@@ -42,7 +48,8 @@ public class OccupyOrderController extends BaseController {
|
||||
logger.info("查询站点占桩费率 params:{}", stationId);
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
|
||||
BillingTemplateVO vo = pileBillingTemplateService.queryUsedBillingTemplate(stationId);
|
||||
response = new RestApiResponse<>(vo);
|
||||
} catch (Exception e) {
|
||||
logger.error("查询站点占桩费率 error,", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
|
||||
Reference in New Issue
Block a user