新增 查询占桩订单费用相关接口

This commit is contained in:
Lemon
2023-08-19 14:07:42 +08:00
parent c2dddd65a7
commit b9da264581
5 changed files with 36 additions and 2 deletions

View File

@@ -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);