|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.fs.course.mapper.FsUserTalentFollowMapper">
|
|
<mapper namespace="com.fs.course.mapper.FsUserTalentFollowMapper">
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<resultMap type="FsUserTalentFollow" id="FsUserTalentFollowResult">
|
|
<resultMap type="FsUserTalentFollow" id="FsUserTalentFollowResult">
|
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
|
<result property="userId" column="user_id" />
|
|
<result property="userId" column="user_id" />
|
|
@@ -18,12 +18,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
<select id="selectFsUserTalentFollowList" parameterType="FsUserTalentFollow" resultMap="FsUserTalentFollowResult">
|
|
<select id="selectFsUserTalentFollowList" parameterType="FsUserTalentFollow" resultMap="FsUserTalentFollowResult">
|
|
|
<include refid="selectFsUserTalentFollowVo"/>
|
|
<include refid="selectFsUserTalentFollowVo"/>
|
|
|
- <where>
|
|
|
|
|
|
|
+ <where>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
<if test="talentId != null "> and talent_id = #{talentId}</if>
|
|
<if test="talentId != null "> and talent_id = #{talentId}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<select id="selectFsUserTalentFollowById" parameterType="Long" resultMap="FsUserTalentFollowResult">
|
|
<select id="selectFsUserTalentFollowById" parameterType="Long" resultMap="FsUserTalentFollowResult">
|
|
|
<include refid="selectFsUserTalentFollowVo"/>
|
|
<include refid="selectFsUserTalentFollowVo"/>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -95,9 +95,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
<delete id="deleteFsUserTalentFollowByIds" parameterType="String">
|
|
<delete id="deleteFsUserTalentFollowByIds" parameterType="String">
|
|
|
- delete from fs_user_talent_follow where id in
|
|
|
|
|
|
|
+ delete from fs_user_talent_follow where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</delete>
|
|
</delete>
|
|
|
-</mapper>
|
|
|
|
|
|
|
+</mapper>
|