diff --git a/op-modules/op-system/src/main/resources/mapper/system/SysDatasourceMapper.xml b/op-modules/op-system/src/main/resources/mapper/system/SysDatasourceMapper.xml index e1c22cd1..211da1df 100644 --- a/op-modules/op-system/src/main/resources/mapper/system/SysDatasourceMapper.xml +++ b/op-modules/op-system/src/main/resources/mapper/system/SysDatasourceMapper.xml @@ -66,8 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join sys_user_datasource sud on sd.id = sud.datasource_id left join sys_user su on su.user_id = sud.user_id where sud.user_id is not null - - AND su.nick_name like concat('%', #{nickName}, '%') + + AND su.nick_name like concat('%', #{userName}, '%') AND sd.id = #{datasourceId}