package cn.pluss.platform.controller.jft;


import cn.pluss.platform.api.Result;
import cn.pluss.platform.base.BaseModelController;
import cn.pluss.platform.entity.JftReceiptOrder;
import cn.pluss.platform.jft.JftReceiptOrderService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 缴费通银行卡 前端控制器
 * </p>
 *
 * @author bzg
 * @since 2022-02-22
 */
@Controller
@RequestMapping("/jftOrder")
public class JftReceiptOrderController extends BaseModelController<JftReceiptOrderService, JftReceiptOrder> {


    @RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, value = "/index")
    public String index(HttpServletRequest request) {
        return "jft/orderList";
    }

    @Override
    public Result<Page<JftReceiptOrder>> page(Page<JftReceiptOrder> page, JftReceiptOrder condition, OrderItem orderItem) {
        orderItem.setColumn("id");
        orderItem.setAsc(false);
        return super.page(page, condition, orderItem);
    }
}
