|
|
@ -2182,7 +2182,18 @@ |
|
|
and i.PEOPLE_FLAG = #{appealType} |
|
|
and i.PEOPLE_FLAG = #{appealType} |
|
|
</if> |
|
|
</if> |
|
|
<if test="itemState != null and itemState != ''"> |
|
|
<if test="itemState != null and itemState != ''"> |
|
|
and i.ITEM_STATE = #{itemState} |
|
|
<choose> |
|
|
|
|
|
<when test="itemState == '80'"> |
|
|
|
|
|
and i.EVALUATION_STATE = '1' |
|
|
|
|
|
and i.EVALUATION_TIME IS NULL |
|
|
|
|
|
</when > |
|
|
|
|
|
<when test="itemState == '90'"> |
|
|
|
|
|
and i.EVALUATION_TIME IS NOT NULL |
|
|
|
|
|
</when > |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
and i.ITEM_STATE = #{itemState} |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
AND i.GRID_ID IN |
|
|
AND i.GRID_ID IN |
|
|
@ -2283,7 +2294,18 @@ |
|
|
and i.PEOPLE_FLAG = #{appealType} |
|
|
and i.PEOPLE_FLAG = #{appealType} |
|
|
</if> |
|
|
</if> |
|
|
<if test="itemState != null and itemState != ''"> |
|
|
<if test="itemState != null and itemState != ''"> |
|
|
and i.ITEM_STATE = #{itemState} |
|
|
<choose> |
|
|
|
|
|
<when test="itemState == '80'"> |
|
|
|
|
|
and i.EVALUATION_STATE = '1' |
|
|
|
|
|
and i.EVALUATION_TIME IS NULL |
|
|
|
|
|
</when > |
|
|
|
|
|
<when test="itemState == '90'"> |
|
|
|
|
|
and i.EVALUATION_TIME IS NOT NULL |
|
|
|
|
|
</when > |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
and i.ITEM_STATE = #{itemState} |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
</if> |
|
|
</if> |
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
<if test="deptIdList != null and deptIdList.size() > 0"> |
|
|
AND i.GRID_ID IN |
|
|
AND i.GRID_ID IN |
|
|
|