ZengTao
2023-10-27 dfce0011f8b675debd45adaefb9915c23a673d61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.example.springboot.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Mapper
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    void categoryDeleteByIds(@Param("ids") List<Long> ids);
 
    void categoryUpdateById(@Param("id") Long id, @Param("category") Category category);
 
    void categoryInsert(@Param("category") Category category);
 
    List<Category> findAllExceptSelf(@Param("id") Long id);
 
    List<Category> selectByPath(@Param("path") String path);
}