You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
68 lines
1.7 KiB
package com.ruoyi.generator.service; |
|
|
|
import java.util.List; |
|
import org.springframework.beans.factory.annotation.Autowired; |
|
import org.springframework.stereotype.Service; |
|
import com.ruoyi.common.core.text.Convert; |
|
import com.ruoyi.generator.domain.GenTableColumn; |
|
import com.ruoyi.generator.mapper.GenTableColumnMapper; |
|
|
|
/** |
|
* 业务字段 服务层实现 |
|
* |
|
* @author ruoyi |
|
*/ |
|
@Service |
|
public class GenTableColumnServiceImpl implements IGenTableColumnService |
|
{ |
|
@Autowired |
|
private GenTableColumnMapper genTableColumnMapper; |
|
|
|
/** |
|
* 查询业务字段列表 |
|
* |
|
* @param tableId 业务字段编号 |
|
* @return 业务字段集合 |
|
*/ |
|
@Override |
|
public List<GenTableColumn> selectGenTableColumnListByTableId(Long tableId) |
|
{ |
|
return genTableColumnMapper.selectGenTableColumnListByTableId(tableId); |
|
} |
|
|
|
/** |
|
* 新增业务字段 |
|
* |
|
* @param genTableColumn 业务字段信息 |
|
* @return 结果 |
|
*/ |
|
@Override |
|
public int insertGenTableColumn(GenTableColumn genTableColumn) |
|
{ |
|
return genTableColumnMapper.insertGenTableColumn(genTableColumn); |
|
} |
|
|
|
/** |
|
* 修改业务字段 |
|
* |
|
* @param genTableColumn 业务字段信息 |
|
* @return 结果 |
|
*/ |
|
@Override |
|
public int updateGenTableColumn(GenTableColumn genTableColumn) |
|
{ |
|
return genTableColumnMapper.updateGenTableColumn(genTableColumn); |
|
} |
|
|
|
/** |
|
* 删除业务字段对象 |
|
* |
|
* @param ids 需要删除的数据ID |
|
* @return 结果 |
|
*/ |
|
@Override |
|
public int deleteGenTableColumnByIds(String ids) |
|
{ |
|
return genTableColumnMapper.deleteGenTableColumnByIds(Convert.toLongArray(ids)); |
|
} |
|
}
|
|
|