提交 04773e3a 编写于 作者: zhouweidong's avatar zhouweidong

上下级单位、部门数据调整

上级 42eff0df
...@@ -34,7 +34,7 @@ public class OrgFeignService { ...@@ -34,7 +34,7 @@ public class OrgFeignService {
JSONObject orgDept = new JSONObject(); JSONObject orgDept = new JSONObject();
//查询用户的levelCode //查询用户的levelCode
List<JSONObject> empInfo= orgService.select(String.format("select t1.ORGLEVEL,t2.DEPTLEVEL from ibzemp t left join ibzorg t1 on t.orgid =t1.orgid left join ibzdept t2 on t.MDEPTID=t2.DEPTID where t.LOGINNAME='%s' ",loginName)); List<JSONObject> empInfo= orgService.select(String.format("select t1.ORGCODE, t2.DEPTCODE, t1.ORGLEVEL,t2.DEPTLEVEL from ibzemp t left join ibzorg t1 on t.orgid =t1.orgid left join ibzdept t2 on t.MDEPTID=t2.DEPTID where t.LOGINNAME='%s' ",loginName));
if(empInfo.size()==0) if(empInfo.size()==0)
return null; return null;
...@@ -57,6 +57,12 @@ public class OrgFeignService { ...@@ -57,6 +57,12 @@ public class OrgFeignService {
orgInfo.put("org",org); orgInfo.put("org",org);
orgInfo.put("orgdept",orgDept); orgInfo.put("orgdept",orgDept);
//设置当前用户组织、部门信息
JSONObject curUser=new JSONObject();
curUser.put("org",empInfo.get(0).getString("ORGCODE"));
curUser.put("orgdept",empInfo.get(0).getString("DEPTCODE"));
orgInfo.put("curuser",curUser);
return orgInfo; return orgInfo;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册