소스 검색

年度工资条部门不显示调整

dzx 2 주 전
부모
커밋
ee04b1dfd1
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/main/resources/mapper/personnel/BasePersonnelLabourCapitalMapper.xml

+ 3 - 2
src/main/resources/mapper/personnel/BasePersonnelLabourCapitalMapper.xml

@@ -39,13 +39,14 @@
         from base_personnel_labour_capital_data t
                  LEFT JOIN base_personnel_labour_capital t1 ON t.labour_capital_id = t1.id
                  LEFT JOIN xjr_user u ON t.job_number = u.user_name
-                 LEFT JOIN wf_teacher_depart w ON u.id = w.create_user_id
-                 LEFT JOIN xjr_department d ON w.dept_name = d.id
+                 LEFT JOIN xjr_user_dept_relation w ON u.id = w.user_id
+                 LEFT JOIN xjr_department d ON w.dept_id = d.id
                  LEFT JOIN base_personnel_labour_capital_title bp ON bp.labour_capital_id = t.id
         WHERE
             t.delete_mark = 0
         and YEAR(t1.date_of_issue) = #{dto.year}
         and t.job_number = #{dto.jobNumber}
+        limit 1
     </select>
 </mapper>
         <!--    SELECT-->