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