咨询
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
content
|
||||
</sql>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into hy_content_info
|
||||
insert into xfsg_content_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="record.contentTitle != null">
|
||||
content_title,
|
||||
@@ -101,7 +101,7 @@
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective">
|
||||
update hy_content_info
|
||||
update xfsg_content_info
|
||||
<set>
|
||||
<if test="record.contentTitle != null and record.contentTitle != ''">
|
||||
content_title = #{record.contentTitle},
|
||||
@@ -140,7 +140,7 @@
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
<update id="deleteSelective">
|
||||
update hy_content_info
|
||||
update xfsg_content_info
|
||||
<set>
|
||||
deleted = 1
|
||||
</set>
|
||||
@@ -148,7 +148,7 @@
|
||||
</update>
|
||||
<select id="queryContentList" resultMap="HyContentInfoVOList">
|
||||
select <include refid="Base_Column_List"></include>, update_user_id updateUserId
|
||||
from hy_content_info
|
||||
from xfsg_content_info
|
||||
where deleted = 0
|
||||
<if test="contentTitle != null and contentTitle != ''">
|
||||
and content_title like concat('%', #{contentTitle}, '%')
|
||||
@@ -183,7 +183,7 @@
|
||||
<!-- C 端使用的动态查询 -->
|
||||
<select id="queryContentListForC" resultType="com.cool.store.vo.HyContentInfoVO">
|
||||
select <include refid="Base_Column_List"></include>
|
||||
from hy_content_info
|
||||
from xfsg_content_info
|
||||
where deleted = 0
|
||||
and status = 0
|
||||
<if test="contentTitle != null and contentTitle != ''">
|
||||
@@ -207,7 +207,7 @@
|
||||
<!-- 查询动态详情 -->
|
||||
<select id="queryContentInfo" resultType="com.cool.store.entity.HyContentInfoDO">
|
||||
select <include refid="Base_Column_List"></include>
|
||||
from hy_content_info
|
||||
from xfsg_content_info
|
||||
where deleted = 0
|
||||
and id = #{contentId}
|
||||
</select>
|
||||
@@ -215,7 +215,7 @@
|
||||
<!-- 标题是否重复 -->
|
||||
<select id="whetherTitleDuplicated" resultType="java.lang.Boolean">
|
||||
SELECT COUNT(*)
|
||||
FROM hy_content_info
|
||||
FROM xfsg_content_info
|
||||
WHERE deleted = 0
|
||||
AND content_title = #{contentTitle}
|
||||
</select>
|
||||
@@ -223,7 +223,7 @@
|
||||
<!-- 获取所有标题 -->
|
||||
<select id="queryTitles" resultType="java.lang.String">
|
||||
SELECT content_title
|
||||
FROM hy_content_info
|
||||
FROM xfsg_content_info
|
||||
WHERE deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user