parent
9e1c18ca63
commit
5d0ecfec34
@ -0,0 +1,65 @@ |
|||||||
|
package com.dxhy.order.model; |
||||||
|
|
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
public class InterfaceRequestData { |
||||||
|
private String id; |
||||||
|
|
||||||
|
private String xtly; |
||||||
|
|
||||||
|
private String ywlx; |
||||||
|
|
||||||
|
private String batchId; |
||||||
|
|
||||||
|
private Date createTime; |
||||||
|
|
||||||
|
private String requestData; |
||||||
|
|
||||||
|
public String getId() { |
||||||
|
return id; |
||||||
|
} |
||||||
|
|
||||||
|
public void setId(String id) { |
||||||
|
this.id = id == null ? null : id.trim(); |
||||||
|
} |
||||||
|
|
||||||
|
public String getXtly() { |
||||||
|
return xtly; |
||||||
|
} |
||||||
|
|
||||||
|
public void setXtly(String xtly) { |
||||||
|
this.xtly = xtly == null ? null : xtly.trim(); |
||||||
|
} |
||||||
|
|
||||||
|
public String getYwlx() { |
||||||
|
return ywlx; |
||||||
|
} |
||||||
|
|
||||||
|
public void setYwlx(String ywlx) { |
||||||
|
this.ywlx = ywlx == null ? null : ywlx.trim(); |
||||||
|
} |
||||||
|
|
||||||
|
public String getBatchId() { |
||||||
|
return batchId; |
||||||
|
} |
||||||
|
|
||||||
|
public void setBatchId(String batchId) { |
||||||
|
this.batchId = batchId == null ? null : batchId.trim(); |
||||||
|
} |
||||||
|
|
||||||
|
public Date getCreateTime() { |
||||||
|
return createTime; |
||||||
|
} |
||||||
|
|
||||||
|
public void setCreateTime(Date createTime) { |
||||||
|
this.createTime = createTime; |
||||||
|
} |
||||||
|
|
||||||
|
public String getRequestData() { |
||||||
|
return requestData; |
||||||
|
} |
||||||
|
|
||||||
|
public void setRequestData(String requestData) { |
||||||
|
this.requestData = requestData == null ? null : requestData.trim(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,19 @@ |
|||||||
|
package com.dxhy.order.consumer.dao; |
||||||
|
|
||||||
|
import com.dxhy.order.model.InterfaceRequestData; |
||||||
|
|
||||||
|
public interface InterfaceRequestDataMapper { |
||||||
|
int deleteByPrimaryKey(String id); |
||||||
|
|
||||||
|
int insert(InterfaceRequestData record); |
||||||
|
|
||||||
|
int insertSelective(InterfaceRequestData record); |
||||||
|
|
||||||
|
InterfaceRequestData selectByPrimaryKey(String id); |
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(InterfaceRequestData record); |
||||||
|
|
||||||
|
int updateByPrimaryKeyWithBLOBs(InterfaceRequestData record); |
||||||
|
|
||||||
|
int updateByPrimaryKey(InterfaceRequestData record); |
||||||
|
} |
@ -0,0 +1,121 @@ |
|||||||
|
<?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.dxhy.order.consumer.dao.InterfaceRequestDataMapper" > |
||||||
|
<resultMap id="BaseResultMap" type="com.dxhy.order.model.InterfaceRequestData" > |
||||||
|
<id column="id" property="id" jdbcType="VARCHAR" /> |
||||||
|
<result column="xtly" property="xtly" jdbcType="VARCHAR" /> |
||||||
|
<result column="ywlx" property="ywlx" jdbcType="VARCHAR" /> |
||||||
|
<result column="batch_id" property="batchId" jdbcType="VARCHAR" /> |
||||||
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> |
||||||
|
</resultMap> |
||||||
|
<resultMap id="ResultMapWithBLOBs" type="com.dxhy.order.model.InterfaceRequestData" extends="BaseResultMap" > |
||||||
|
<result column="request_data" property="requestData" jdbcType="LONGVARCHAR" /> |
||||||
|
</resultMap> |
||||||
|
<sql id="Base_Column_List" > |
||||||
|
id, xtly, ywlx, batch_id, create_time |
||||||
|
</sql> |
||||||
|
<sql id="Blob_Column_List" > |
||||||
|
request_data |
||||||
|
</sql> |
||||||
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" > |
||||||
|
select |
||||||
|
<include refid="Base_Column_List" /> |
||||||
|
, |
||||||
|
<include refid="Blob_Column_List" /> |
||||||
|
from interface_request_data |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</select> |
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" > |
||||||
|
delete from interface_request_data |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</delete> |
||||||
|
<insert id="insert" parameterType="com.dxhy.order.model.InterfaceRequestData" > |
||||||
|
insert into interface_request_data (id, xtly, ywlx, |
||||||
|
batch_id, create_time, request_data |
||||||
|
) |
||||||
|
values (#{id,jdbcType=VARCHAR}, #{xtly,jdbcType=VARCHAR}, #{ywlx,jdbcType=VARCHAR}, |
||||||
|
#{batchId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{requestData,jdbcType=LONGVARCHAR} |
||||||
|
) |
||||||
|
</insert> |
||||||
|
<insert id="insertSelective" parameterType="com.dxhy.order.model.InterfaceRequestData" > |
||||||
|
insert into interface_request_data |
||||||
|
<trim prefix="(" suffix=")" suffixOverrides="," > |
||||||
|
<if test="id != null" > |
||||||
|
id, |
||||||
|
</if> |
||||||
|
<if test="xtly != null" > |
||||||
|
xtly, |
||||||
|
</if> |
||||||
|
<if test="ywlx != null" > |
||||||
|
ywlx, |
||||||
|
</if> |
||||||
|
<if test="batchId != null" > |
||||||
|
batch_id, |
||||||
|
</if> |
||||||
|
<if test="createTime != null" > |
||||||
|
create_time, |
||||||
|
</if> |
||||||
|
<if test="requestData != null" > |
||||||
|
request_data, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides="," > |
||||||
|
<if test="id != null" > |
||||||
|
#{id,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="xtly != null" > |
||||||
|
#{xtly,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ywlx != null" > |
||||||
|
#{ywlx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="batchId != null" > |
||||||
|
#{batchId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null" > |
||||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="requestData != null" > |
||||||
|
#{requestData,jdbcType=LONGVARCHAR}, |
||||||
|
</if> |
||||||
|
</trim> |
||||||
|
</insert> |
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.dxhy.order.model.InterfaceRequestData" > |
||||||
|
update interface_request_data |
||||||
|
<set > |
||||||
|
<if test="xtly != null" > |
||||||
|
xtly = #{xtly,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="ywlx != null" > |
||||||
|
ywlx = #{ywlx,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="batchId != null" > |
||||||
|
batch_id = #{batchId,jdbcType=VARCHAR}, |
||||||
|
</if> |
||||||
|
<if test="createTime != null" > |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
</if> |
||||||
|
<if test="requestData != null" > |
||||||
|
request_data = #{requestData,jdbcType=LONGVARCHAR}, |
||||||
|
</if> |
||||||
|
</set> |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.dxhy.order.model.InterfaceRequestData" > |
||||||
|
update interface_request_data |
||||||
|
set xtly = #{xtly,jdbcType=VARCHAR}, |
||||||
|
ywlx = #{ywlx,jdbcType=VARCHAR}, |
||||||
|
batch_id = #{batchId,jdbcType=VARCHAR}, |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||||
|
request_data = #{requestData,jdbcType=LONGVARCHAR} |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
<update id="updateByPrimaryKey" parameterType="com.dxhy.order.model.InterfaceRequestData" > |
||||||
|
update interface_request_data |
||||||
|
set xtly = #{xtly,jdbcType=VARCHAR}, |
||||||
|
ywlx = #{ywlx,jdbcType=VARCHAR}, |
||||||
|
batch_id = #{batchId,jdbcType=VARCHAR}, |
||||||
|
create_time = #{createTime,jdbcType=TIMESTAMP} |
||||||
|
where id = #{id,jdbcType=VARCHAR} |
||||||
|
</update> |
||||||
|
</mapper> |
Loading…
Reference in new issue