| | |
| | |
|
| | | /**
|
| | | * 批量归档
|
| | | *
|
| | | * @param fs
|
| | | * @throws BaseException
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 人员高级参照解析并保存
|
| | | *
|
| | | * @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;
|
| | | }
|
| | | }
|
| | |
|
| | | }
|