|
@@ -223,14 +223,11 @@
|
|
|
</select>
|
|
|
|
|
|
<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,c.dict_label areaLabel,
|
|
|
- a.dept_id deptId,a.dept_name deptName
|
|
|
+ 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
|
|
|
+ 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) )
|