!190 removeByDsId 方法dsId 类型修改为Long

Merge pull request !190 from Hooper/master
This commit is contained in:
lengleng 2022-01-19 03:44:53 +00:00 committed by Gitee
commit f787143606
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -59,6 +59,6 @@ public interface GenDatasourceConfService extends IService<GenDatasourceConf> {
* @param dsId 数据源ID
* @return
*/
Boolean removeByDsId(Integer dsId);
Boolean removeByDsId(Long dsId);
}

View File

@ -101,7 +101,7 @@ public class GenDatasourceConfServiceImpl extends ServiceImpl<GenDatasourceConfM
* @return
*/
@Override
public Boolean removeByDsId(Integer dsId) {
public Boolean removeByDsId(Long dsId) {
SpringContextHolder.getBean(DynamicRoutingDataSource.class)
.removeDataSource(baseMapper.selectById(dsId).getName());
this.baseMapper.deleteById(dsId);