|
@@ -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) )
|