|
@@ -52,18 +52,21 @@
|
|
|
<if test="state != null">
|
|
|
AND state = #{state}
|
|
|
</if>
|
|
|
+ <if test="user_id != null">
|
|
|
+ AND user_id = #{userId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY create_time DESC
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryAllChannelItemByProjectId" resultType="cn.com.ctop.kuaishou.modules.channel.entity.KuaishouChannelItems">
|
|
|
- SELECT
|
|
|
- id,
|
|
|
- item_name,
|
|
|
- keyword
|
|
|
+ <select id="queryAllChannelItemByProjectId"
|
|
|
+ resultType="cn.com.ctop.kuaishou.modules.channel.entity.KuaishouChannelItems">
|
|
|
+ SELECT id,
|
|
|
+ item_name,
|
|
|
+ keyword
|
|
|
FROM ctop_kuaishou_channel_items
|
|
|
WHERE project_id = #{projectId}
|
|
|
- AND state = 1
|
|
|
+ AND state = 1
|
|
|
ORDER BY create_time DESC
|
|
|
</select>
|
|
|
|
|
@@ -71,15 +74,14 @@
|
|
|
SELECT item_name
|
|
|
FROM ctop_kuaishou_channel_items
|
|
|
WHERE project_id = #{projectId}
|
|
|
- AND item_name = #{itemName}
|
|
|
- limit 1
|
|
|
+ AND item_name = #{itemName} limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="queryItemsByChannelCode" resultType="cn.com.ctop.kuaishou.modules.channel.entity.KuaishouChannelItems">
|
|
|
- SELECT item_name,project_id,project_name,state,keyword
|
|
|
+ SELECT item_name, project_id, project_name, state, keyword
|
|
|
FROM ctop_kuaishou_channel_items
|
|
|
WHERE project_id = #{projectId}
|
|
|
- AND channel_code = #{channelCode}
|
|
|
+ AND channel_code = #{channelCode}
|
|
|
</select>
|
|
|
|
|
|
|