优化邮件发送记录编辑功能
This commit is contained in:
+2
@@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@@ -46,6 +47,7 @@ public class SendMailRecordServiceImpl implements ISendMailRecordService {
|
||||
msSendMailHistoryRecord.setParentId(old.getId());
|
||||
msSendMailHistoryRecord.setId(null);
|
||||
msSendMailHistoryRecordMapper.insertSelective(msSendMailHistoryRecord);
|
||||
sendMailRecord.setUpdateTime(new Date());
|
||||
sendMailRecordMapper.updateSendMailRecord(sendMailRecord);
|
||||
return AjaxResult.success("编辑成功");
|
||||
} else {
|
||||
|
||||
+5
-4
@@ -62,10 +62,11 @@
|
||||
</insert>
|
||||
<update id="updateSendMailRecord">
|
||||
update ms_send_mail_record
|
||||
set mail_content= #{mailContent},
|
||||
update_time=#{updateTime},
|
||||
send_time=#{sendTime},
|
||||
send_status=#{sendStatus}
|
||||
set
|
||||
<if test="mailContent != null ">mail_content= #{mailContent}</if>
|
||||
<if test="updateTime != null ">,update_time=#{updateTime}</if>
|
||||
<if test="sendTime != null ">,send_time=#{sendTime}</if>
|
||||
<if test="sendStatus != null ">,send_status=#{sendStatus}</if>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<select id="querySendMailRecordById" resultMap="SendMailRecordResult">
|
||||
|
||||
Reference in New Issue
Block a user