管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-09-26 2e0ac4bee4366055254a12d932db8d5347e11ddb
src/main/java/com/lf/server/mapper/data/StyleMapper.java
@@ -1,5 +1,6 @@
package com.lf.server.mapper.data;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.StyleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -15,7 +16,26 @@
@ResponseBody
public interface StyleMapper {
    /**
     * 根据表名查询记录数
     *
     * @param name 样式名
     * @return 记录数
     */
    public Integer selectCount(String name);
    /**
     * 根据表名分页查询
     *
     * @param name   样式名
     * @param limit  记录表
     * @param offset 偏移量
     * @return 列表
     */
    public List<StyleEntity> selectByPage(String name, Integer limit, Integer offset);
    /**
     * 添加数据
     *
     * @param styleEntity
     * @return
     */
@@ -23,12 +43,15 @@
    /**
     * 批量添加
     *
     * @param styleEntity
     * @return
     */
    public Integer insertStyles(List<StyleEntity> styleEntity);
    /**
     * 刪除数据
     *
     * @param id
     * @return
     */
@@ -36,6 +59,7 @@
    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
@@ -43,6 +67,7 @@
    /**
     * 修改数据
     *
     * @param styleEntity
     * @return
     */
@@ -50,6 +75,7 @@
    /**
     * 查询单条数据
     *
     * @param id
     * @return
     */
@@ -57,6 +83,7 @@
    /**
     * 查询全部数据
     *
     * @return
     */
    public List<StyleEntity> selectStyleAll();