Browse Source

重点工程所属开发区增加名称字段

hanfucheng 1 year ago
parent
commit
20ec689872
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/resources/mapper/commandcenter/CommandCentreMapper.xml

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

@@ -157,6 +157,7 @@
         photo_id photoId,
         territoriality,
         park,
+        b.dept_name parkName,
         park_longitude parkLongitude,
         park_latitude parkLatitude,
         environment,
@@ -174,6 +175,7 @@
         d.dept_name as deptName
         FROM centerdata_t_key_projects a
         LEFT JOIN ${database_system}.sys_dept d ON d.dept_id = a.dept_id
+        LEFT JOIN ${database_system}.sys_dept b on a.park = b.dept_id
         <where>
             <choose>
                 <when test="deptId != null and deptId != ''">and FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )</when>