removeByDsId 方法dsId 类型修改为Long

This commit is contained in:
Hooper 2022-01-19 03:40:42 +00:00 committed by Gitee
parent 5071e53b2b
commit 3843a97d27
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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