瀏覽代碼

数据中心

韩福成 1 年之前
父節點
當前提交
55f0ec27b7
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/resources/mapper/commandcenter/CommandCentreMapper.xml

+ 3 - 2
src/main/resources/mapper/commandcenter/CommandCentreMapper.xml

@@ -225,11 +225,12 @@
     <select id="getImportAreaList" parameterType="CommandCenterBO" resultType="map">
         SELECT a.id,a.project_type projectType,
         b.dict_label projectName,a.area_name areaName,a.area_info areaInfo,a.latitude,a.longitude,
-        a.photo_id photoId,a.project_level projectLevel,a.area_type areaType,a.dept_id
-        deptId,a.dept_name deptName
+        a.photo_id photoId,a.project_level projectLevel,a.area_type areaType,c.dict_label areaLabel,
+        a.dept_id deptId,a.dept_name deptName
         FROM centerdata_t_forest_importarea a
         LEFT JOIN ${database_system}.sys_dept d on d.dept_id = a.dept_id
         LEFT JOIN ${database_system}.sys_dict_data b ON a.project_type = b.dict_value
+        LEFT JOIN ${database_system}.sys_dict_data c ON a.area_type = c.dict_value AND c.dict_type = 'camera_system'
         <where>
             <if test="deptId != null and deptId != ''">
                 AND FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )