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 02787d27..a055cc78 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 @@ -73,7 +73,7 @@ public class SynchronousOrgJob implements IJob { PALRepositoryModelImpl model = CoeProcessLevelUtil.createPALRepositoryModel(id1, plRid1, wsId, "内蒙古伊利实业集团股份有限公司", - "", 1, modeldefaultId, "org", true, 1, + "", orderIndex, modeldefaultId, "org", true, 1, id1, false, "org.normal", "0", 1, null, null, "admin", "admin", nowTime, "0", null, null, null, null, null, null, null, null, 1); @@ -227,7 +227,7 @@ public class SynchronousOrgJob implements IJob { } - List orgdepartmentList=DBSql.getMaps("select POSITION_NO,POSITION_NAME from ORGUSER WHERE DEPARTMENTID=?",departmentId); + List orgdepartmentList=DBSql.getMaps("select DISTINCT(POSITION_NAME) from ORGUSER WHERE DEPARTMENTID=?",departmentId); JSONArray shapes = new JSONArray(); if(orgdepartmentList.size()>0){