소스 검색

数据中心

hanfucheng 1 년 전
부모
커밋
ba84335675
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/main/resources/mapper/digitalwater/WaterConservancyViewMapper.xml

+ 4 - 1
src/main/resources/mapper/digitalwater/WaterConservancyViewMapper.xml

@@ -97,10 +97,13 @@
             DISTINCT a.user_id userId,
             DISTINCT a.user_id userId,
             a.`name` AS name,
             a.`name` AS name,
             d.dept_name AS deptName,
             d.dept_name AS deptName,
-            a.phone AS phone
+            a.phone AS phone,
+            a.post post,
+            b.dict_label postName
         FROM
         FROM
             centerdata_t_hydraulic_river_length a
             centerdata_t_hydraulic_river_length a
             LEFT JOIN ${database_system}.sys_dept d ON a.dept_id = d.dept_id
             LEFT JOIN ${database_system}.sys_dept d ON a.dept_id = d.dept_id
+            left join ${database_system}.sys_dict_data b on a.post = b.dict_value
         WHERE
         WHERE
             a.type = #{leadType}
             a.type = #{leadType}
         <if test="dictType != null  and dictType != ''">AND a.post = #{dictType}</if>
         <if test="dictType != null  and dictType != ''">AND a.post = #{dictType}</if>