diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousOrgJob.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousOrgJob.java index 30cca792..dba475bd 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousOrgJob.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousOrgJob.java @@ -186,7 +186,7 @@ public class SynchronousOrgJob implements IJob { definition.remove("commonShapeConfig"); } - List orgdepartmentList=DBSql.getMaps("select * from ORGUSER WHERE DEPARTMENTID=?",departmentId); + List orgdepartmentList=DBSql.getMaps("select POSITION_NO,POSITION_NAME from ORGUSER WHERE DEPARTMENTID=?",departmentId); int zindex = 1; @@ -198,16 +198,13 @@ public class SynchronousOrgJob implements IJob { String shapeId1 = UUIDGener.getObjectId(); //拿到基础结构 JSONObject shape1 = ShapeUtil.getProcessShapeDefinitionByName("org.normal", "position"); - String roleid=orgdepartmentList.get(i).getString("ROLEID"); + String positionName=orgdepartmentList.get(i).getString("POSITION_NAME"); - String sql = "SELECT ROLENAME FROM ORGROLE WHERE ID=? AND ROLETYPE='1'"; - String rolename = DBSql.getString(sql, new Object[] { roleid }); - - if(StringUtil.isNotEmpty(rolename)){ + if(StringUtil.isNotEmpty(positionName)){ shape1.put("id", shapeId1); - shape1.put("text",rolename); + shape1.put("text",positionName); JSONObject props1 = shape1.getJSONObject("props");// 位置大小