From d92f547e932d71e8d99c224f645e2a4cee32793e Mon Sep 17 00:00:00 2001 From: wangrangrang Date: Tue, 18 Jul 2023 15:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E8=A1=A8=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../consumer/dao/PushInfoRecordMapper.java | 19 +++ .../order/consumer/model/PushInfoRecord.java | 24 ++++ .../mybatis/mapper/PushInfoRecordMapper.xml | 136 ++++++++++++++++++ 3 files changed, 179 insertions(+) create mode 100644 order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/PushInfoRecordMapper.java create mode 100644 order-management-consumer/src/main/java/com/dxhy/order/consumer/model/PushInfoRecord.java create mode 100644 order-management-consumer/src/main/resources/mybatis/mapper/PushInfoRecordMapper.xml diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/PushInfoRecordMapper.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/PushInfoRecordMapper.java new file mode 100644 index 00000000..1e2d3ac3 --- /dev/null +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/dao/PushInfoRecordMapper.java @@ -0,0 +1,19 @@ +package com.dxhy.order.consumer.dao; + +import com.dxhy.order.consumer.model.PushInfoRecord; + +public interface PushInfoRecordMapper { + int deleteByPrimaryKey(Long id); + + int insert(PushInfoRecord record); + + int insertSelective(PushInfoRecord record); + + PushInfoRecord selectByPrimaryKey(Long id); + + int updateByPrimaryKeySelective(PushInfoRecord record); + + int updateByPrimaryKeyWithBLOBs(PushInfoRecord record); + + int updateByPrimaryKey(PushInfoRecord record); +} \ No newline at end of file diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/model/PushInfoRecord.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/model/PushInfoRecord.java new file mode 100644 index 00000000..b2631339 --- /dev/null +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/model/PushInfoRecord.java @@ -0,0 +1,24 @@ +package com.dxhy.order.consumer.model; + +import lombok.Data; + +import java.util.Date; + +@Data +public class PushInfoRecord { + private Long id; + + private String interfacePushType; + + private String qyType; + + private String pushStatus; + + private Date createTime; + + private String pushContent; + + private String result; + + private String failReason; +} \ No newline at end of file diff --git a/order-management-consumer/src/main/resources/mybatis/mapper/PushInfoRecordMapper.xml b/order-management-consumer/src/main/resources/mybatis/mapper/PushInfoRecordMapper.xml new file mode 100644 index 00000000..60b1e21f --- /dev/null +++ b/order-management-consumer/src/main/resources/mybatis/mapper/PushInfoRecordMapper.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + id, interface_push_type, qy_type, push_status, create_time,push_content, result, fail_reason + + + + delete from push_info_record + where id = #{id,jdbcType=BIGINT} + + + insert into push_info_record (id, interface_push_type, qy_type, + push_status, create_time, push_content, + result, fail_reason) + values (#{id,jdbcType=BIGINT}, #{interfacePushType,jdbcType=VARCHAR}, #{qyType,jdbcType=VARCHAR}, + #{pushStatus,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{pushContent,jdbcType=LONGVARCHAR}, + #{result,jdbcType=LONGVARCHAR}, #{failReason,jdbcType=LONGVARCHAR}) + + + insert into push_info_record + + + id, + + + interface_push_type, + + + qy_type, + + + push_status, + + + create_time, + + + push_content, + + + result, + + + fail_reason, + + + + + #{id,jdbcType=BIGINT}, + + + #{interfacePushType,jdbcType=VARCHAR}, + + + #{qyType,jdbcType=VARCHAR}, + + + #{pushStatus,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{pushContent,jdbcType=LONGVARCHAR}, + + + #{result,jdbcType=LONGVARCHAR}, + + + #{failReason,jdbcType=LONGVARCHAR}, + + + + + update push_info_record + + + interface_push_type = #{interfacePushType,jdbcType=VARCHAR}, + + + qy_type = #{qyType,jdbcType=VARCHAR}, + + + push_status = #{pushStatus,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + push_content = #{pushContent,jdbcType=LONGVARCHAR}, + + + result = #{result,jdbcType=LONGVARCHAR}, + + + fail_reason = #{failReason,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update push_info_record + set interface_push_type = #{interfacePushType,jdbcType=VARCHAR}, + qy_type = #{qyType,jdbcType=VARCHAR}, + push_status = #{pushStatus,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + push_content = #{pushContent,jdbcType=LONGVARCHAR}, + result = #{result,jdbcType=LONGVARCHAR}, + fail_reason = #{failReason,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update push_info_record + set interface_push_type = #{interfacePushType,jdbcType=VARCHAR}, + qy_type = #{qyType,jdbcType=VARCHAR}, + push_status = #{pushStatus,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file