新增校验

This commit is contained in:
RuoYi
2018-05-04 20:25:14 +08:00
parent c7613a9ff5
commit 66a904d71e
41 changed files with 238 additions and 48 deletions

View File

@ -9,10 +9,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="postId" column="post_id" />
</resultMap>
<delete id="deleteUserPostByUserId">
<delete id="deleteUserPostByUserId" parameterType="Long">
delete from sys_user_post where user_id=#{userId}
</delete>
<select id="selectCountPostById" resultType="Integer">
select count(*) from sys_user_post where post_id=#{postId}
</select>
<delete id="deleteUserPost" parameterType="Long">
delete from sys_user_post where user_id in
<foreach collection="array" item="userId" open="(" separator="," close=")">
#{userId}
</foreach>
</delete>
<insert id="batchUserPost">
insert into sys_user_post(user_id, post_id) values
<foreach item="item" index="index" collection="list" separator=",">