|
@ -13,7 +13,6 @@ |
|
|
screen_index_data_yearly |
|
|
screen_index_data_yearly |
|
|
WHERE |
|
|
WHERE |
|
|
del_flag = '0' |
|
|
del_flag = '0' |
|
|
AND org_type = 'agency' |
|
|
|
|
|
AND org_id = #{agencyId} |
|
|
AND org_id = #{agencyId} |
|
|
AND year_id = DATE_FORMAT(NOW(),'%Y') |
|
|
AND year_id = DATE_FORMAT(NOW(),'%Y') |
|
|
</select> |
|
|
</select> |
|
@ -34,6 +33,14 @@ |
|
|
del_flag = '0' |
|
|
del_flag = '0' |
|
|
AND parent_id = #{agencyId} |
|
|
AND parent_id = #{agencyId} |
|
|
AND year_id = YEAR(CURDATE()) |
|
|
AND year_id = YEAR(CURDATE()) |
|
|
|
|
|
<choose> |
|
|
|
|
|
<when test="orgType != null and orgType != ''"> |
|
|
|
|
|
AND ORG_TYPE = #{orgType,jdbcType=VARCHAR} |
|
|
|
|
|
</when> |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
AND ORG_TYPE != 'department' |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
<if test="sort == 'asc'"> |
|
|
<if test="sort == 'asc'"> |
|
|
ORDER BY index_total ASC |
|
|
ORDER BY index_total ASC |
|
|
</if> |
|
|
</if> |
|
|