|
|
@ -519,7 +519,9 @@ |
|
|
) process on process.ITEM_ID = item.ID |
|
|
) process on process.ITEM_ID = item.ID |
|
|
WHERE item.DEL_FLAG = '0' |
|
|
WHERE item.DEL_FLAG = '0' |
|
|
and (item.IS_PEOPLE = '0' or (item.PEOPLE_FLAG = '0' and (process.state is null or process.state not in (11,15)))) |
|
|
and (item.IS_PEOPLE = '0' or (item.PEOPLE_FLAG = '0' and (process.state is null or process.state not in (11,15)))) |
|
|
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
|
|
</if> |
|
|
<if test="itemState != null and itemState != ''"> |
|
|
<if test="itemState != null and itemState != ''"> |
|
|
AND item.ITEM_STATE = #{itemState} |
|
|
AND item.ITEM_STATE = #{itemState} |
|
|
</if> |
|
|
</if> |
|
|
|