2021-12-31 10:37:40 +08:00
|
|
|
<?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.xhpc.pp.mapper.XhpcDeviceMessageMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.xhpc.pp.domain.XhpcDeviceMessage" id="XhpcDeviceMessageResult">
|
|
|
|
|
<id property="deviceMessageId" column="device_message_id"/>
|
|
|
|
|
<result property="type" column="type"/>
|
|
|
|
|
<result property="serialNumber" column="serial_number"/>
|
|
|
|
|
<result property="content" column="content"/>
|
2022-01-12 18:27:20 +08:00
|
|
|
<<<<<<< HEAD
|
2021-12-31 10:37:40 +08:00
|
|
|
<result property="replyContent" column="reply_content"/>
|
2022-01-12 18:27:20 +08:00
|
|
|
=======
|
2022-01-12 16:07:43 +08:00
|
|
|
<result property="chargeOrderNo" column="charge_order_no"/>
|
2022-01-12 18:27:20 +08:00
|
|
|
>>>>>>> log
|
2021-12-31 10:37:40 +08:00
|
|
|
<result property="status" column="status"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<insert id="insertByDomain" parameterType="com.xhpc.pp.domain.XhpcDeviceMessage">
|
|
|
|
|
insert into xhpc_device_message(
|
2022-01-12 18:27:20 +08:00
|
|
|
<<<<<<< HEAD
|
2021-12-31 10:37:40 +08:00
|
|
|
<if test="type != null and type != 0">type,</if>
|
|
|
|
|
<if test="serialNumber != null and serialNumber != 0">serial_number,</if>
|
|
|
|
|
<if test="content != null and content != ''">content,</if>
|
|
|
|
|
<if test="replyContent != null and replyContent != ''">reply_content,</if>
|
2022-01-12 18:27:20 +08:00
|
|
|
=======
|
2022-01-12 16:07:43 +08:00
|
|
|
<if test="type != null">type,</if>
|
2021-12-31 10:37:40 +08:00
|
|
|
<if test="serialNumber != null and serialNumber != 0">serial_number,</if>
|
|
|
|
|
<if test="content != null and content != ''">content,</if>
|
2022-01-12 16:07:43 +08:00
|
|
|
<if test="chargeOrderNo != null and chargeOrderNo != ''">charge_order_no,</if>
|
2022-01-12 18:27:20 +08:00
|
|
|
>>>>>>> log
|
2021-12-31 10:37:40 +08:00
|
|
|
<if test="status != null and status != ''">status,</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
|
|
|
create_time,
|
|
|
|
|
update_time
|
|
|
|
|
)values(
|
|
|
|
|
<if test="type != null and type != 0">#{type},</if>
|
|
|
|
|
<if test="serialNumber != null and serialNumber != 0">#{serialNumber},</if>
|
|
|
|
|
<if test="content != null and content != ''">#{content},</if>
|
2022-01-12 18:27:20 +08:00
|
|
|
<<<<<<< HEAD
|
2021-12-31 10:37:40 +08:00
|
|
|
<if test="replyContent != null and replyContent != ''">#{replyContent},</if>
|
2022-01-12 18:27:20 +08:00
|
|
|
=======
|
2022-01-12 16:07:43 +08:00
|
|
|
<if test="chargeOrderNo != null and chargeOrderNo != ''">#{chargeOrderNo},</if>
|
2022-01-12 18:27:20 +08:00
|
|
|
>>>>>>> log
|
2021-12-31 10:37:40 +08:00
|
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
|
|
|
sysdate(),
|
|
|
|
|
sysdate()
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByLastThreeMonth">
|
|
|
|
|
delete from xhpc_message
|
|
|
|
|
where create_time <![CDATA[ <= ]]> #{expireDate};
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|