package com.goafanti.app.controller;

import java.math.BigDecimal;
import java.text.ParseException;

import javax.annotation.Resource;

import org.apache.commons.lang3.StringUtils;
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.constant.ErrorConstants;
import com.goafanti.common.controller.CertifyApiController;
import com.goafanti.order.enums.CommodityType;
import com.goafanti.order.service.OrderService;

@RestController
@RequestMapping(value = "/app/order")
public class AppOrderController extends CertifyApiController{

	@Resource
	private OrderService orderServiceImpl;












	/**
	 * 查询支付流水列表
	 * @param orderNo
	 * @return
	 */
	@RequestMapping(value = "/fundingHistory", method = RequestMethod.POST)
	public Result fundingHistory(String orderNo,Integer pageNo,Integer pageSize) {
		Result res = new Result();
		if (StringUtils.isNotBlank(orderNo))
			res.setData(orderServiceImpl.selectOrderBillList(orderNo, pageNo, pageSize));
		else
			res.setData(orderServiceImpl.selectOrderBillList(null, pageNo, pageSize));
		return res;


	}

}
