From 18d6ac2d686a3fcc3f67a0ed0fb95cd78c90c8ca Mon Sep 17 00:00:00 2001 From: liufeilong Date: Wed, 22 Feb 2023 18:40:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0interface=5Frequest?= =?UTF-8?q?=5Fdata=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/model/InterfaceRequestData.java | 65 ++++++++++ .../dao/InterfaceRequestDataMapper.java | 19 +++ .../mapper/InterfaceRequestDataMapper.xml | 121 ++++++++++++++++++ 3 files changed, 205 insertions(+) create mode 100644 order-management-common/src/main/java/com/dxhy/order/model/InterfaceRequestData.java create mode 100644 order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/InterfaceRequestDataMapper.java create mode 100644 order-management-consumer/src/main/resources/mybatis/mapper/InterfaceRequestDataMapper.xml diff --git a/order-management-common/src/main/java/com/dxhy/order/model/InterfaceRequestData.java b/order-management-common/src/main/java/com/dxhy/order/model/InterfaceRequestData.java new file mode 100644 index 00000000..a85de7b3 --- /dev/null +++ b/order-management-common/src/main/java/com/dxhy/order/model/InterfaceRequestData.java @@ -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(); + } +} \ No newline at end of file diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/InterfaceRequestDataMapper.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/InterfaceRequestDataMapper.java new file mode 100644 index 00000000..23fab766 --- /dev/null +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/InterfaceRequestDataMapper.java @@ -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); +} \ No newline at end of file diff --git a/order-management-consumer/src/main/resources/mybatis/mapper/InterfaceRequestDataMapper.xml b/order-management-consumer/src/main/resources/mybatis/mapper/InterfaceRequestDataMapper.xml new file mode 100644 index 00000000..785d73d8 --- /dev/null +++ b/order-management-consumer/src/main/resources/mybatis/mapper/InterfaceRequestDataMapper.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + id, xtly, ywlx, batch_id, create_time + + + request_data + + + + delete from interface_request_data + where id = #{id,jdbcType=VARCHAR} + + + 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 into interface_request_data + + + id, + + + xtly, + + + ywlx, + + + batch_id, + + + create_time, + + + request_data, + + + + + #{id,jdbcType=VARCHAR}, + + + #{xtly,jdbcType=VARCHAR}, + + + #{ywlx,jdbcType=VARCHAR}, + + + #{batchId,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{requestData,jdbcType=LONGVARCHAR}, + + + + + update interface_request_data + + + 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 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 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} + + \ No newline at end of file