新增邮件发送记录编辑接口,邮件记录重新发送接口
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper.shortmessage.MsSendMailHistoryRecordMapper">
|
||||
<resultMap id="BaseResultMap" type="com.ruoyi.system.domain.entity.shortmessage.MsSendMailHistoryRecord">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="mail_name" jdbcType="VARCHAR" property="mailName" />
|
||||
<result column="mail_address" jdbcType="VARCHAR" property="mailAddress" />
|
||||
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
||||
<result column="case_num" jdbcType="VARCHAR" property="caseNum" />
|
||||
<result column="send_status" jdbcType="BIGINT" property="sendStatus" />
|
||||
<result column="case_id" jdbcType="BIGINT" property="caseId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="file_ids" jdbcType="VARCHAR" property="fileIds" />
|
||||
<result column="mail_subject" jdbcType="VARCHAR" property="mailSubject" />
|
||||
<result column="mail_from_address" jdbcType="VARCHAR" property="mailFromAddress" />
|
||||
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
|
||||
<result column="mail_content" jdbcType="LONGVARCHAR" property="mailContent" />
|
||||
</resultMap>
|
||||
</mapper>
|
||||
+34
-19
@@ -5,22 +5,26 @@
|
||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SendMailRecordMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" id="SendMailRecordResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="mailName" column="mail_name" />
|
||||
<result property="mailContent" column="mail_content" />
|
||||
<result property="mailAddress" column="mail_address" />
|
||||
<result property="sendTime" column="send_time" />
|
||||
<result property="caseId" column="case_id" />
|
||||
<result property="caseNum" column="case_num" />
|
||||
<result property="sendStatus" column="send_status" />
|
||||
<id property="id" column="id"/>
|
||||
<result property="mailName" column="mail_name"/>
|
||||
<result property="mailContent" column="mail_content"/>
|
||||
<result property="mailAddress" column="mail_address"/>
|
||||
<result property="sendTime" column="send_time"/>
|
||||
<result property="caseId" column="case_id"/>
|
||||
<result property="caseNum" column="case_num"/>
|
||||
<result property="sendStatus" column="send_status"/>
|
||||
<result property="fileIds" column="file_ids"/>
|
||||
<result property="mailSubject" column="mail_subject"/>
|
||||
<result property="mailFromAddress" column="mail_from_address"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<select id="selectSendMailRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord" resultMap="SendMailRecordResult">
|
||||
<select id="selectSendMailRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SendMailRecord"
|
||||
resultMap="SendMailRecordResult">
|
||||
SELECT s.id ,s.mail_name ,s.mail_content ,s.mail_address ,s.send_time ,s.case_id ,s.create_time ,s.create_by ,
|
||||
s.update_by ,s.update_time , s.send_status ,c.case_num
|
||||
s.update_by ,s.update_time , s.send_status ,s.file_ids ,s.mail_subject ,s.mail_from_address ,c.case_num
|
||||
from ms_send_mail_record s left join ms_case_application c
|
||||
on s.case_id = c.id
|
||||
on s.case_id = c.id
|
||||
<where>
|
||||
<if test="caseNum != null and caseNum != ''">
|
||||
AND c.case_num = #{caseNum}
|
||||
@@ -38,6 +42,9 @@
|
||||
<if test="caseId != null ">case_id,</if>
|
||||
<if test="sendStatus != null ">send_status,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="fileIds != null and fileIds != ''">file_ids,</if>
|
||||
<if test="mailSubject != null and mailSubject != ''">mail_subject,</if>
|
||||
<if test="mailFromAddress != null and mailFromAddress != ''">mail_from_address,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="mailName != null and mailName != ''">#{mailName},</if>
|
||||
@@ -47,15 +54,23 @@
|
||||
<if test="caseId != null ">#{caseId},</if>
|
||||
<if test="sendStatus != null ">#{sendStatus},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="fileIds != null and fileIds != ''">#{fileIds},</if>
|
||||
<if test="mailSubject != null and mailSubject != ''">#{mailSubject},</if>
|
||||
<if test="mailFromAddress != null and mailFromAddress != ''">#{mailFromAddress},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<update id="updateSendMailRecord">
|
||||
update ms_send_mail_record
|
||||
set mail_content= #{mailContent},
|
||||
update_time=#{updateTime},
|
||||
send_time=#{sendTime},
|
||||
send_status=#{sendStatus}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<select id="querySendMailRecordById" resultMap="SendMailRecordResult">
|
||||
select *
|
||||
from ms_send_mail_record
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
+45
-35
@@ -5,20 +5,21 @@
|
||||
|
||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper">
|
||||
<resultMap type="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" id="SmsSendRecordResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="caseId" column="case_appli_id" />
|
||||
<result property="caseNum" column="case_num" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="sendTime" column="send_time" />
|
||||
<result property="sendContent" column="send_content" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="sendStatus" column="send_status" />
|
||||
<result property="sid" column="sid" />
|
||||
<id property="id" column="id"/>
|
||||
<result property="caseId" column="case_appli_id"/>
|
||||
<result property="caseNum" column="case_num"/>
|
||||
<result property="phone" column="phone"/>
|
||||
<result property="sendTime" column="send_time"/>
|
||||
<result property="sendContent" column="send_content"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="sendStatus" column="send_status"/>
|
||||
<result property="sid" column="sid"/>
|
||||
</resultMap>
|
||||
<insert id="saveSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
<insert id="saveSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
|
||||
insert into ms_sms_send_record(
|
||||
<if test="caseId != null ">case_appli_id,</if>
|
||||
@@ -47,31 +48,32 @@
|
||||
<insert id="batchSaveSmsSendRecord">
|
||||
|
||||
insert into ms_sms_send_record(
|
||||
case_appli_id,
|
||||
case_num,
|
||||
phone,
|
||||
send_time,
|
||||
send_content,
|
||||
create_by,
|
||||
send_status,
|
||||
case_appli_id,
|
||||
case_num,
|
||||
phone,
|
||||
send_time,
|
||||
send_content,
|
||||
create_by,
|
||||
send_status,
|
||||
create_time,
|
||||
sid,reason
|
||||
)values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.caseId},
|
||||
#{item.caseNum},
|
||||
#{item.phone},
|
||||
#{item.sendTime},
|
||||
#{item.sendContent},
|
||||
#{item.createBy},
|
||||
#{item.sendStatus},
|
||||
sysdate(),#{sid},#{reason}
|
||||
)
|
||||
(
|
||||
#{item.caseId},
|
||||
#{item.caseNum},
|
||||
#{item.phone},
|
||||
#{item.sendTime},
|
||||
#{item.sendContent},
|
||||
#{item.createBy},
|
||||
#{item.sendStatus},
|
||||
sysdate(),#{sid},#{reason}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="getSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord" resultMap="SmsSendRecordResult">
|
||||
<select id="getSmsSendRecord" parameterType="com.ruoyi.wisdomarbitrate.domain.dto.sendrecord.SmsSendRecord"
|
||||
resultMap="SmsSendRecordResult">
|
||||
|
||||
select *
|
||||
from ms_sms_send_record
|
||||
@@ -84,20 +86,28 @@
|
||||
</select>
|
||||
|
||||
<select id="selectBySId" resultMap="SmsSendRecordResult">
|
||||
select * from ms_sms_send_record where sid=#{sid}
|
||||
select *
|
||||
from ms_sms_send_record
|
||||
where sid = #{sid}
|
||||
</select>
|
||||
|
||||
<update id="updateStatus">
|
||||
update ms_sms_send_record
|
||||
set send_status= #{sendStatus} ,reason=#{reason} where sid=#{sid}
|
||||
set send_status= #{sendStatus},
|
||||
reason=#{reason}
|
||||
where sid = #{sid}
|
||||
</update>
|
||||
<update id="updateSendContent">
|
||||
update ms_sms_send_record
|
||||
set send_content= #{sendContent} ,update_time=#{updateTime} where id=#{id}
|
||||
set send_content= #{sendContent},
|
||||
update_time=#{updateTime}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="selectById" resultMap="SmsSendRecordResult">
|
||||
select * from ms_sms_send_record where id=#{id}
|
||||
select *
|
||||
from ms_sms_send_record
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user