Aslee 3 lat temu
rodzic
commit
e3cf93d6be

+ 6 - 0
src/main/java/com/caimei/www/pojo/baike/BaikeProduct.java

@@ -127,6 +127,12 @@ public class BaikeProduct implements Serializable {
      * 分类名称
      */
     private String typeName;
+
+    /**
+     * 浏览量
+     */
+    private Integer pv;
+
     /**
      * 参数列表
      */

+ 1 - 2
src/main/resources/mapper/BaikeMapper.xml

@@ -30,8 +30,7 @@
 			   a.unAdaptiveMan   AS "unAdaptiveMan",
 			   a.aroundOperation AS "aroundOperation",
 			   a.publishTime     AS "publishTime",
-			   a.basePv          AS "basePv",
-			   a.actualPv        AS "actualPv",
+			   ifnull(a.basePv,0)+ifnull(a.actualPv,0) AS "pv",
 			   a.typeId          AS "typeId",
 			   a.topPosition     AS "topPosition",
 			   a.status          AS "status",