Selaa lähdekoodia

Merge remote-tracking branch 'origin/developer' into developer

huangzhiguo 1 vuosi sitten
vanhempi
commit
d4fcab61ca

+ 1 - 4
src/main/resources/mappings/modules/landing/CmBrandLandingMapper.xml

@@ -116,10 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
 
     <select id="selectCmBrandLandingById" parameterType="String" resultMap="CmBrandLandingResult">
-        <include refid="selectCmBrandLandingVo"/>,
-        <if test="statisticsType != null  and statisticsType != ''">
-            ,IFNULL((select sum(c.pv) from cm_praise_statistics c where  c.delFlag = 0 and c.type = #{statisticsType} and a.id = c.authorId  <if test="startPvCreateTime != null ">AND c.createTime >= #{startPvCreateTime} </if><if test="endPvCreateTime != null ">AND c.createTime <![CDATA[ <= ]]> #{endPvCreateTime} </if>), 0) as pv
-        </if>
+        <include refid="selectCmBrandLandingVo"/>
         from cm_brand_landing a
         where id = #{id} and delFlag = 0
     </select>