diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JHeadQuartersRevenue.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JHeadQuartersRevenue.java index 49d8b6f..4016e72 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JHeadQuartersRevenue.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JHeadQuartersRevenue.java @@ -49,13 +49,13 @@ public class JHeadQuartersRevenue { * 营收 */ @ApiModelProperty("营收") - private Double revenue; + private String revenue; /** * 税收 */ @ApiModelProperty("税收") - private Double taxation; + private String taxation; /** * 年份 @@ -67,11 +67,11 @@ public class JHeadQuartersRevenue { * 产值 */ @ApiModelProperty("产值") - private Double output; + private String output; /** * 销售额 */ @ApiModelProperty("销售额") - private Double sales; + private String sales; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JServicesList.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JServicesList.java index 82f5773..823aefe 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JServicesList.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/JServicesList.java @@ -61,7 +61,7 @@ public class JServicesList extends BaseInfoEntity { */ @TableField(exist = false) @ApiModelProperty("全年营收") - private Double revenue; + private String revenue; /** * 年份 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/HonorResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/HonorResponse.java index 2ef937e..aedf8ee 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/HonorResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/HonorResponse.java @@ -29,7 +29,7 @@ public class HonorResponse { * 大类数量 */ @ApiModelProperty("大类数量") - private Integer count1; + private String count1; /** * 项目中类名字 @@ -48,7 +48,7 @@ public class HonorResponse { * 中类数量 */ @ApiModelProperty("中类数量") - private Integer count2; + private String count2; /** * 项目小类名字 @@ -66,12 +66,12 @@ public class HonorResponse { * 小类数量 */ @ApiModelProperty("小类数量") - private Integer count3; + private String count3; /** * 当前年增加项目数量 */ @ApiModelProperty("当前年增加项目数量") - private Integer currentYearAdd; + private String currentYearAdd; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JAllIndustryResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JAllIndustryResponse.java index 039e1b3..fd277ce 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JAllIndustryResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JAllIndustryResponse.java @@ -47,25 +47,25 @@ public class JAllIndustryResponse { * 全年营收(亿元) */ @ApiModelProperty("全年营收(亿元)") - private Double yearRevenue; + private String yearRevenue; /** * 增加值(亿元) */ @ApiModelProperty("增加值(亿元)") - private Double addValue; + private String addValue; /** * 增加值增速(按不变价) */ @ApiModelProperty("增加值增速(按不变价)%") - private Double growth; + private String growth; /** * 增加值占GDP比重 */ @ApiModelProperty("增加值占GDP比重 %") - private Double gdpProportion; + private String gdpProportion; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JBigMiddleIndustryResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JBigMiddleIndustryResponse.java index 4d40b5b..a1401f1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JBigMiddleIndustryResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JBigMiddleIndustryResponse.java @@ -32,24 +32,24 @@ public class JBigMiddleIndustryResponse { * 全年营收(亿元) */ @ApiModelProperty("全年营收(亿元)") - private Double yearRevenue; + private String yearRevenue; /** * 增加值(亿元) */ @ApiModelProperty("增加值(亿元)") - private Double addValue; + private String addValue; /** * 增加值增速(按不变价) */ @ApiModelProperty("增加值增速(按不变价)%") - private Double growth; + private String growth; /** * 增加值占GDP比重 */ @ApiModelProperty("增加值占GDP比重 %") - private Double gdpProportion; + private String gdpProportion; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JIndustryDepthResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JIndustryDepthResponse.java index 06453a8..51e9801 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JIndustryDepthResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JIndustryDepthResponse.java @@ -31,24 +31,24 @@ public class JIndustryDepthResponse { * 全年营收(亿元) */ @ApiModelProperty("全年营收(亿元)") - private Double yearRevenue; + private String yearRevenue; /** * 增加值(亿元) */ @ApiModelProperty("增加值(亿元)") - private Double addValue; + private String addValue; /** * 增加值增速(按不变价) */ @ApiModelProperty("增加值增速(按不变价)%") - private Double growth; + private String growth; /** * 增加值占GDP比重 */ @ApiModelProperty("增加值占GDP比重 %") - private Double gdpProportion; + private String gdpProportion; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesDevelopResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesDevelopResponse.java index 1e73f67..a487a1a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesDevelopResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesDevelopResponse.java @@ -23,23 +23,23 @@ public class JServicesDevelopResponse { * 季度 */ @ApiModelProperty("季度") - private Integer quarterly; + private String quarterly; /** * 服务业增加值(亿元) */ @ApiModelProperty("服务业增加值(亿元)") - private Double valueAdded; + private String valueAdded; /** * 服务业增速(%,可比价) */ @ApiModelProperty("服务业增速(%,可比价)") - private Double increaseSpeed; + private String increaseSpeed; /** * 服务业增加值占GDP比重(%) */ @ApiModelProperty("服务业增加值占GDP比重(%)") - private Double gdpProportion; + private String gdpProportion; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesListCountResponse.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesListCountResponse.java index 994efe3..b67846a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesListCountResponse.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/entity/response/JServicesListCountResponse.java @@ -29,11 +29,11 @@ public class JServicesListCountResponse { * 规上企业营收 */ @ApiModelProperty("规上企业营收(亿元) / 税收贡献") - private Double allRevenue; + private String allRevenue; /** * 全口径增加值 */ @ApiModelProperty("全口径增加值(亿元) / 经营数据") - private Double addValue; + private String addValue; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/service/impl/JDataScreenImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/service/impl/JDataScreenImpl.java index 12cd78d..8460669 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/service/impl/JDataScreenImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/ent/service/impl/JDataScreenImpl.java @@ -47,13 +47,13 @@ public class JDataScreenImpl implements JDataScreenService { List honor = jDataScreenMapper.getHonor(); for (HonorResponse y : honor) { if (y.getProjectBigType() == 4) { - y.setCount1(y.getCount1() - x); + y.setCount1(String.valueOf(Integer.parseInt(y.getCount1()) - x)); } if (y.getProjectMiddleType() == 4) { - y.setCount2(y.getCount2() - x); + y.setCount2(String.valueOf(Integer.parseInt(y.getCount2()) - x)); } if (y.getProjectSmallType() == 6) { - y.setCount3(y.getCount3() - x); + y.setCount3(String.valueOf(Integer.parseInt(y.getCount3()) - x)); } } return honor; @@ -86,12 +86,7 @@ public class JDataScreenImpl implements JDataScreenService { */ @Override public List getIndustryDepth() { - List list = jDataScreenMapper.getIndustryDepth(); - list.forEach(x -> { - x.setYearRevenue(x.getYearRevenue() / 10000.0); - x.setAddValue(x.getAddValue() / 10000.0); - }); - return list; + return jDataScreenMapper.getIndustryDepth(); } /** diff --git a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JDataScreenMapper.xml b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JDataScreenMapper.xml index 3e9dccc..c8f7c05 100644 --- a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JDataScreenMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JDataScreenMapper.xml @@ -7,14 +7,14 @@ SELECT a.categories AS nameType, - ROUND( SUM( IFNULL( b.year_revenue, 0 ))/ 10000, 3 ) AS yearRevenue, - ROUND( SUM( IFNULL( b.add_value, 0 ))/ 10000, 3 ) AS addValue, - IFNULL( b.growth, 0 ) AS growth, - IFNULL( b.gdp_proportion, 0 ) AS gdpProportion + IFNULL( ROUND( SUM( b.year_revenue )/ 10000, 3 ), '-' ) AS yearRevenue, + IFNULL( ROUND( SUM( b.add_value )/ 10000, 3 ), '-' ) AS addValue, + IFNULL( b.growth, '-' ) AS growth, + IFNULL( b.gdp_proportion, '-' ) AS gdpProportion FROM j_industry_dictionary a LEFT JOIN j_small_industry b ON a.middle_code = LEFT ( b.small_code, 2 ) diff --git a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JHeadQuartersRevenueMapper.xml b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JHeadQuartersRevenueMapper.xml index 6c1d55e..3292b2e 100644 --- a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JHeadQuartersRevenueMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JHeadQuartersRevenueMapper.xml @@ -14,11 +14,11 @@ ELSE '服务业总部' END as type, a.hydm, - ROUND( IFNULL( a.revenue, 0 )/ 10000, 3 ) AS revenue, - ROUND( IFNULL( a.taxation, 0 )/ 10000, 3 ) AS taxation, + IFNULL( ROUND( a.revenue / 10000, 3 ), '-' ) AS revenue, + IFNULL( ROUND( a.taxation / 10000, 3 ), '-' ) AS taxation, a.years, - IFNULL( a.output, 0 ) AS output, - IFNULL( a.sales, 0 ) AS sales + IFNULL( a.output, '-' ) AS output, + IFNULL( a.sales, '-' ) AS sales FROM ( SELECT diff --git a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JServicesListMapper.xml b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JServicesListMapper.xml index fc8dff5..adcce98 100644 --- a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JServicesListMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JServicesListMapper.xml @@ -6,7 +6,8 @@