定时同步组织代码
This commit is contained in:
parent
db8b5e6f30
commit
ca1d50da37
@ -186,7 +186,7 @@ public class SynchronousOrgJob implements IJob {
|
||||
definition.remove("commonShapeConfig");
|
||||
}
|
||||
|
||||
List<RowMap> orgdepartmentList=DBSql.getMaps("select * from ORGUSER WHERE DEPARTMENTID=?",departmentId);
|
||||
List<RowMap> 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");// 位置大小
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user