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

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

import java.util.List;

/**
 * @Author 陈标
 * @Date 2020/3/25 14:59
 */
@Repository
public interface HintOrderOperationDao {
    /**
     * 查询数据
     *
     * @param orderOperationQuery
     * @return
     */
    List<OrderOperation> selectList(OrderOperationQuery orderOperationQuery);

    /**
     * 查询记录
     *
     * @param query 查询条件
     * @return
     */
    List<Long> selectIdList(OrderOperationQuery query);

    /**
     * 删除数据
     *
     * @param idList
     * @return
     */
    void deleteList(@Param("idList") List<Long> idList);


    int deleteListSize(OrderOperationQuery orderOperationQuery);
}
