fix issues not working

This commit is contained in:
ZZ 2021-09-14 13:40:50 +08:00
parent 2d6f6874c8
commit ac5d959214
2 changed files with 10 additions and 8 deletions

View File

@ -2,12 +2,14 @@ package com.xhpc.pp.mapper;
import com.xhpc.pp.domain.XhpcMessage;
import org.apache.ibatis.annotations.Mapper;
/**
* program: ruoyi
* User: HongYun
* Date:2021-09-13 16
*/
@Mapper
public interface XhpcMessageMapper {
void insertItemsBy(XhpcMessage xhpcMessage);

View File

@ -5,7 +5,7 @@
<resultMap type="com.xhpc.pp.domain.XhpcMessage" id="XhpcMessageResult">
<id property="messageId" column="message_id"/>
<result property="chargeOrderId" column="charge_order_id"/>
<result property="chargeOrderNo" column="charge_order_no"/>
<result property="content" column="content"/>
<result property="status" column="status"/>
<result property="createTime" column="create_time"/>
@ -17,23 +17,23 @@
<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="chargeOrderNo != null and chargeOrderNo != 0">charge_order_no,</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="remark != null and remark != ''">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="chargeOrderNo != null and chargeOrderNo != 0">#{chargeOrderNo},</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>
<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>
</mapper>
</mapper>