xhpcMessage数据插入功能
This commit is contained in:
parent
d05570b4cb
commit
5504a0b0de
@ -0,0 +1,48 @@
|
|||||||
|
package com.xhpc.pp.domain;
|
||||||
|
|
||||||
|
import com.xhpc.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* program: ruoyi
|
||||||
|
* User: HongYun
|
||||||
|
* Date:2021-09-13 15
|
||||||
|
*/
|
||||||
|
public class XhpcMessage extends BaseEntity {
|
||||||
|
|
||||||
|
private Long messageId;
|
||||||
|
private Long chargeOrderId;
|
||||||
|
private String content;
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
public Long getMessageId() {
|
||||||
|
return messageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMessageId(Long messageId) {
|
||||||
|
this.messageId = messageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getChargeOrderId() {
|
||||||
|
return chargeOrderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChargeOrderId(Long chargeOrderId) {
|
||||||
|
this.chargeOrderId = chargeOrderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContent(String content) {
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Integer status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.xhpc.pp.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.xhpc.pp.domain.XhpcMessage;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* program: ruoyi
|
||||||
|
* User: HongYun
|
||||||
|
* Date:2021-09-13 16
|
||||||
|
*/
|
||||||
|
public interface XhpcMessageMapper {
|
||||||
|
|
||||||
|
void insertItemsBy(XhpcMessage xhpcMessage);
|
||||||
|
}
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
<?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>
|
||||||
Loading…
x
Reference in New Issue
Block a user