|
@@ -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>
|