parent
1461e91ee8
commit
52cae940dd
@ -0,0 +1,24 @@
|
||||
package com.example.flower.mapper;
|
||||
|
||||
import com.example.flower.entity.Cart;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface CartMapper {
|
||||
List<Cart> cartList(int user_id); //获取所有购物车信息
|
||||
List<Cart> cartListByQuery(int user_id,String flower_name);//查询购物车信息列表
|
||||
void cartAdd(Cart cart); //添加新购物车
|
||||
int cartDeletePer(int cart_id); //删除单个购物车
|
||||
int cartDeleteMul(int[] cart_ids); //批量删除购物车
|
||||
Cart cartInfo(int cart_id); //获取购物车信息
|
||||
int cartModify(Cart cart); //修改购物车信息
|
||||
int cartModify_num(Cart cart); //修改购物车信息_数量
|
||||
List<Cart> cartRepeat(int user_id,int flower_id); //处理购物车重复加入
|
||||
int cartNum(int user_id); //统计用户购物车数
|
||||
|
||||
List<Cart> findAllCart(); //查询所有购物车信息
|
||||
}
|
||||
Loading…
Reference in new issue