|
@@ -22,7 +22,7 @@ public class UserDaoImpl implements UserDao {
|
|
@Override
|
|
@Override
|
|
public List<User> listPageUUser(User uUser) {
|
|
public List<User> listPageUUser(User uUser) {
|
|
StringBuffer s = new StringBuffer();
|
|
StringBuffer s = new StringBuffer();
|
|
- String select = "select id, nickname, phone, pswd, create_time, last_login_time, status,rules from u_user ";
|
|
|
|
|
|
+ String select = "select id, nickname, phone, pswd, create_time, last_login_time, status, permission, rules from u_user ";
|
|
s.append(select);
|
|
s.append(select);
|
|
Map<String, Object> m = map(uUser);
|
|
Map<String, Object> m = map(uUser);
|
|
String where = "where 1=1 " + m.keySet().stream().map(t -> " and " + t + "=?").collect(Collectors.joining(" "));
|
|
String where = "where 1=1 " + m.keySet().stream().map(t -> " and " + t + "=?").collect(Collectors.joining(" "));
|
|
@@ -72,7 +72,7 @@ public class UserDaoImpl implements UserDao {
|
|
@Override
|
|
@Override
|
|
public List<User> listUUser(User uUser) {
|
|
public List<User> listUUser(User uUser) {
|
|
StringBuffer s = new StringBuffer();
|
|
StringBuffer s = new StringBuffer();
|
|
- String select = "select id, nickname, phone, pswd, create_time, last_login_time, status from u_user ";
|
|
|
|
|
|
+ String select = "select id, nickname, permission, rules ,phone, pswd, create_time, last_login_time, status from u_user ";
|
|
s.append(select);
|
|
s.append(select);
|
|
Map<String, Object> m = map(uUser);
|
|
Map<String, Object> m = map(uUser);
|
|
String where = "where 1=1 " + m.keySet().stream().map(t -> " and " + t + "=?").collect(Collectors.joining(" "));
|
|
String where = "where 1=1 " + m.keySet().stream().map(t -> " and " + t + "=?").collect(Collectors.joining(" "));
|
|
@@ -118,8 +118,11 @@ public class UserDaoImpl implements UserDao {
|
|
if (uUser.getStatus() != null) {
|
|
if (uUser.getStatus() != null) {
|
|
map.put("status", uUser.getStatus());
|
|
map.put("status", uUser.getStatus());
|
|
}
|
|
}
|
|
- if (uUser.getRules() != null){
|
|
|
|
- map.put("rules",uUser.getRules());
|
|
|
|
|
|
+ if (uUser.getRulesIds() != null){
|
|
|
|
+ map.put("rules",uUser.getRulesIds());
|
|
|
|
+ }
|
|
|
|
+ if (uUser.getPermissionIds() != null){
|
|
|
|
+ map.put("permission",uUser.getPermissionIds());
|
|
}
|
|
}
|
|
|
|
|
|
return map;
|
|
return map;
|