package com.diaoyun.zion.chinafrica.dao;


import com.diaoyun.zion.chinafrica.entity.TbCfItemDetailEntity;
import com.diaoyun.zion.chinafrica.vo.TbCfCartItemDetailVo;
import com.diaoyun.zion.master.dao.BaseDao;

import java.util.List;

/**
 * 商品详情Dao
 *
 * @author G
 * @date 2019-08-16 15:51:16
 */
public interface TbCfItemDetailDao extends BaseDao<TbCfItemDetailEntity> {

    /**
     * 根据用户id获取购物车内物品
     * @param userId
     * @return
     */
    List<TbCfCartItemDetailVo> getCartItemList(String userId,Integer checkFlag);

    /**
     * 改变购物车的商品勾选状态
     * @param cartRecordId
     * @param checkFlag
     * @return
     */
    int changeItemState(String cartRecordId, Integer checkFlag);

}
