hanfucheng 7 mēneši atpakaļ
vecāks
revīzija
4eface1a1f

+ 3 - 3
src/main/resources/mapper/lawenforcement/LawenforcementViewMapper.xml

@@ -45,7 +45,7 @@
             SELECT dept_name, count(DISTINCT person_code) person FROM lawenforcement_person
             GROUP BY dept_name) p ON p.dept_name = a.dept_name
             LEFT JOIN (
-            SELECT dept_name, count(*) yujing FROM ${onest_event}.centerevent_t_eventcatalogue
+            SELECT dept_name, count(*) yujing FROM ${database_event}.centerevent_t_eventcatalogue
             <where>
                 event_type_xl = 1301
                 <if test="deptName != null and deptName != ''">
@@ -158,7 +158,7 @@
         SELECT dict_label jobType, count(*) total, count(c.record_id) lian
         FROM lawenforcement_record a
         LEFT JOIN lawenforcement_case c ON c.record_id = a.id
-        RIGHT JOIN ${onest_system}.sys_dict_data dict ON dict.dict_value = a.job_type
+        RIGHT JOIN ${database_system}.sys_dict_data dict ON dict.dict_value = a.job_type
         WHERE dict_type = 'lawenforcement_jobType'
         GROUP BY dict_label
     </select>
@@ -261,4 +261,4 @@
             ${params.dataScope}
         <if test="deviceId != null  and deviceId != ''"> LIMIT 5 </if>
     </select>
-</mapper>
+</mapper>