提交 42eff0df 编写于 作者: zhouweidong's avatar zhouweidong

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

上级 0ebf83eb
...@@ -43,16 +43,16 @@ public class OrgFeignService { ...@@ -43,16 +43,16 @@ public class OrgFeignService {
deptLevel=empInfo.get(0).getString("DEPTLEVEL"); deptLevel=empInfo.get(0).getString("DEPTLEVEL");
//通过levelCode查询上下级组织信息 //通过levelCode查询上下级组织信息
List<JSONObject> pOrgLists= orgService.select(String.format("select orgid from ibzorg t where INSTR('%s', t.orglevel )=1 ",orgLevel)); List<JSONObject> pOrgLists= orgService.select(String.format("select orgcode from ibzorg t where INSTR('%s', t.orglevel )=1 ",orgLevel));
List<JSONObject> sOrgLists= orgService.select(String.format("select orgid from ibzorg t where INSTR(t.orglevel ,'%s' )=1 ",orgLevel)); List<JSONObject> sOrgLists= orgService.select(String.format("select orgcode from ibzorg t where INSTR(t.orglevel ,'%s' )=1 ",orgLevel));
List<JSONObject> pOrgDeptLists= orgService.select(String.format("select deptid from ibzdept t where INSTR(t.deptlevel ,'%s')=1 ",deptLevel)); List<JSONObject> pOrgDeptLists= orgService.select(String.format("select deptcode from ibzdept t where INSTR('%s',t.deptlevel)=1 ",deptLevel));
List<JSONObject> sOrgDeptLists= orgService.select(String.format("select deptid from ibzdept t where INSTR('%s',t.deptlevel )=1 ",deptLevel)); List<JSONObject> sOrgDeptLists= orgService.select(String.format("select deptcode from ibzdept t where INSTR(t.deptlevel,'%s')=1 ",deptLevel));
org.put("porg",parseData(pOrgLists,"orgid")); org.put("porg",parseData(pOrgLists,"orgcode"));
org.put("sorg",parseData(sOrgLists,"orgid")); org.put("sorg",parseData(sOrgLists,"orgcode"));
orgDept.put("porgdept",parseData(pOrgDeptLists,"deptid")); orgDept.put("porgdept",parseData(pOrgDeptLists,"deptcode"));
orgDept.put("sorgdept",parseData(sOrgDeptLists,"deptid")); orgDept.put("sorgdept",parseData(sOrgDeptLists,"deptcode"));
orgInfo.put("org",org); orgInfo.put("org",org);
orgInfo.put("orgdept",orgDept); orgInfo.put("orgdept",orgDept);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册