| | |
| | | package com.ruoyi.generator.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; |
| | | import com.ruoyi.generator.domain.GenTableColumn; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 业务字段 数据层 |
| | | * |
| | | * @author ruoyi |
| | | * |
| | | * @author Lion Li |
| | | */ |
| | | public interface GenTableColumnMapper |
| | | { |
| | | @InterceptorIgnore(dataPermission = "true") |
| | | public interface GenTableColumnMapper extends BaseMapperPlus<GenTableColumnMapper, GenTableColumn, GenTableColumn> { |
| | | /** |
| | | * 根据表名称查询列信息 |
| | | * |
| | | * |
| | | * @param tableName 表名称 |
| | | * @return 列信息 |
| | | */ |
| | | public List<GenTableColumn> selectDbTableColumnsByName(String tableName); |
| | | |
| | | /** |
| | | * 查询业务字段列表 |
| | | * |
| | | * @param tableId 业务字段编号 |
| | | * @return 业务字段集合 |
| | | */ |
| | | public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId); |
| | | List<GenTableColumn> selectDbTableColumnsByName(String tableName); |
| | | |
| | | /** |
| | | * 新增业务字段 |
| | | * |
| | | * @param genTableColumn 业务字段信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertGenTableColumn(GenTableColumn genTableColumn); |
| | | |
| | | /** |
| | | * 修改业务字段 |
| | | * |
| | | * @param genTableColumn 业务字段信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateGenTableColumn(GenTableColumn genTableColumn); |
| | | |
| | | /** |
| | | * 批量删除业务字段 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteGenTableColumnByIds(Long[] ids); |
| | | } |