|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.kms.config.scheduled; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
@ -86,15 +87,16 @@ public class WaterScheduled { |
|
|
|
user.setMd5(MD5Util.MD5Encode(singleUser.toString(), "utf-8")); |
|
|
|
}else { |
|
|
|
String md = MD5Util.MD5Encode(singleUser.toString(), "utf-8"); |
|
|
|
if(user.getMd5()!=null&&md.equals(user.getMd5())){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
// if(user.getMd5()!=null&&md.equals(user.getMd5())){
|
|
|
|
// continue;
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
SingleOrg org = singleUser.getOrg(); |
|
|
|
List<String> collect = singleUser.getRoleList().stream().map(singleRole -> singleRole.getId()).collect(Collectors.toList()); |
|
|
|
List<SysRole> roles = roleService.listByIds(collect); |
|
|
|
if(org!=null){ |
|
|
|
|
|
|
|
user.setDeptId(org.getId()); |
|
|
|
String type = singleUser.getType(); |
|
|
|
if(type.equals("GA")){ //政务机构
|
|
|
@ -121,7 +123,7 @@ public class WaterScheduled { |
|
|
|
collect.add(YW00110); |
|
|
|
} |
|
|
|
} |
|
|
|
}else if(type.equals("SVC")||type.equals("ORG")){ //服务机构
|
|
|
|
}else if(type.equals("SVC")||type.equals("ORG")||type.equals("LP")){ //服务机构
|
|
|
|
user.setUserType("01"); |
|
|
|
if(CollectionUtil.isEmpty(roles)){ |
|
|
|
collect.add(YW00112); |
|
|
|