1.1.2发版 #157

Merged
wangqiong123 merged 58 commits from dev into prod 2024-05-06 07:54:24 +00:00
2 changed files with 7 additions and 4 deletions
Showing only changes of commit f94be91bb3 - Show all commits
@@ -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 {
@@ -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">