diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/dao/PALRepository.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/dao/PALRepository.java index fe717903..321413c6 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/dao/PALRepository.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/dao/PALRepository.java @@ -4460,6 +4460,31 @@ public class PALRepository extends DaoObject { return r; } + /** + * 更新扩展字段内容 + * @param uuid + * @param ext1 + * @param ext2 + * @param ext3 + * @param ext4 + */ + public int updateRepositoryExtAll(String uuid, String ext1, String ext2, String ext3, String ext4,String ext5,String ext6) { + PALRepositoryModelImpl plModel = (PALRepositoryModelImpl) PALRepositoryCache.getCache().get(uuid); + String sql = "UPDATE " + PALRepositoryModelImpl.DATABASE_ENTITY + " set " + PALRepositoryModelImpl.FIELD_PL_EXT1 + "=?," + PALRepositoryModelImpl.FIELD_PL_EXT2 + "=?," + PALRepositoryModelImpl.FIELD_PL_EXT3 + "=?," + PALRepositoryModelImpl.FIELD_PL_EXT4 + "=? WHERE " + PALRepositoryModelImpl.FIELD_UUID + "=?"; + Object[] args = {ext1 == null ? "" : ext1, ext2 == null ? "" : ext2, ext3 == null ? "" : ext3, ext4 == null ? "" : ext4,ext5 == null ? "" : ext5,ext6 == null ? "" : ext6, uuid}; + int r = DBSql.update(sql, args); + if (r > 0) { + plModel.setExt1(ext1 == null ? "" : ext1); + plModel.setExt2(ext2 == null ? "" : ext2); + plModel.setExt3(ext3 == null ? "" : ext3); + plModel.setExt4(ext4 == null ? "" : ext4); + plModel.setExt5(ext5 == null ? "" : ext5); + plModel.setExt6(ext6 == null ? "" : ext6); + PALRepositoryCache.getCache().put(uuid, plModel); + } + return r; + } + /** * 更新创建人、修改人、创建时间、修改时间字段内容 * @param uuid