|
|
|
@ -7,14 +7,14 @@
|
|
|
|
|
<select id="getHonor" resultType="com.ruoyi.jjh.ent.entity.response.HonorResponse">
|
|
|
|
|
SELECT a.dict_label AS projectBigName,
|
|
|
|
|
a.dict_value AS projectBigType,
|
|
|
|
|
IFNULL(rs.count, 0) AS count1,
|
|
|
|
|
IFNULL(rs.count, '-') AS count1,
|
|
|
|
|
b.dict_label AS projectMiddleName,
|
|
|
|
|
b.dict_value AS projectMiddleType,
|
|
|
|
|
IFNULL(ys.count, 0) AS count2,
|
|
|
|
|
IFNULL(ys.count, '-') AS count2,
|
|
|
|
|
c.dict_label AS projectSmallName,
|
|
|
|
|
c.dict_value AS projectSmallType,
|
|
|
|
|
IFNULL(us.count, 0) AS count3,
|
|
|
|
|
IFNULL(ns.count, 0) AS currentYearAdd
|
|
|
|
|
IFNULL(us.count, '-') AS count3,
|
|
|
|
|
IFNULL(ns.count, '-') AS currentYearAdd
|
|
|
|
|
FROM sys_dict_data a
|
|
|
|
|
JOIN sys_dict_data b ON a.remark = b.dict_type
|
|
|
|
|
JOIN sys_dict_data c ON b.remark = c.dict_type
|
|
|
|
@ -90,10 +90,10 @@
|
|
|
|
|
SELECT
|
|
|
|
|
a.years,
|
|
|
|
|
a.industry_categories,
|
|
|
|
|
IFNULL(a.year_revenue,0) as yearRevenue,
|
|
|
|
|
IFNULL(a.add_value,0) as addValue,
|
|
|
|
|
IFNULL(a.growth,0) as growth,
|
|
|
|
|
IFNULL(a.gdp_proportion,0) as gdpProportion
|
|
|
|
|
IFNULL( a.year_revenue / 10000, '-' ) AS yearRevenue,
|
|
|
|
|
IFNULL( a.add_value / 10000, '-' ) AS addValue,
|
|
|
|
|
IFNULL( a.growth / 10000, '-' ) AS growth,
|
|
|
|
|
IFNULL( a.gdp_proportion / 10000, '-' ) AS gdpProportion
|
|
|
|
|
FROM
|
|
|
|
|
j_industry_depth a
|
|
|
|
|
WHERE
|
|
|
|
@ -103,11 +103,11 @@
|
|
|
|
|
resultType="com.ruoyi.jjh.ent.entity.response.JBigMiddleIndustryResponse">
|
|
|
|
|
SELECT
|
|
|
|
|
a.categories,
|
|
|
|
|
a.middle 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
|
|
|
|
|
a.middle AS nameType,
|
|
|
|
|
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 )
|
|
|
|
@ -123,10 +123,10 @@
|
|
|
|
|
<select id="getBigIndustry" resultType="com.ruoyi.jjh.ent.entity.response.JAllIndustryResponse">
|
|
|
|
|
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 )
|
|
|
|
|