mirror of https://gitee.com/maxjhandsome/pig
🐛 修复了一个 BUG,shardingjdbc越界问题
This commit is contained in:
parent
75c508f52a
commit
2600e457e4
|
@ -1,6 +1,7 @@
|
|||
package com.github.pig.admin.common.config;
|
||||
|
||||
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
|
||||
import com.github.pig.common.bean.interceptor.DataScopeInterceptor;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
@ -27,8 +28,8 @@ public class MybatisPlusConfig {
|
|||
*
|
||||
* @return DataScopeInterceptor
|
||||
*/
|
||||
// @Bean
|
||||
// public DataScopeInterceptor dataScopeInterceptor() {
|
||||
// return new DataScopeInterceptor();
|
||||
// }
|
||||
@Bean
|
||||
public DataScopeInterceptor dataScopeInterceptor() {
|
||||
return new DataScopeInterceptor();
|
||||
}
|
||||
}
|
|
@ -135,6 +135,7 @@
|
|||
<if test="username != null and username != ''">
|
||||
and `user`.username LIKE CONCAT('%',#{username},'%')
|
||||
</if>
|
||||
ORDER BY `user`.create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue