大屏小数点后一位

wushunjie
杜函宇 3 months ago
parent 6ebcb18c74
commit 1471a2695c

@ -59,4 +59,7 @@ public class BmsDeclarationRecordsDto extends BmsDeclarationRecords {
@ApiModelProperty(value = "0=未填报,1=已填报")
private Integer statusChange;
@ApiModelProperty(value = "0=按时间排序,1=不按时间排序")
private Integer orderChange;
}

@ -34,7 +34,7 @@ spring:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: internet
active: druid
# 文件上传
servlet:
multipart:

@ -206,7 +206,12 @@
</if>
<if test="isDeleted != null ">and a.is_deleted = #{isDeleted}</if>
</where>
order by FIELD(a.status, 0, 1, 2, 3,10,8,7,9,5),a.create_time desc, e.dict_sort desc
<if test="orderChange == 0">
order by a.create_time desc
</if>
<if test="orderChange == 1">
order by FIELD(a.status, 0, 1, 2, 3,10,8,7,9,5),a.create_time desc, e.dict_sort desc
</if>
</select>
<select id="getAddProject" resultType="com.ruoyi.jjh.ent.entity.JProject">
SELECT c.qymc as declareUnit,

@ -84,10 +84,10 @@
<select id="getIndustryDepth" resultType="com.ruoyi.jjh.ent.entity.response.JIndustryDepthResponse">
SELECT a.years,
a.industry_categories,
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
IFNULL(ROUND(a.year_revenue / 10000, 1), '-') AS yearRevenue,
IFNULL(ROUND(a.add_value / 10000, 1), '-') AS addValue,
IFNULL(ROUND(a.growth / 10000, 1), '-') AS growth,
IFNULL(ROUND(a.gdp_proportion / 10000, 1), '-') AS gdpProportion
FROM j_industry_depth a
WHERE a.years = YEAR(NOW()) - 1
</select>
@ -95,8 +95,8 @@
resultType="com.ruoyi.jjh.ent.entity.response.JBigMiddleIndustryResponse">
SELECT a.categories,
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(ROUND(SUM(b.year_revenue) / 10000, 1), '-') AS yearRevenue,
IFNULL(ROUND(SUM(b.add_value) / 10000, 1), '-') AS addValue,
IFNULL(b.growth, '-') AS growth,
IFNULL(b.gdp_proportion, '-') AS gdpProportion
FROM j_industry_dictionary a
@ -110,8 +110,8 @@
</select>
<select id="getBigIndustry" resultType="com.ruoyi.jjh.ent.entity.response.JAllIndustryResponse">
SELECT a.categories AS nameType,
IFNULL(ROUND(SUM(b.year_revenue) / 10000, 3), '-') AS yearRevenue,
IFNULL(ROUND(SUM(b.add_value) / 10000, 3), '-') AS addValue,
IFNULL(ROUND(SUM(b.year_revenue) / 10000, 1), '-') AS yearRevenue,
IFNULL(ROUND(SUM(b.add_value) / 10000, 1), '-') AS addValue,
IFNULL(b.growth, '-') AS growth,
IFNULL(b.gdp_proportion, '-') AS gdpProportion
FROM j_industry_dictionary a

@ -6,7 +6,7 @@
<select id="page" resultType="com.ruoyi.jjh.ent.entity.JServicesList">
SELECT
a.*,
IFNULL( ROUND( b.revenue/ 100000, 3 ), '-' )
IFNULL( ROUND( b.revenue/ 100000, 1 ), '-' )
AS revenue,
b.years
FROM
@ -31,7 +31,7 @@
SELECT a.services_type,
count(*) AS qyCount,
IFNULL(b.add_value, '-') AS addValue,
IFNULL(ROUND(SUM(b.revenue) / 100000, 3), '-') AS allRevenue
IFNULL(ROUND(SUM(b.revenue) / 100000, 1), '-') AS allRevenue
FROM j_services_list a
LEFT JOIN j_business_revenue b ON a.tyshxydm = b.tyshxydm
GROUP BY a.services_type
@ -40,9 +40,9 @@
<select id="selectAllZbCount" resultType="com.ruoyi.jjh.ent.entity.response.JServicesListCountResponse">
SELECT 5 AS services_type,
count(*) AS qyCount,
IFNULL(ROUND(SUM(taxation) / 100000, 3), '-') AS allRevenue,
IFNULL(ROUND(SUM(IFNULL(revenue, 0)) / 100000, 3) + ROUND(SUM(IFNULL(output, 0)) / 100000, 3) +
ROUND(SUM(IFNULL(sales, 0)) / 100000, 3), '-') AS addValue
IFNULL(ROUND(SUM(taxation) / 100000, 1), '-') AS allRevenue,
IFNULL(ROUND(SUM(IFNULL(revenue, 0)) / 100000, 1) + ROUND(SUM(IFNULL(output, 0)) / 100000, 1) +
ROUND(SUM(IFNULL(sales, 0)) / 100000, 1), '-') AS addValue
FROM j_headquarters_revenue
</select>
</mapper>

Loading…
Cancel
Save