|
@@ -276,7 +276,7 @@
|
|
<where>
|
|
<where>
|
|
a.enable = true
|
|
a.enable = true
|
|
AND a.review = true
|
|
AND a.review = true
|
|
- AND a.status = 'SUBMIT'
|
|
|
|
|
|
+ AND a.status = 'SUBMIT' and (f.status = 'START' or f.status = 'AUDITING' or f.status = 'REJECT')
|
|
and EXISTS(
|
|
and EXISTS(
|
|
<include refid="findFlowIdToMySelfSql" />
|
|
<include refid="findFlowIdToMySelfSql" />
|
|
and art.PROC_INST_ID_ = a.flow_id)
|
|
and art.PROC_INST_ID_ = a.flow_id)
|
|
@@ -355,7 +355,7 @@
|
|
<where>
|
|
<where>
|
|
a.enable = true
|
|
a.enable = true
|
|
AND a.review = true
|
|
AND a.review = true
|
|
- AND a.status = 'SUBMIT'
|
|
|
|
|
|
+ AND a.status = 'SUBMIT' and (f.status = 'START' or f.status = 'AUDITING' or f.status = 'REJECT')
|
|
and EXISTS(
|
|
and EXISTS(
|
|
select * from(
|
|
select * from(
|
|
<include refid="findFlowIdToNotMySelfSql" />
|
|
<include refid="findFlowIdToNotMySelfSql" />
|