package com.diaoyun.zion.chinafrica.dao;


import com.diaoyun.zion.chinafrica.entity.TbCfCartRecordREntity;
import com.diaoyun.zion.master.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 购物车记录表Dao
 *
 * @author G
 * @date 2019-08-16 15:51:16
 */
public interface TbCfCartRecordRDao extends BaseDao<TbCfCartRecordREntity> {

    /**
     * 伪删除，将标志位置为 0
     * @param cartRecordIds
     * @return
     */
    int deleteItems(String[] cartRecordIds);

    TbCfCartRecordREntity queryByItemId(String itemId);

    TbCfCartRecordREntity querySkuAndUrl(@Param("itemSku") String itemSku,@Param("sourceItemId") String sourceItemId);
}
