From c662a567bde597f2c893070bdcdf410e094ced11 Mon Sep 17 00:00:00 2001 From: Lxy Date: Sun, 25 Jan 2026 14:00:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=A8=E9=87=8F=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=9F=BA=E6=9C=AC=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/newstocksystem/domain/TTrends.java | 32 +----- .../mapper/newstocksystem/TTrendsMapper.xml | 33 ++---- ruoyi-ui/src/api/newstocksystem/stockdata.js | 11 ++ .../src/views/newstocksystem/stockdata.vue | 100 ++++++++++++++++++ 4 files changed, 121 insertions(+), 55 deletions(-) diff --git a/newstock-system/src/main/java/com/ruoyi/newstocksystem/domain/TTrends.java b/newstock-system/src/main/java/com/ruoyi/newstocksystem/domain/TTrends.java index b98b467..348143c 100644 --- a/newstock-system/src/main/java/com/ruoyi/newstocksystem/domain/TTrends.java +++ b/newstock-system/src/main/java/com/ruoyi/newstocksystem/domain/TTrends.java @@ -7,7 +7,6 @@ import java.util.Date; /** * 趋势对象 t_trends - * 注意:由于该表是分区表,不支持外键约束,但业务逻辑中仍需确保eastmoney_industry_code在t_industry_index_basic表中存在 * * @author lxy * @date 2026-01-21 @@ -27,14 +26,6 @@ public class TTrends extends BaseEntity /** 行业名称(关联t_industry_basic表) */ @Excel(name = "行业名称") private String industryName; - - /** 所属东财行业代码 */ - @Excel(name = "东财行业代码") - private String eastmoneyIndustryCode; - - /** 所属东财行业名称 */ - @Excel(name = "东财行业名称") - private String eastmoneyIndustryName; /** 动量个股数量 */ @Excel(name = "动量个股数量") @@ -97,26 +88,6 @@ public class TTrends extends BaseEntity { this.industryName = industryName; } - - public String getEastmoneyIndustryCode() - { - return eastmoneyIndustryCode; - } - - public void setEastmoneyIndustryCode(String eastmoneyIndustryCode) - { - this.eastmoneyIndustryCode = eastmoneyIndustryCode; - } - - public String getEastmoneyIndustryName() - { - return eastmoneyIndustryName; - } - - public void setEastmoneyIndustryName(String eastmoneyIndustryName) - { - this.eastmoneyIndustryName = eastmoneyIndustryName; - } public Double getStocksCount() { @@ -203,8 +174,7 @@ public class TTrends extends BaseEntity return "TTrends{" + "id=" + id + ", tradeDate=" + tradeDate + - ", eastmoneyIndustryCode='" + eastmoneyIndustryCode + '\'' + - ", eastmoneyIndustryName='" + eastmoneyIndustryName + '\'' + + ", industryName='" + industryName + '\'' + ", stocksCount=" + stocksCount + ", trendValue=" + trendValue + ", trendValueChange=" + trendValueChange + diff --git a/newstock-system/src/main/resources/mapper/newstocksystem/TTrendsMapper.xml b/newstock-system/src/main/resources/mapper/newstocksystem/TTrendsMapper.xml index e0f49a2..867467f 100644 --- a/newstock-system/src/main/resources/mapper/newstocksystem/TTrendsMapper.xml +++ b/newstock-system/src/main/resources/mapper/newstocksystem/TTrendsMapper.xml @@ -8,8 +8,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - @@ -21,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, trade_date, industry_name, eastmoney_industry_code, eastmoney_industry_name, stocks_count, trend_value, trend_value_change, rank, rank_change, momentum_type, create_time, update_time from t_trends + select id, trade_date, industry_name, stocks_count, trend_value, trend_value_change, `rank`, `rank_change`, momentum_type, create_time, update_time from t_trends