354798ggg
2023-08-29 fd0c7c174d7b7313aa49061df05350405a3c1bf1
home-server-admin/src/main/java/com/home/xining/service/SendDocumentService.java
@@ -56,6 +56,7 @@
    /**
     * 批量归档
    *
     * @param fs
     * @throws BaseException
     */
@@ -76,25 +77,21 @@
    /**
     * 人员高级参照解析并保存
    *
     * @param fse
     * @throws BaseException
     */
    @Transactional
    @Override
    public String saveFieldSetEntity(FieldSetEntity fse) throws BaseException {
        String fw09 = fse.getString("fw09");
        String[] fw09s = fw09.split(",");
        DataTableEntity dataTableEntity = baseDao.listTable("product_sys_users", BaseUtil.buildQuestionMarkFilter("user_id",fw09s,true), new String[]{});
        String fw09_value = "";
        for (int i = 0; i < dataTableEntity.getRows(); i++) {
            String user_name = dataTableEntity.getString(i,"user_name");
            fw09_value = fw09_value + user_name + ",";
        }
        fw09_value = fw09_value.substring(0, fw09_value.length() - 1);
        fse.setValue("fw09_value", fw09_value);
      try {
        BaseUtil.createCreatorAndCreationTime(fse);
        baseDao.saveFieldSetEntity(fse);
        return fse.getUUID();
      } catch (Exception e) {
         e.printStackTrace();
         throw e;
      }
    }
}