|
@@ -6,6 +6,9 @@
|
|
|
|
|
|
|
|
<resultMap type="com.fs.qw.domain.QwCourseLinkSendMsgLog" id="QwCourseLinkSendMsgLogResult">
|
|
<resultMap type="com.fs.qw.domain.QwCourseLinkSendMsgLog" id="QwCourseLinkSendMsgLogResult">
|
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
|
|
|
+ <result property="companySmsLogsId" column="company_sms_logs_id" />
|
|
|
|
|
+ <result property="courseId" column="course_id" />
|
|
|
|
|
+ <result property="videoId" column="video_id" />
|
|
|
<result property="number" column="number" />
|
|
<result property="number" column="number" />
|
|
|
<result property="tempId" column="temp_id" />
|
|
<result property="tempId" column="temp_id" />
|
|
|
<result property="externalContactId" column="external_contact_id" />
|
|
<result property="externalContactId" column="external_contact_id" />
|
|
@@ -19,12 +22,15 @@
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectQwCourseLinkSendMsgLogVo">
|
|
<sql id="selectQwCourseLinkSendMsgLogVo">
|
|
|
- select id, number, temp_id, external_contact_id, type, phone, content, result, remark, create_by, create_time from qw_course_link_send_msg_log
|
|
|
|
|
|
|
+ select id,company_sms_logs_id,course_id,video_id, number, temp_id, external_contact_id, type, phone, content, result, remark, create_by, create_time from qw_course_link_send_msg_log
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectQwCourseLinkSendMsgLogList" parameterType="com.fs.qw.domain.QwCourseLinkSendMsgLog" resultMap="QwCourseLinkSendMsgLogResult">
|
|
<select id="selectQwCourseLinkSendMsgLogList" parameterType="com.fs.qw.domain.QwCourseLinkSendMsgLog" resultMap="QwCourseLinkSendMsgLogResult">
|
|
|
<include refid="selectQwCourseLinkSendMsgLogVo"/>
|
|
<include refid="selectQwCourseLinkSendMsgLogVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ <if test="companySmsLogsId != null and companySmsLogsId != ''"> and company_sms_logs_id = #{companySmsLogsId}</if>
|
|
|
|
|
+ <if test="courseId != null and courseId != ''"> and course_id = #{courseId}</if>
|
|
|
|
|
+ <if test="videoId != null and videoId != ''"> and video_id = #{videoId}</if>
|
|
|
<if test="number != null "> and number = #{number}</if>
|
|
<if test="number != null "> and number = #{number}</if>
|
|
|
<if test="tempId != null "> and temp_id = #{tempId}</if>
|
|
<if test="tempId != null "> and temp_id = #{tempId}</if>
|
|
|
<if test="externalContactId != null "> and external_contact_id = #{externalContactId}</if>
|
|
<if test="externalContactId != null "> and external_contact_id = #{externalContactId}</if>
|
|
@@ -45,6 +51,9 @@
|
|
|
<insert id="insertQwCourseLinkSendMsgLog" parameterType="com.fs.qw.domain.QwCourseLinkSendMsgLog" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertQwCourseLinkSendMsgLog" parameterType="com.fs.qw.domain.QwCourseLinkSendMsgLog" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into qw_course_link_send_msg_log
|
|
insert into qw_course_link_send_msg_log
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="companySmsLogsId != null and companySmsLogsId != ''">company_sms_logs_id,</if>
|
|
|
|
|
+ <if test="courseId != null and courseId != ''">course_id,</if>
|
|
|
|
|
+ <if test="videoId != null and videoId != ''">video_id,</if>
|
|
|
<if test="number != null">number,</if>
|
|
<if test="number != null">number,</if>
|
|
|
<if test="tempId != null">temp_id,</if>
|
|
<if test="tempId != null">temp_id,</if>
|
|
|
<if test="externalContactId != null">external_contact_id,</if>
|
|
<if test="externalContactId != null">external_contact_id,</if>
|
|
@@ -57,6 +66,9 @@
|
|
|
create_time,
|
|
create_time,
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <if test="companySmsLogsId != null and companySmsLogsId != ''">#{companySmsLogsId},</if>
|
|
|
|
|
+ <if test="courseId != null and courseId != ''">#{courseId},</if>
|
|
|
|
|
+ <if test="videoId != null and videoId != ''">#{videoId},</if>
|
|
|
<if test="number != null">#{number},</if>
|
|
<if test="number != null">#{number},</if>
|
|
|
<if test="tempId != null">#{tempId},</if>
|
|
<if test="tempId != null">#{tempId},</if>
|
|
|
<if test="externalContactId != null">#{externalContactId},</if>
|
|
<if test="externalContactId != null">#{externalContactId},</if>
|
|
@@ -73,6 +85,9 @@
|
|
|
<update id="updateQwCourseLinkSendMsgLog" parameterType="com.fs.qw.domain.QwCourseLinkSendMsgLog">
|
|
<update id="updateQwCourseLinkSendMsgLog" parameterType="com.fs.qw.domain.QwCourseLinkSendMsgLog">
|
|
|
update qw_course_link_send_msg_log
|
|
update qw_course_link_send_msg_log
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
+ <if test="companySmsLogsId != null and companySmsLogsId != ''">company_sms_logs_id = #{companySmsLogsId},</if>
|
|
|
|
|
+ <if test="courseId != null and courseId != ''">course_id = #{courseId},</if>
|
|
|
|
|
+ <if test="videoId != null and videoId != ''">video_id = #{videoId},</if>
|
|
|
<if test="number != null">number = #{number},</if>
|
|
<if test="number != null">number = #{number},</if>
|
|
|
<if test="tempId != null">temp_id = #{tempId},</if>
|
|
<if test="tempId != null">temp_id = #{tempId},</if>
|
|
|
<if test="externalContactId != null">external_contact_id = #{externalContactId},</if>
|
|
<if test="externalContactId != null">external_contact_id = #{externalContactId},</if>
|