From a6d94d034a5e08eb825d44eef2b2a43bff628409 Mon Sep 17 00:00:00 2001 From: Ziin Date: Thu, 26 Jun 2025 19:23:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E4=B8=BB=E6=92=AD=E6=97=B6?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=8F=92=E5=85=A5=E5=88=9B=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yupi/springbootinit/model/entity/NewHosts.java | 9 --------- .../java/com/yupi/springbootinit/rabbitMQ/MQSender.java | 1 - src/main/resources/mapper/NewHostsMapper.xml | 9 +++++---- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/yupi/springbootinit/model/entity/NewHosts.java b/src/main/java/com/yupi/springbootinit/model/entity/NewHosts.java index 28a46d6..93fb3d3 100644 --- a/src/main/java/com/yupi/springbootinit/model/entity/NewHosts.java +++ b/src/main/java/com/yupi/springbootinit/model/entity/NewHosts.java @@ -106,15 +106,6 @@ public class NewHosts { */ private Date createTime; - /** - * 更新人 - */ - private String updater; - - /** - * 更新时间 - */ - private Date updateTime; } \ No newline at end of file diff --git a/src/main/java/com/yupi/springbootinit/rabbitMQ/MQSender.java b/src/main/java/com/yupi/springbootinit/rabbitMQ/MQSender.java index d2bddbd..15840c0 100644 --- a/src/main/java/com/yupi/springbootinit/rabbitMQ/MQSender.java +++ b/src/main/java/com/yupi/springbootinit/rabbitMQ/MQSender.java @@ -27,7 +27,6 @@ public class MQSender { public void hostsSend(List list){ try { // log.info("{} 接收到的消息数量----------->{}", DateTime.now(),list.size()); - this.rabbitTemplate.setMessageConverter(new Jackson2JsonMessageConverter()); //指定你队列的名字 rabbitTemplate.convertAndSend("HOST_INFO_QUEUE",list); }catch (Exception e){ diff --git a/src/main/resources/mapper/NewHostsMapper.xml b/src/main/resources/mapper/NewHostsMapper.xml index 3f89922..7697155 100644 --- a/src/main/resources/mapper/NewHostsMapper.xml +++ b/src/main/resources/mapper/NewHostsMapper.xml @@ -43,12 +43,12 @@ insert into server_new_hosts (hosts_id, hosts_level, hosts_coins, Invitation_type, online_fans,fans, fllowernum, yesterday_coins, country, hosts_kind, - tenant_id, creator + tenant_id, creator,create_time ) values (#{hostsId,jdbcType=VARCHAR}, #{hostsLevel,jdbcType=VARCHAR}, #{hostsCoins,jdbcType=INTEGER}, #{invitationType,jdbcType=INTEGER}, #{onlineFans,jdbcType=INTEGER},#{fans,jdbcType=INTEGER}, #{fllowernum,jdbcType=INTEGER}, #{yesterdayCoins,jdbcType=INTEGER}, #{country,jdbcType=VARCHAR}, #{hostsKind,jdbcType=VARCHAR}, - #{tenantId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}) + #{tenantId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT},#{createTime,jdbcType=TIMESTAMP}) @@ -214,13 +214,14 @@ insert into server_new_hosts (hosts_id, hosts_level, hosts_coins, Invitation_type, online_fans,fans, fllowernum, yesterday_coins, - country, hosts_kind, tenant_id, creator, user_id) + country, hosts_kind, tenant_id, creator, user_id,create_time) values (#{item.hostsId,jdbcType=VARCHAR}, #{item.hostsLevel,jdbcType=VARCHAR}, #{item.hostsCoins,jdbcType=INTEGER}, #{item.invitationType,jdbcType=INTEGER}, #{item.onlineFans,jdbcType=INTEGER},#{item.fans,jdbcType=INTEGER}, #{item.fllowernum,jdbcType=INTEGER}, #{item.yesterdayCoins,jdbcType=INTEGER}, #{item.country,jdbcType=VARCHAR}, - #{item.hostsKind,jdbcType=VARCHAR}, #{item.tenantId,jdbcType=BIGINT}, #{item.creator,jdbcType=INTEGER},#{item.userId,jdbcType=BIGINT}) + #{item.hostsKind,jdbcType=VARCHAR}, #{item.tenantId,jdbcType=BIGINT}, #{item.creator,jdbcType=INTEGER},#{item.userId,jdbcType=BIGINT}, + #{item.createTime,jdbcType=TIMESTAMP}) \ No newline at end of file