月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-07-10 4525db077789d82f0e667d047863348a31e9b6b9
src/main/java/com/moon/server/mapper/sys/ResMapper.java
@@ -2,22 +2,21 @@
import com.moon.server.entity.sys.ResEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
 * 资源表
 * @author sws
 * @date 2022-09-28
 * 资源
 * @author WWW
 */
@Mapper
@ResponseBody
@Repository
public interface ResMapper {
    /**
     * 查询记录数
     *
     * @param name 表名
     * @param name 名称
     * @return 记录数
     */
    public Integer selectCount(String name);
@@ -25,12 +24,27 @@
    /**
     * 分页查询
     *
     * @param name   表名
     * @param name   名称
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<ResEntity> selectByPage(String name, Integer limit, Integer offset);
    /**
     * 查询所有
     *
     * @return
     */
    public List<ResEntity> selectAll();
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public ResEntity selectById(int id);
    /**
     * 根据角色查询记录数
@@ -53,10 +67,10 @@
    /**
     * 插入一条
     *
     * @param resEntity
     * @param entity
     * @return
     */
    public Integer insertRes(ResEntity resEntity);
    public Integer insert(ResEntity entity);
    /**
     * 插入多条
@@ -64,7 +78,7 @@
     * @param list
     * @return
     */
    public Integer insertRess(List<ResEntity> list);
    public Integer inserts(List<ResEntity> list);
    /**
     * 删除一条
@@ -72,7 +86,7 @@
     * @param id
     * @return
     */
    public Integer deleteRes(int id);
    public Integer delete(int id);
    /**
     * 删除多条
@@ -80,31 +94,21 @@
     * @param ids
     * @return
     */
    public Integer deleteRess(List<Integer> ids);
    public Integer deletes(List<Integer> ids);
    /**
     * 更新一条
     *
     * @param resEntity
     * @param entity
     * @return
     */
    public Integer updateRes(ResEntity resEntity);
    public Integer update(ResEntity entity);
    /**
     * 查询单条数据
     * 更新多条
     *
     * @param id
     * @param list
     * @return
     */
    public ResEntity selectRes(int id);
    /**
     * 查询所有
     *
     * @return
     */
    public List<ResEntity> selectResAll();
    public Integer updates(List<ResEntity> list);
}