diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 858c2790..67c01afa 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousPortJob.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousPortJob.java index 8f6ea47c..51e9ae20 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousPortJob.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/SynchronousPortJob.java @@ -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); }