Переглянути джерело

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

dzx 2 тижнів тому
батько
коміт
ee04b1dfd1

+ 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-->