瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/zhiyuxing/estateagents

胡轶钦 5 年之前
父節點
當前提交
dd3db6a3b5

+ 5
- 0
src/main/java/com/huiju/estateagents/entity/TaNews.java 查看文件

101
      */
101
      */
102
     private Integer saveNum;
102
     private Integer saveNum;
103
 
103
 
104
+    /**
105
+     * 分享数量
106
+     */
107
+    private Integer shareNum;
108
+
104
     /**
109
     /**
105
      * 类型
110
      * 类型
106
      */
111
      */

+ 3
- 1
src/main/resources/mapper/TaPersonMapper.xml 查看文件

256
                 tpvr.visit_time AS visit_time
256
                 tpvr.visit_time AS visit_time
257
             FROM
257
             FROM
258
                ta_person tp
258
                ta_person tp
259
-            INNER JOIN ta_person_visit_record tpvr ON tp.person_id = tpvr.person_id
259
+             LEFT JOIN
260
+            ( SELECT * FROM ta_person_visit_record GROUP BY  person_id  ) as tpvr
261
+            ON tp.person_id = tpvr.person_id
260
              where ifnull(tp.person_type, '') != #{personType}
262
              where ifnull(tp.person_type, '') != #{personType}
261
         ) AS temp ON temp_date.date = DATE_FORMAT( temp.visit_time , '%Y-%m-%d' )
263
         ) AS temp ON temp_date.date = DATE_FORMAT( temp.visit_time , '%Y-%m-%d' )
262
     </select>
264
     </select>