|
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserTalentVo">
|
|
<sql id="selectFsUserTalentVo">
|
|
- select talent_id, user_id, create_time, update_time, nick_name, avatar, phone, title, sex, tags, address, level, fans, likes, is_del, tiktok_link, kwai_link, is_audit, audit_time, certificate_code, certificate_images, balance, total_money, freeze_money, extract_money from fs_user_talent
|
|
|
|
|
|
+ select talent_id, user_id, create_time, update_time, nick_name, avatar, phone, title, sex, tags, address, level, fans, likes, is_del, tiktok_link, kwai_link, is_audit, audit_time, certificate_code, certificate_images, balance, total_money, freeze_money, extract_money,company_id from fs_user_talent
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserTalentList" parameterType="FsUserTalent" resultMap="FsUserTalentResult">
|
|
<select id="selectFsUserTalentList" parameterType="FsUserTalent" resultMap="FsUserTalentResult">
|
|
@@ -62,6 +62,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="totalMoney != null "> and total_money = #{totalMoney}</if>
|
|
<if test="totalMoney != null "> and total_money = #{totalMoney}</if>
|
|
<if test="freezeMoney != null "> and freeze_money = #{freezeMoney}</if>
|
|
<if test="freezeMoney != null "> and freeze_money = #{freezeMoney}</if>
|
|
<if test="extractMoney != null "> and extract_money = #{extractMoney}</if>
|
|
<if test="extractMoney != null "> and extract_money = #{extractMoney}</if>
|
|
|
|
+ <if test="companyId != null "> and company_id = #{companyId}</if>
|
|
|
|
+ <if test="companyIdStr != null and companyIdStr != ''">
|
|
|
|
+ and company_id in (#{companyIdStr})
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -97,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="totalMoney != null">total_money,</if>
|
|
<if test="totalMoney != null">total_money,</if>
|
|
<if test="freezeMoney != null">freeze_money,</if>
|
|
<if test="freezeMoney != null">freeze_money,</if>
|
|
<if test="extractMoney != null">extract_money,</if>
|
|
<if test="extractMoney != null">extract_money,</if>
|
|
|
|
+ <if test="companyId != null">company_id,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -123,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="totalMoney != null">#{totalMoney},</if>
|
|
<if test="totalMoney != null">#{totalMoney},</if>
|
|
<if test="freezeMoney != null">#{freezeMoney},</if>
|
|
<if test="freezeMoney != null">#{freezeMoney},</if>
|
|
<if test="extractMoney != null">#{extractMoney},</if>
|
|
<if test="extractMoney != null">#{extractMoney},</if>
|
|
|
|
+ <if test="companyId != null">#{companyId},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -153,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="totalMoney != null">total_money = #{totalMoney},</if>
|
|
<if test="totalMoney != null">total_money = #{totalMoney},</if>
|
|
<if test="freezeMoney != null">freeze_money = #{freezeMoney},</if>
|
|
<if test="freezeMoney != null">freeze_money = #{freezeMoney},</if>
|
|
<if test="extractMoney != null">extract_money = #{extractMoney},</if>
|
|
<if test="extractMoney != null">extract_money = #{extractMoney},</if>
|
|
|
|
+ <if test="companyId != null">company_id = #{companyId},</if>
|
|
</trim>
|
|
</trim>
|
|
where talent_id = #{talentId}
|
|
where talent_id = #{talentId}
|
|
</update>
|
|
</update>
|