|
|
@@ -25,12 +25,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="forbidSendStart" column="forbid_send_start" />
|
|
|
<result property="forbidSendEnd" column="forbid_send_end" />
|
|
|
<result property="forbidStatus" column="forbid_status" />
|
|
|
+ <result property="sendCourseStatus" column="send_course_status" />
|
|
|
+ <result property="courseId" column="course_id" />
|
|
|
</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
|
|
|
+ forbid_send_end,forbid_status,send_course_status,course_id
|
|
|
from fastgpt_role
|
|
|
</sql>
|
|
|
|
|
|
@@ -85,6 +87,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
role_id as roleId,role_name as roleName,mode_config_json as appKey
|
|
|
from fastgpt_role
|
|
|
</select>
|
|
|
+ <select id="selectAllCourseList" resultType="com.fs.course.domain.FsUserCourseVideo">
|
|
|
+ SELECT f2.video_id,f2.title FROM `fs_user_course` f1 left join fs_user_course_video f2 on f1.course_id = f2.course_id
|
|
|
+ where find_in_set(#{companyId},f1.company_ids)
|
|
|
+ ORDER BY f1.course_id,f2.video_id
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
<insert id="insertFastGptRole" parameterType="FastGptRole" useGeneratedKeys="true" keyProperty="roleId">
|
|
|
@@ -143,6 +150,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="channelType != null">channel_type = #{channelType},</if>
|
|
|
<if test="logistics != null">logistics = #{logistics},</if>
|
|
|
<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>
|
|
|
</trim>
|
|
|
where role_id = #{roleId}
|
|
|
</update>
|