文档库--详情

This commit is contained in:
zhn
2022-02-22 15:53:40 +08:00
parent fc5e2e9de3
commit f616029e95
2 changed files with 14 additions and 4 deletions
@@ -204,8 +204,8 @@ public class BussDocumentLibraryEOController extends JeroController<BussDocument
* @param id
* @return
*/
@AutoLog(value = "详情,编辑数据查询")
@ApiOperation(value="详情,编辑数据查询", notes="详情,编辑数据查询")
@AutoLog(value = "编辑数据查询")
@ApiOperation(value="编辑数据查询", notes="编辑数据查询")
@GetMapping(value = "/getDocumentInfoById")
public Result<List<Map<String,Object>>> getDocumentInfoById(@RequestParam(name="id",required=true) String id) {
List<Map<String, Object>> list = bussDocumentLibraryEOService.getDocumentInfoById(id);
@@ -216,8 +216,8 @@ public class BussDocumentLibraryEOController extends JeroController<BussDocument
* @param id
* @return
*/
@AutoLog(value = "详情,编辑数据查询")
@ApiOperation(value="详情,编辑数据查询", notes="详情,编辑数据查询")
@AutoLog(value = "详情数据查询")
@ApiOperation(value="详情数据查询", notes="详情数据查询")
@GetMapping(value = "/getInfoById")
public Result<List<Map<String,Object>>> getInfoById(@RequestParam(name="id",required=true) String id) {
List<Map<String, Object>> list = bussDocumentLibraryEOService.getInfoById(id);
@@ -269,6 +269,16 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
List<Map<String,Object>> resultTemp = new ArrayList<>();
List<OnlCgformField> fieldListTemp = fieldList.stream().filter(e->onlCgformAreaTemp.getId().equals(e.getShowArea())).collect(Collectors.toList());
for (OnlCgformField onlCgformField : fieldListTemp) {
//处理文件
String dbFieldName = onlCgformField.getDbFieldName();
String value = (String) dataList.get(0).get(dbFieldName);
if(StringUtils.isNotBlank(value)){
List<OSSFile> fileInfos = iOSSFileService.getFileInfosByConnectId(value);
if(fileInfos.size() != 0){
dataList.get(0).put(dbFieldName +"_file",fileInfos);
}
}
Map<String,Object> map = new HashMap<>();
if(dataList.size() != 0){
dataList.get(0).entrySet().forEach(entry->{