From 148ef346b69a53e8de92f3dede919c759d1c35fc Mon Sep 17 00:00:00 2001
From: du <1725534722@qq.com>
Date: Wed, 7 Aug 2024 09:35:40 +0800
Subject: [PATCH] bugfix
---
.../jjh/declaration/regular/TimeChange.java | 3 ++
.../jjh/ent/JHeadQuartersRevenueMapper.xml | 43 ++++++++-----------
2 files changed, 20 insertions(+), 26 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java
index 752b0c5..21c803a 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java
@@ -194,6 +194,9 @@ public class TimeChange {
if (total > 0) {
// 直接转换第一个元素为BmsEnterpriseBasicInfo对象
BmsEnterpriseBasicInfo res = JSONUtil.toBean(arr.getJSONObject(0).toString(), BmsEnterpriseBasicInfo.class);
+ if(items.getType() != 1){
+ res.setQygm("其他");
+ }
res.setId(items.getId());
res.setMultiple(total);
allList.add(res);
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 150b388..084b536 100644
--- a/ruoyi-admin/src/main/resources/mapper/jjh/ent/JHeadQuartersRevenueMapper.xml
+++ b/ruoyi-admin/src/main/resources/mapper/jjh/ent/JHeadQuartersRevenueMapper.xml
@@ -22,19 +22,10 @@
IFNULL( ROUND( a.output / 10000, 1 ), '-' ) AS output,
IFNULL( ROUND( a.sales / 10000, 1 ), '-' ) AS sales
FROM
- (
- SELECT
- a.*,
- b.project_small_type
- FROM
j_headquarters_revenue a
LEFT JOIN j_project b ON a.tyshxydm = b.credit_code
- WHERE
- b.project_middle_type = 1
- GROUP BY
- a.tyshxydm
- ) a
+ b.project_middle_type = 1
and a.qymc like concat('%',#{req.qymc},'%')
@@ -61,25 +52,25 @@
'^(51|52|61|62|47|48|49|50|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46)'
- and a.project_small_type = #{req.projectSmallType}
+ and b.project_small_type = #{req.projectSmallType}