4
0
Эх сурвалжийг харах

作者:张哲
时间:2023/02/24
类型:开发
描述:里程碑(2)地图详情增加了附件ID

ZizgZh 2 жил өмнө
parent
commit
18fde09238

+ 3 - 0
src/main/java/com/redxun/knowledge/map/entity/vo/MapContentVo.java

@@ -77,4 +77,7 @@ public class MapContentVo implements Serializable {
 
     //附件类型
     private String attachmentType;
+
+    //附件Id
+    private String attachment;
 }

+ 2 - 0
src/main/java/com/redxun/knowledge/map/service/MapServiceImpl.java

@@ -227,6 +227,7 @@ public class MapServiceImpl extends SuperServiceImpl<MapMapper, Map> implements
                                 mapContentVo.setAuthor(knowledge.getAuthor());
                                 mapContentVo.setCreateTime(knowledge.getCreateTime());
                                 mapContentVo.setViews(knowledge.getViews());
+                                mapContentVo.setAttachment(knowledge.getAttachment());
                                 // 有文件,截取文件名后缀
                                 String attachmentName = knowledge.getAttachmentName();
                                 if (attachmentName != null){
@@ -387,6 +388,7 @@ public class MapServiceImpl extends SuperServiceImpl<MapMapper, Map> implements
                                         content.setAuthor(knowledge.getAuthor());
                                         content.setCreateTime(knowledge.getCreateTime());
                                         content.setViews(knowledge.getViews());
+                                        content.setAttachment(knowledge.getAttachment());
                                         // 有文件,截取文件名后缀
                                         String attachmentName = knowledge.getAttachmentName();
                                         if (attachmentName != null){