mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 10:49:52 +08:00
update 运营端小程序接口
(cherry picked from commit 9dd18c9ffb7e5b847b5fe462aaca361316b9dd32)
This commit is contained in:
@@ -5,12 +5,14 @@ import com.jsowell.common.core.controller.BaseController;
|
|||||||
import com.jsowell.common.response.RestApiResponse;
|
import com.jsowell.common.response.RestApiResponse;
|
||||||
import com.jsowell.pile.service.OrderBasicInfoService;
|
import com.jsowell.pile.service.OrderBasicInfoService;
|
||||||
import com.jsowell.pile.vo.uniapp.business.BusinessConnectorInfoVO;
|
import com.jsowell.pile.vo.uniapp.business.BusinessConnectorInfoVO;
|
||||||
|
import com.jsowell.pile.vo.uniapp.business.BusinessOrderBillingInfoVO;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.xml.ws.soap.Addressing;
|
import javax.xml.ws.soap.Addressing;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运营端小程序订单Controller
|
* 运营端小程序订单Controller
|
||||||
@@ -51,6 +53,15 @@ public class BusinessOrderController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/getOrderBillingDetail/{orderCode}")
|
@GetMapping("/getOrderBillingDetail/{orderCode}")
|
||||||
public RestApiResponse<?> getOrderBillingDetail(@PathVariable("orderCode") String orderCode) {
|
public RestApiResponse<?> getOrderBillingDetail(@PathVariable("orderCode") String orderCode) {
|
||||||
orderBasicInfoService.getOrderBillingDetail(orderCode);
|
RestApiResponse<?> response = null;
|
||||||
|
try {
|
||||||
|
List<BusinessOrderBillingInfoVO> orderBillingDetail = orderBasicInfoService.getOrderBillingDetail(orderCode);
|
||||||
|
response = new RestApiResponse<>(ImmutableMap.of("BusinessOrderBillingInfoList", orderBillingDetail));
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("通过订单编号查询订单各时段计费明细 error", e);
|
||||||
|
response = new RestApiResponse<>(e);
|
||||||
|
}
|
||||||
|
logger.info("通过订单编号查询订单各时段计费明细 orderCode:{}, result:{}", orderCode, response);
|
||||||
|
return response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user