修改短信记录表

This commit is contained in:
wenc000 2020-05-07 17:36:13 +08:00
parent 82ded29737
commit e6819f975b

View File

@ -12,7 +12,7 @@
<!-- 新增短信 --> <!-- 新增短信 -->
<insert id="saveSms" parameterType="map"> <insert id="saveSms" parameterType="map">
INSERT INTO gen_sms( INSERT INTO sms_sms(
sms_id, sms_id,
phone, phone,
content, content,
@ -40,7 +40,7 @@
<!-- 删除短信 --> <!-- 删除短信 -->
<update id="removeSms" parameterType="map"> <update id="removeSms" parameterType="map">
UPDATE UPDATE
gen_sms sms_sms
SET SET
is_delete = 1, is_delete = 1,
modifier = #{modifier}, modifier = #{modifier},
@ -55,7 +55,7 @@
<!-- 修改短信 --> <!-- 修改短信 -->
<update id="updateSms" parameterType="map"> <update id="updateSms" parameterType="map">
UPDATE UPDATE
gen_sms sms_sms
SET SET
<if test="phone != null and phone != ''"> <if test="phone != null and phone != ''">
phone = #{phone}, phone = #{phone},
@ -84,7 +84,7 @@
t1.error_message, t1.error_message,
t1.sms_id t1.sms_id
FROM FROM
gen_sms t1 sms_sms t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="smsId != null and smsId != ''"> <if test="smsId != null and smsId != ''">
@ -102,7 +102,7 @@
t1.error_message, t1.error_message,
t1.sms_id t1.sms_id
FROM FROM
gen_sms t1 sms_sms t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -123,12 +123,6 @@
#{smsIds[${index}]} #{smsIds[${index}]}
</foreach> </foreach>
</if> </if>
GROUP BY
t1.phone,
t1.content,
t1.send_status,
t1.error_message,
t1.sms_id
</select> </select>
</mapper> </mapper>