1 changed files with 84 additions and 0 deletions
@ -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; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue