package com.zm.order.tool.server.dao;


import com.zm.order.tool.server.model.WmOrderDiscount;
import com.zm.order.tool.server.query.WmOrderDiscountQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author penghui
 */
@Repository
public interface WmOrderDiscountDao {

    /**
     * 查询
     *
     * @param  id
     * @return
     */
    WmOrderDiscount selectOne(@Param("id") Long id);


    /**
     * 查询
     *
     * @param query
     * @return
     */
    List<WmOrderDiscount> selectList(WmOrderDiscountQuery query);
}