Browse Source

推文攻略页面添加发布人id

liu 2 years ago
parent
commit
9a673e2b41

+ 1 - 1
mhotel/src/com/happy/dao/impl/ArticleTweetImplDao.java

@@ -744,7 +744,7 @@ public class ArticleTweetImplDao implements ArticleTweetDao {
     public List<WalkthroughVo> walkthroughPage(String strSql, Integer page, Integer rows) {
         int start = (page - 1) * rows;// 每页的起始下标
 
-        String sql=" SELECT AT.id AS id, AT.location_id AS locationId, AT\n" +
+        String sql=" SELECT AT.id AS id, AT.location_id AS locationId,AT.user_id AS userId, AT\n" +
                 "\t.user_name AS userName,\n" +
                 "\tAT.title AS title,\n" +
                 "\tAT.content AS content,\n" +

+ 51 - 0
mhotel/src/com/happy/vo/WalkthroughVo.java

@@ -0,0 +1,51 @@
+package com.happy.vo;
+
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class WalkthroughVo {
+    /**
+     * 推文id
+     */
+    private int id;
+
+    /**
+     * 标题
+     */
+    private String title;
+
+    /**
+     * 内容
+     */
+    private String content;
+
+    /**
+     * 图片,视频
+     */
+    private List<String> urls;
+
+
+    /**
+     * 创建时间
+     */
+    private Date createDate;
+
+
+    /**
+     * 用户名称
+     */
+    private String userName;
+
+    /**
+     * 乡镇ID
+     */
+    private String locationId;
+
+    /**
+     * 推文发送人ID
+     */
+    private int userId;
+}