|
@@ -20,11 +20,15 @@
|
|
|
LEFT JOIN xjr_user_dept_relation w ON u.id = w.user_id
|
|
|
LEFT JOIN xjr_department d ON w.dept_id = d.id
|
|
|
WHERE t.delete_mark = 0 and t.category = #{dto.category}
|
|
|
- <if test="dto.year != null and dto.month != null">
|
|
|
+ <if test="dto.category == 1 and dto.year != null and dto.month != null">
|
|
|
and YEAR(t.date_of_issue) = #{dto.year}
|
|
|
and MONTH(t.date_of_issue) = #{dto.month}
|
|
|
and t1.job_number = #{dto.jobNumber}
|
|
|
</if>
|
|
|
+ <if test="dto.category == 2 and dto.year != null">
|
|
|
+ and year = #{dto.year}
|
|
|
+ and t1.job_number = #{dto.jobNumber}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getYearPage" parameterType="com.xjrsoft.module.personnel.dto.BasePersonnelLabourCapitalYearPageDto" resultType="com.xjrsoft.module.personnel.vo.BasePersonnelLabourCapitalYearPageVo">
|