39 lines
1.9 KiB
XML
39 lines
1.9 KiB
XML
|
|
<?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.XhpcMessageMapper">
|
||
|
|
|
||
|
|
<resultMap type="com.xhpc.pp.domain.XhpcMessage" id="XhpcMessageResult">
|
||
|
|
<id property="messageId" column="message_id"/>
|
||
|
|
<result property="chargeOrderId" column="charge_order_id"/>
|
||
|
|
<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(
|
||
|
|
<if test="chargeOrderId != null and chargeOrderId != 0">charge_order_id,</if>
|
||
|
|
<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>
|
||
|
|
<if test="remark != null and exceptionInfo != ''">remark,</if>
|
||
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||
|
|
create_time,
|
||
|
|
update_time
|
||
|
|
)values(
|
||
|
|
<if test="chargeOrderId != null and chargeOrderId != 0">#{chargeOrderId},</if>
|
||
|
|
<if test="content != null and content != ''">#{content},</if>
|
||
|
|
<if test="status != null and status != ''">#{status},</if>
|
||
|
|
<if test="createBy != null and createBy != ''">{createBy},</if>
|
||
|
|
<if test="remark != null and exceptionInfo != ''">{remark},</if>
|
||
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||
|
|
sysdate(),
|
||
|
|
sysdate()
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
</mapper>
|