Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner
This commit is contained in:
@@ -39,9 +39,24 @@ public interface HyContentInfoMapper {
|
||||
*/
|
||||
List<HyContentInfoVO> queryContentList(ContentQueryListDto dto);
|
||||
|
||||
|
||||
/**
|
||||
* B 端使用的动态查询
|
||||
*/
|
||||
List<HyContentInfoVO> queryContentListForB(ContentQueryListDto dto);
|
||||
|
||||
/**
|
||||
* 根据contentId查询动态详情
|
||||
*/
|
||||
HyContentInfoDO queryContentInfo(@Param("contentId") String contentId);
|
||||
|
||||
/**
|
||||
* 标题是否重复
|
||||
*/
|
||||
Boolean whetherTitleDuplicated(@Param("contentTitle") String contentTitle);
|
||||
|
||||
/**
|
||||
* 查询动态标题
|
||||
*/
|
||||
List<String> queryTitles();
|
||||
}
|
||||
@@ -179,6 +179,29 @@
|
||||
and user_id = #{updateUserId}
|
||||
</select>
|
||||
|
||||
<!-- B 端使用的动态查询 -->
|
||||
<select id="queryContentListForB" resultType="com.cool.store.vo.HyContentInfoVO">
|
||||
select <include refid="Base_Column_List"></include>
|
||||
from hy_content_info
|
||||
where deleted = 0
|
||||
and status = 1
|
||||
<if test="contentTitle != null and contentTitle != ''">
|
||||
and content_title like concat('%', #{contentTitle}, '%')
|
||||
</if>
|
||||
<if test="subject != null">
|
||||
and subject = #{subject}
|
||||
</if>
|
||||
<if test="contentType != null">
|
||||
and content_type = #{contentType}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
and update_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
and update_time <= #{endTime}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询动态详情 -->
|
||||
<select id="queryContentInfo" resultType="com.cool.store.entity.HyContentInfoDO">
|
||||
select <include refid="Base_Column_List"></include>
|
||||
@@ -186,4 +209,19 @@
|
||||
where deleted = 0
|
||||
and id = #{contentId}
|
||||
</select>
|
||||
|
||||
<!-- 标题是否重复 -->
|
||||
<select id="whetherTitleDuplicated" resultType="java.lang.Boolean">
|
||||
SELECT COUNT(*)
|
||||
FROM hy_content_info
|
||||
WHERE deleted = 0
|
||||
AND content_title = #{contentTitle}
|
||||
</select>
|
||||
|
||||
<!-- 获取所有标题 -->
|
||||
<select id="queryTitles" resultType="java.lang.String">
|
||||
SELECT content_title
|
||||
FROM hy_content_info
|
||||
WHERE deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user