mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
!190 removeByDsId 方法dsId 类型修改为Long
Merge pull request !190 from Hooper/master
This commit is contained in:
commit
f787143606
@ -59,6 +59,6 @@ public interface GenDatasourceConfService extends IService<GenDatasourceConf> {
|
||||
* @param dsId 数据源ID
|
||||
* @return
|
||||
*/
|
||||
Boolean removeByDsId(Integer dsId);
|
||||
Boolean removeByDsId(Long dsId);
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user