|
|
@@ -27,12 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="forbidStatus" column="forbid_status" />
|
|
|
<result property="sendCourseStatus" column="send_course_status" />
|
|
|
<result property="courseId" column="course_id" />
|
|
|
+ <result property="userInfo" column="user_info" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFastGptRoleVo">
|
|
|
select role_id, role_name,contact_info,company_id, create_time, update_time, role_type, mode_config_json,
|
|
|
mode, kf_id, kf_url, avatar, kf_media_id,reminder_words, bind_corp_id,channel_type,logistics,forbid_send_start,
|
|
|
- forbid_send_end,forbid_status,send_course_status,course_id
|
|
|
+ forbid_send_end,forbid_status,send_course_status,course_id,user_info
|
|
|
from fastgpt_role
|
|
|
</sql>
|
|
|
|
|
|
@@ -111,6 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reminderWords != null">reminder_words,</if>
|
|
|
<if test="bindCorpId != null">bind_corp_id,</if>
|
|
|
<if test="contactInfo != null">contact_info,</if>
|
|
|
+ <if test="userInfo != null">user_info,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="roleName != null">#{roleName},</if>
|
|
|
@@ -127,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reminderWords != null">#{reminderWords},</if>
|
|
|
<if test="bindCorpId != null">#{bindCorpId},</if>
|
|
|
<if test="contactInfo != null">#{contactInfo},</if>
|
|
|
+ <if test="userInfo != null">#{userInfo},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -152,6 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="forbidStatus != null">forbid_status = #{forbidStatus},</if>
|
|
|
<if test="sendCourseStatus != null">send_course_status = #{sendCourseStatus},</if>
|
|
|
<if test="courseId != null">course_id = #{courseId},</if>
|
|
|
+ <if test="userInfo != null">user_info = #{userInfo},</if>
|
|
|
</trim>
|
|
|
where role_id = #{roleId}
|
|
|
</update>
|