|
|
|
@ -747,6 +747,9 @@ |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
AND find_in_set(#{deptId},item.ALL_DEPT_IDS) |
|
|
|
</if> |
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
</if> |
|
|
|
ORDER BY item.CREATED_TIME DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -2356,6 +2359,9 @@ |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
AND find_in_set(#{deptId},item.ALL_DEPT_IDS) |
|
|
|
</if> |
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
</if> |
|
|
|
group by SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) |
|
|
|
ORDER BY count(item.ID) desc |
|
|
|
</select> |
|
|
|
@ -2382,6 +2388,9 @@ |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
AND find_in_set(#{deptId},item.ALL_DEPT_IDS) |
|
|
|
</if> |
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
</if> |
|
|
|
and item.EVALUATION_SCORE is not null |
|
|
|
group by item.EVALUATION_SCORE |
|
|
|
ORDER BY count(item.ID) desc |
|
|
|
@ -2406,6 +2415,9 @@ |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
AND find_in_set(#{deptId},item.ALL_DEPT_IDS) |
|
|
|
</if> |
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
</if> |
|
|
|
AND DATE_FORMAT(item.CREATED_TIME,'%Y-%m-%d') IN |
|
|
|
<foreach collection="timeArr" index="index" item="time" open="(" separator="," close=")"> |
|
|
|
#{time} |
|
|
|
@ -2434,6 +2446,9 @@ |
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
AND find_in_set(#{deptId},item.ALL_DEPT_IDS) |
|
|
|
</if> |
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
</if> |
|
|
|
AND DATE_FORMAT(item.CREATED_TIME,'%Y-%m') IN |
|
|
|
<foreach collection="timeArr" index="index" item="time" open="(" separator="," close=")"> |
|
|
|
#{time} |
|
|
|
|