动态相关Bug

This commit is contained in:
pserimal
2023-06-29 20:59:32 +08:00
parent 6d464d7bb9
commit 380ae40da6
7 changed files with 25 additions and 10 deletions

View File

@@ -41,9 +41,9 @@ public interface HyContentInfoMapper {
/**
* B 端使用的动态查询
* C 端使用的动态查询
*/
List<HyContentInfoVO> queryContentListForB(ContentQueryListDto dto);
List<HyContentInfoVO> queryContentListForC(ContentQueryListDto dto);
/**
* 根据contentId查询动态详情

View File

@@ -24,7 +24,7 @@
</resultMap>
<sql id="Base_Column_List">
id, content_title, subject, content_type, cover, content, status, deleted, create_time, update_time,
id, content_title, `subject`, content_type, cover, content, `status`, deleted, create_time, update_time,
create_user_id, update_user_id
</sql>
<sql id="Blob_Column_List">
@@ -165,6 +165,7 @@
<if test="endTime != null and endTime != ''">
and update_time &lt;= #{endTime}
</if>
order by update_time desc
</select>
<select id="getUpdateUserName" resultType="string">
select name
@@ -179,12 +180,12 @@
and user_id = #{updateUserId}
</select>
<!-- B 端使用的动态查询 -->
<select id="queryContentListForB" resultType="com.cool.store.vo.HyContentInfoVO">
<!-- C 端使用的动态查询 -->
<select id="queryContentListForC" resultType="com.cool.store.vo.HyContentInfoVO">
select <include refid="Base_Column_List"></include>
from hy_content_info
where deleted = 0
and status = 1
and status = 0
<if test="contentTitle != null and contentTitle != ''">
and content_title like concat('%', #{contentTitle}, '%')
</if>
@@ -200,6 +201,7 @@
<if test="endTime != null and endTime != ''">
and update_time &lt;= #{endTime}
</if>
order by update_time desc
</select>
<!-- 查询动态详情 -->