多租户模式修改

This commit is contained in:
qiankunpingtai
2019-04-28 16:18:16 +08:00
parent 9f6902f53d
commit 2de009d464
6 changed files with 61 additions and 53 deletions

View File

@@ -1,5 +1,6 @@
package com.jsh.erp.datasource.mappers;
import com.baomidou.mybatisplus.annotation.SqlParser;
import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.datasource.entities.UserEx;
import com.jsh.erp.datasource.entities.UserExample;
@@ -28,7 +29,10 @@ public interface UserMapperEx {
int addUser(UserEx ue);
int updateUser(UserEx ue);
/**
* 这个查询不添加租户id保证登录名全局唯一
* */
@SqlParser(filter = true)
List<User> getUserListByUserNameOrLoginName(@Param("userName") String userName,
@Param("loginame") String loginame);