package com.goafanti.order.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.goafanti.common.bo.Result;
import com.goafanti.common.controller.BaseApiController;
import com.goafanti.order.service.JtOrderService;

@RestController
@RequestMapping(value = "/api/admin/jtOrder")
public class AdminJtOrderController extends BaseApiController{
	@Resource
	JtOrderService jtOrderService;
	/*
	 * userType-----0-购买者   1-出售者  2-管理员
	 * 
	 * */
	@RequestMapping(value="/list",method = RequestMethod.GET)
	public Result getMyJtOrderList(Integer orderType,String orderNo,String startCreateDate,String endCreateDate,String sellerName,String buyerName,String commodityName,Integer pageNo,Integer pageSize) {
		Result result=new Result();
		
		result.setData(jtOrderService.searchOrderList(orderType,orderNo, startCreateDate, endCreateDate, sellerName, buyerName, commodityName, 2, pageNo, pageSize));  
		return result;
	}

}
