40 lines
1.9 KiB
XML
Raw Normal View History

2021-09-14 11:26:53 +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">
2021-11-23 16:59:13 +08:00
<mapper namespace="com.xhpc.mapper.XhpcMessageMapper">
2021-09-14 11:26:53 +08:00
<resultMap type="com.xhpc.pp.domain.XhpcMessage" id="XhpcMessageResult">
<id property="messageId" column="message_id"/>
2021-09-14 13:40:50 +08:00
<result property="chargeOrderNo" column="charge_order_no"/>
2021-09-14 11:26:53 +08:00
<result property="content" column="content"/>
<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="insertItemsBy" parameterType="com.xhpc.pp.domain.XhpcMessage">
insert into xhpc_message(
2021-09-14 13:40:50 +08:00
<if test="chargeOrderNo != null and chargeOrderNo != 0">charge_order_no,</if>
2021-09-14 11:26:53 +08:00
<if test="content != null and content != ''">content,</if>
<if test="status != null and status != ''">status,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
2021-09-14 13:40:50 +08:00
<if test="remark != null and remark != ''">remark,</if>
2021-09-14 11:26:53 +08:00
<if test="updateBy != null and updateBy != ''">update_by,</if>
create_time,
update_time
)values(
2021-09-14 13:40:50 +08:00
<if test="chargeOrderNo != null and chargeOrderNo != 0">#{chargeOrderNo},</if>
2021-09-14 11:26:53 +08:00
<if test="content != null and content != ''">#{content},</if>
<if test="status != null and status != ''">#{status},</if>
2021-09-14 13:40:50 +08:00
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
2021-09-14 11:26:53 +08:00
sysdate(),
sysdate()
)
</insert>
2021-09-14 13:40:50 +08:00
</mapper>