ApiCartMapper.java 1.0 KB

123456789101112131415161718192021222324252627282930
  1. package com.kmall.api.dao;
  2. import com.kmall.api.entity.CartVo;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.kmall.common.dao.BaseDao;
  5. import org.springframework.stereotype.Component;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * @author Scott
  10. * @email
  11. * @date 2017-08-11 09:14:25
  12. */
  13. @Component
  14. public interface ApiCartMapper extends BaseDao<CartVo> {
  15. void updateCheck(@Param("productIds") String[] productIds,
  16. @Param("isChecked") Integer isChecked, @Param("user_id") Long userId, @Param("store_id") Long store_id);
  17. void deleteByProductIds(@Param("productIds") String[] productIds, @Param("store_id") Long store_id);
  18. void deleteByCart(@Param("user_id") Long user_id, @Param("store_id") Long store_id, @Param("checked") Integer checked);
  19. List<CartVo> queryCartByGoodsBizType(@Param("goodsBizType") String goodsBizType);
  20. List<CartVo> queryValidCartList(Map<String, Object> map);
  21. CartVo queryObjectByGoodsIdAndUserId(@Param("goods_id")Long goods_id,@Param("user_id")Long user_id);
  22. }