Quellcode durchsuchen

【CHG】修改查询字段

zhaomn vor 2 Jahren
Ursprung
Commit
9e8a5eec50
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      railway-business/src/main/resources/mapper/bi/ShowSbxjMapper.xml

+ 2 - 2
railway-business/src/main/resources/mapper/bi/ShowSbxjMapper.xml

@@ -406,7 +406,7 @@
 
   <select id="getTotal" resultMap="TotalResultMap">
 
-    select dept_name, team_name,
+    select max(dept_name), team_name,
     '单元' as sbmc,
     count(*) as total,
     sum(plan) as planTotal,
@@ -435,7 +435,7 @@
         and file_id = (select max(id) from show_file where data_type = 'xjdx' and imp_result = '1')
       ) a
     ) b
-    group by dept_name, team_name
+    group by team_name
 
     union