|
@ -154,11 +154,11 @@ public class ArchivesServiceImpl implements ArchivesService { |
|
|
insertFiled +=archivesDictionary.getFieldName()+","; |
|
|
insertFiled +=archivesDictionary.getFieldName()+","; |
|
|
insertValue += archivesDictionary.getIsDataType() == 1 ? |
|
|
insertValue += archivesDictionary.getIsDataType() == 1 ? |
|
|
null == json.get(archivesDictionary.getFieldName()) || "null".equals(json.get(archivesDictionary.getFieldName())+"") ? null+"," : "'"+json.get(archivesDictionary.getFieldName())+"'," |
|
|
null == json.get(archivesDictionary.getFieldName()) || "null".equals(json.get(archivesDictionary.getFieldName())+"") ? null+"," : "'"+json.get(archivesDictionary.getFieldName())+"'," |
|
|
: json.get(archivesDictionary.getFieldName()) +","; |
|
|
|
|
|
|
|
|
: StringUtils.isEmpty(json.get(archivesDictionary.getFieldName())+"") ? null +"," : json.get(archivesDictionary.getFieldName()) +","; |
|
|
}else { |
|
|
}else { |
|
|
String thisValue = archivesDictionary.getIsDataType() == 1 ? |
|
|
String thisValue = archivesDictionary.getIsDataType() == 1 ? |
|
|
json.get(archivesDictionary.getFieldName()) == null || "null".equals(json.get(archivesDictionary.getFieldName())+"") ? null : "'" + json.get(archivesDictionary.getFieldName()) + "'" |
|
|
json.get(archivesDictionary.getFieldName()) == null || "null".equals(json.get(archivesDictionary.getFieldName())+"") ? null : "'" + json.get(archivesDictionary.getFieldName()) + "'" |
|
|
: json.get(archivesDictionary.getFieldName()) + ""; |
|
|
|
|
|
|
|
|
: StringUtils.isEmpty(json.get(archivesDictionary.getFieldName())+"") ? null : json.get(archivesDictionary.getFieldName()) + ""; |
|
|
updateValue += archivesDictionary.getFieldName() + "=" + thisValue + ","; |
|
|
updateValue += archivesDictionary.getFieldName() + "=" + thisValue + ","; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -207,7 +207,7 @@ public class ArchivesServiceImpl implements ArchivesService { |
|
|
archivesSummary.setRetention(json.get("retention")==null?null:json.get("retention")+""); |
|
|
archivesSummary.setRetention(json.get("retention")==null?null:json.get("retention")+""); |
|
|
//归档年度 |
|
|
//归档年度 |
|
|
if(filedNameList.contains("archive_year")) |
|
|
if(filedNameList.contains("archive_year")) |
|
|
archivesSummary.setArchiveYear(json.get("archive_year")==null?null:Integer.parseInt(json.get("archive_year")+"")); |
|
|
|
|
|
|
|
|
archivesSummary.setArchiveYear(json.get("archive_year")==null || "".equals(json.get("archive_year")) ? null:Integer.parseInt(json.get("archive_year")+"")); |
|
|
//责任人 |
|
|
//责任人 |
|
|
if(filedNameList.contains("responsibleby")) |
|
|
if(filedNameList.contains("responsibleby")) |
|
|
archivesSummary.setResponsibleby(json.get("responsibleby")==null?null:json.get("responsibleby")+""); |
|
|
archivesSummary.setResponsibleby(json.get("responsibleby")==null?null:json.get("responsibleby")+""); |
|
@ -232,6 +232,7 @@ public class ArchivesServiceImpl implements ArchivesService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Object editFile(ArchivesDTO dto) { |
|
|
public Object editFile(ArchivesDTO dto) { |
|
|
|
|
|
|
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|