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

import com.zm.order.tool.server.model.OrderItemCommentCount;
import com.zm.order.tool.server.query.OrderItemCommentCountQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单商品评论统计表
 *
 * @author zhuxiaofeng
 */
@Repository
public interface OrderItemCommentCountDao {

    /**
     * 新增
     * @param record record
     * @return
     * Date: 2021/5/13 2:34 下午
     */
    int insert(OrderItemCommentCount record);

    /**
     * 修改
     * @param record record
     * @return
     * Date: 2021/5/13 2:34 下午
     */
    int update(OrderItemCommentCount record);

    /**
     * 单条记录查询
     * @param query	query
     * @return
     * Date: 2021/5/17 4:07 下午
     */
    OrderItemCommentCount selectOne(OrderItemCommentCountQuery query);

    /**
     * 查询列表
     * @param query query
     * @return
     * Date: 2021/5/13 2:34 下午
     */
    List<OrderItemCommentCount> selectList(OrderItemCommentCountQuery query);

}
