初始化项目
This commit is contained in:
1 parent
45a1702948
commit
934b8aad40
155 files changed
+2649
-68
No files matched your search
@@ -0,0 +1,49 @@
|
||||
package com.bycrm.mapper;
|
||||
|
||||
import com.bycrm.entity.School;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学校Mapper
|
||||
*/
|
||||
@Mapper
|
||||
public interface SchoolMapper {
|
||||
|
||||
/**
|
||||
* 插入学校
|
||||
*/
|
||||
int insert(School school);
|
||||
|
||||
/**
|
||||
* 批量插入学校
|
||||
*/
|
||||
int batchInsert(@Param("list") List<School> list);
|
||||
|
||||
/**
|
||||
* 根据学校名称模糊查询
|
||||
*/
|
||||
List<School> searchByName(@Param("keyword") String keyword);
|
||||
|
||||
/**
|
||||
* 根据学校标识码查询
|
||||
*/
|
||||
School findByCode(@Param("schoolCode") String schoolCode);
|
||||
|
||||
/**
|
||||
* 查询所有学校
|
||||
*/
|
||||
List<School> findAll();
|
||||
|
||||
/**
|
||||
* 分页查询学校
|
||||
*/
|
||||
List<School> findByPage(@Param("offset") int offset, @Param("limit") int limit);
|
||||
|
||||
/**
|
||||
* 统计学校数量
|
||||
*/
|
||||
int count();
|
||||
}
|
||||
Reference in new issue
Block a user