优化同步组织岗位
This commit is contained in:
parent
f8d2496248
commit
bc7b0c7df9
Binary file not shown.
@ -186,11 +186,19 @@ public class SynchronousPortJob implements IJob {
|
||||
return modelId = model1.getId();
|
||||
} else {
|
||||
PALRepositoryModelImpl model = (PALRepositoryModelImpl) coeProcessLevel.getInstance(orgrowMap.getString("ID"));
|
||||
/* String plname = orgrowMap.getString("PLNAME");
|
||||
String plname = orgrowMap.getString("PLNAME");
|
||||
if (!plname.equals(org.getString("DEPARTMENTNAME"))) {
|
||||
String updateSql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLNAME=? WHERE ID=? AND PLMETHODID='org.normal'";
|
||||
DBSql.update(conn, String.format(updateSql, org.getString("DEPARTMENTNAME"), orgrowMap.getString("ID")));
|
||||
}*/
|
||||
if(StringUtil.isNotEmpty(orgrowMap.getString("ID"))){
|
||||
String sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLNAME=? where ID=? AND PLMETHODID='org.normal' ";
|
||||
int count=DBSql.update(sql, new Object[] { org.getString("DEPARTMENTNAME"), orgrowMap.getString("ID")});
|
||||
if (count==1) {
|
||||
PALRepositoryCache.getCache().reload();
|
||||
System.out.println(org.getString("DEPARTMENTNAME")+"修改成功!!!!!!!!!!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
createPostData(model.getId(), org.getString("ID"), model, conn);
|
||||
|
||||
}
|
||||
@ -219,11 +227,18 @@ public class SynchronousPortJob implements IJob {
|
||||
}else{
|
||||
|
||||
PALRepositoryModelImpl model = (PALRepositoryModelImpl)coeProcessLevel.getInstance(orgrowMap.getString("ID"));
|
||||
/* String plname=orgrowMap.getString("PLNAME");
|
||||
String plname=orgrowMap.getString("PLNAME");
|
||||
if(!plname.equals(org.getString("DEPARTMENTNAME"))){
|
||||
String updateSql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLNAME=? WHERE ID=? AND PLMETHODID='org.normal'";
|
||||
DBSql.update(conn, String.format(updateSql, org.getString("DEPARTMENTNAME"), orgrowMap.getString("ID")));
|
||||
}*/
|
||||
if(StringUtil.isNotEmpty(orgrowMap.getString("ID"))){
|
||||
String sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLNAME=? where ID=? AND PLMETHODID='org.normal' ";
|
||||
int count=DBSql.update(sql, new Object[] { org.getString("DEPARTMENTNAME"), orgrowMap.getString("ID")});
|
||||
if (count==1) {
|
||||
PALRepositoryCache.getCache().reload();
|
||||
System.out.println(org.getString("DEPARTMENTNAME")+"修改成功!!!!!!!!!!");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
createPostData(orgrowMap.getString("ID"), org.getString("ID"), model, conn);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user