|
|
|
@ -53,15 +53,12 @@
|
|
|
|
|
ORDER BY CAST(c.dict_value AS UNSIGNED);
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getProjectTracking" resultType="com.ruoyi.jjh.ent.entity.response.ProjectTrackingResponse">
|
|
|
|
|
SELECT b.enterprise_directory,
|
|
|
|
|
b.start_time,
|
|
|
|
|
b.end_time,
|
|
|
|
|
COUNT(*) as count
|
|
|
|
|
FROM bms_declaration_records a
|
|
|
|
|
INNER JOIN bms_template_record b ON a.template_record_id = b.id
|
|
|
|
|
WHERE a.`status` != 0
|
|
|
|
|
GROUP BY a.template_record_id
|
|
|
|
|
order by count desc
|
|
|
|
|
SELECT a.alert_time,
|
|
|
|
|
a.alert_content,
|
|
|
|
|
b.project_small_type
|
|
|
|
|
FROM j_smart_reminders a
|
|
|
|
|
left JOIN j_project b on a.project_id = b.id
|
|
|
|
|
where a.alert_type = 4 and NOW() > a.alert_time
|
|
|
|
|
</select>
|
|
|
|
|
<select id="servicesDevelop" resultType="com.ruoyi.jjh.ent.entity.response.JServicesDevelopResponse">
|
|
|
|
|
SELECT
|
|
|
|
@ -90,7 +87,7 @@
|
|
|
|
|
IFNULL(ROUND(a.year_revenue / 10000, 1), '-') AS yearRevenue,
|
|
|
|
|
IFNULL(ROUND(a.add_value, 1) , '-') AS addValue,
|
|
|
|
|
IFNULL(ROUND(a.growth, 1), '-') AS growth,
|
|
|
|
|
IFNULL(ROUND(a.gdp_proportion, 4), '-') AS gdpProportion
|
|
|
|
|
IFNULL(ROUND(a.gdp_proportion, 2), '-') AS gdpProportion
|
|
|
|
|
FROM j_industry_depth a
|
|
|
|
|
WHERE a.years = YEAR(NOW()) - 1
|
|
|
|
|
</select>
|
|
|
|
@ -108,7 +105,7 @@
|
|
|
|
|
<select id="getBigIndustry" resultType="com.ruoyi.jjh.ent.entity.response.JAllIndustryResponse">
|
|
|
|
|
SELECT a.categories AS nameType,
|
|
|
|
|
a.categories_code,
|
|
|
|
|
IFNULL(ROUND(SUM(a.year_revenue) / 10000, 1), '-') AS yearRevenue,
|
|
|
|
|
IFNULL(ROUND(SUM(a.year_revenue/ 10000) , 1), '-') AS yearRevenue,
|
|
|
|
|
IFNULL(ROUND(SUM(a.add_value), 1), '-') AS addValue,
|
|
|
|
|
IFNULL(ROUND(AVG(a.growth), 1), '-') AS growth,
|
|
|
|
|
IFNULL(ROUND(SUM(a.gdp_proportion), 1), '-') AS gdpProportion
|
|
|
|
|