From f8e96f58b473869b988222f383e9c4baf43d0fa3 Mon Sep 17 00:00:00 2001 From: xioayue Date: Sat, 2 Jul 2022 01:43:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=8E=A7=E5=88=B6=E5=99=A8?= =?UTF-8?q?=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../szwh/controller/api/OrderController.java | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/main/java/cn/chjyj/szwh/controller/api/OrderController.java diff --git a/src/main/java/cn/chjyj/szwh/controller/api/OrderController.java b/src/main/java/cn/chjyj/szwh/controller/api/OrderController.java new file mode 100644 index 0000000..ede5efc --- /dev/null +++ b/src/main/java/cn/chjyj/szwh/controller/api/OrderController.java @@ -0,0 +1,84 @@ +package cn.chjyj.szwh.controller.api; + +import cn.chjyj.szwh.controller.BaseController; +import com.alibaba.fastjson.JSONObject; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +/** + * 用户订单信息 + * only POST method + */ +@RestController +@RequestMapping(name = "/api/Order",method = RequestMethod.POST) +public class OrderController extends BaseController { + /** + * 获取订单信息 + * @param batchcode + * @param userIsli + * @param userRole + * @param payStatus + * @param closeStatus + * @param orderStatus + * @param creatime + * @param chargesType + * @param page + * @param pagesize + * @return + */ + @RequestMapping("/getOrder") + public JSONObject getOrder(@RequestParam("batchcode")String batchcode, + @RequestParam("user_isli") String userIsli, + String userRole,String payStatus,String closeStatus, + String orderStatus,String creatime,String chargesType, + @RequestParam(name = "page",defaultValue = "1") String page, + @RequestParam(name = "limit",defaultValue = "20")String pagesize + ){ + +// $batchcode = $this->request->post('', ''); +// $user_isli = $this->request->post(); +// $user_role = $this->request->post('user_role'); +// $pay_status = $this->request->post('pay_status'); +// $close_status = $this->request->post('close_status'); +// $order_status = $this->request->post('order_status'); +// $createtime = $this->request->post('createtime'); +// $charges_type = $this->request->post('charges_type'); + + return jsonObject; + } + + /** + * 创建订单 + * @return + */ + @RequestMapping("/createOrder") + public JSONObject createOrder(){ + return jsonObject; + } + + /** + * 查询发票 + * @return + */ + @RequestMapping("/getTicket") + public JSONObject getTicket(){ + return jsonObject; + } + + /** + * 订单结算 + * @return + */ + @RequestMapping("/getBalance") + public JSONObject getBalance(){ + return jsonObject; + } + + @RequestMapping("/orderCloseCallback") + public JSONObject orderCloseCallback(){ + // 请求转发到远程服务器 + return jsonObject; + } +}