|
|
@ -25,6 +25,9 @@ |
|
|
|
<if test="allDeptIds != '' and allDeptIds != null"> |
|
|
|
AND s.all_dept_ids like concat('%',#{allDeptIds},'%') |
|
|
|
</if> |
|
|
|
<if test="scoreStartDate != null and scoreStartDate != ''"> |
|
|
|
AND DATE_FORMAT( s.start_date, '%Y-%m' ) BETWEEN #{scoreStartDate} AND #{scoreStartDate} |
|
|
|
</if> |
|
|
|
ORDER BY finalScore DESC LIMIT #{page},#{limit} |
|
|
|
</select> |
|
|
|
|
|
|
@ -38,6 +41,9 @@ |
|
|
|
<if test="allDeptIds != '' and allDeptIds != null"> |
|
|
|
AND s.all_dept_ids like concat('%',#{allDeptIds},'%') |
|
|
|
</if> |
|
|
|
<if test="scoreStartDate != null and scoreStartDate != ''"> |
|
|
|
AND DATE_FORMAT( s.start_date, '%Y-%m' ) BETWEEN #{scoreStartDate} AND #{scoreStartDate} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<!--根据查询条件,返回首页 考核统计导出列表--> |
|
|
@ -71,5 +77,8 @@ |
|
|
|
<if test="allDeptIds != '' and allDeptIds != null"> |
|
|
|
AND s.all_dept_ids like concat('%',#{allDeptIds},'%') |
|
|
|
</if> |
|
|
|
<if test="scoreStartDate != null and scoreStartDate != ''"> |
|
|
|
AND DATE_FORMAT( s.start_date, '%Y-%m' ) BETWEEN #{scoreStartDate} AND #{scoreStartDate} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
</mapper> |