文档库--详情
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
+10
@@ -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->{
|
||||
|
||||
Reference in New Issue
Block a user