提成优化,视频管理优化

This commit is contained in:
xiezhijun
2021-05-06 19:53:31 +08:00
parent 79f1b9b23c
commit 9f2b055dee
13 changed files with 179 additions and 47 deletions

View File

@ -115,6 +115,12 @@
<where>
<if test="postId != null and postId != ''">and post_id = #{postId}</if>
<if test="userId != null and userId != ''">and user_id = #{userId}</if>
<if test="userIds != null">
and user_id in
<foreach item="id" collection="userIds" open="(" separator="," close=")">
#{id}
</foreach>
</if>
</where>
</select>
@ -213,4 +219,11 @@
<if test="postId != null and postId != ''">and sp.post_id = #{postId}</if>
<if test="userId != null and userId != ''">and su.user_id = #{userId}</if>
</select>
<select id="getAfterSaleId" parameterType="SysCommision" resultType="Long">
SELECT su.user_id FROM sys_user su
LEFT JOIN sys_user_post sup ON sup.user_id = su.user_id
LEFT JOIN sys_post sp ON sp.post_id = sup.post_id
WHERE su.del_flag = 0 and sp.post_id = #{postId}
</select>
</mapper>