10.26开发
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?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.wisdomarbitrate.mapper.SmsRecordMapper">
|
||||
<resultMap type="SmsSendRecord" id="SmsSendRecordResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="caseId" column="case_appli_id" />
|
||||
<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" />
|
||||
</resultMap>
|
||||
<insert id="saveSmsSendRecord" parameterType="SmsSendRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
|
||||
insert into sms_send_record(
|
||||
<if test="caseId != null ">case_appli_id,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="sendTime != null ">send_time,</if>
|
||||
<if test="sendContent != null ">send_content,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="caseId != null ">#{caseId},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="sendTime != null ">#{sendTime},</if>
|
||||
<if test="sendContent != null ">#{sendContent},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="getSmsSendRecord" parameterType="SmsSendRecord" resultMap="SmsSendRecordResult">
|
||||
|
||||
select id ,case_appli_id ,phone ,send_time ,send_content
|
||||
from sms_send_record
|
||||
<where>
|
||||
<if test="caseId != null ">
|
||||
AND case_appli_id = #{caseId}
|
||||
</if>
|
||||
</where>
|
||||
order by send_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user