浏览代码

数据中心

韩福成 1 年之前
父节点
当前提交
9acb7e8939
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/main/resources/mapper/commandcenter/CommandCentreMapper.xml

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

@@ -223,11 +223,13 @@
     </select>
 
     <select id="getImportAreaList" parameterType="CommandCenterBO" resultType="map">
-        SELECT a.id,a.project_type projectType,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
+        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
         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
         <where>
             <if test="deptId != null and deptId != ''">
                 AND FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )