diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/entity/dto/BmsDeclarationRecordsDto.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/entity/dto/BmsDeclarationRecordsDto.java index fc59872..0938ac9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/entity/dto/BmsDeclarationRecordsDto.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/entity/dto/BmsDeclarationRecordsDto.java @@ -59,4 +59,7 @@ public class BmsDeclarationRecordsDto extends BmsDeclarationRecords { @ApiModelProperty(value = "0=未填报,1=已填报") private Integer statusChange; + + @ApiModelProperty(value = "0=按时间排序,1=不按时间排序") + private Integer orderChange; } diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index ba65377..f04e035 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -34,7 +34,7 @@ spring: # 国际化资源文件路径 basename: i18n/messages profiles: - active: internet + active: druid # 文件上传 servlet: multipart: diff --git a/ruoyi-admin/src/main/resources/mapper/jjh/declaration/BmsDeclarationRecordsMapper.xml b/ruoyi-admin/src/main/resources/mapper/jjh/declaration/BmsDeclarationRecordsMapper.xml index 0654d3c..99e3418 100644 --- a/ruoyi-admin/src/main/resources/mapper/jjh/declaration/BmsDeclarationRecordsMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/jjh/declaration/BmsDeclarationRecordsMapper.xml @@ -206,7 +206,12 @@ and a.is_deleted = #{isDeleted} - order by FIELD(a.status, 0, 1, 2, 3,10,8,7,9,5),a.create_time desc, e.dict_sort desc + + order by a.create_time desc + + + order by FIELD(a.status, 0, 1, 2, 3,10,8,7,9,5),a.create_time desc, e.dict_sort desc + 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 @@ -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 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 @@