|
|
@@ -1122,19 +1122,19 @@
|
|
|
</select>
|
|
|
<select id="selectCountByAssistUnaudited" resultType="java.lang.Integer">
|
|
|
SELECT count(*)
|
|
|
- from public_release a left join admin_public_reviewer b on a.aid =b.aid
|
|
|
- and b.type =1
|
|
|
+ from public_release a
|
|
|
where a.`type`=3 and a.assist =2 and a.status =1
|
|
|
- and b.reviewer_id = #{aid}
|
|
|
+ and a.id in (select pr.main_id
|
|
|
+ from public_release pr left join admin_public_reviewer apr on
|
|
|
+ pr.aid = apr.aid
|
|
|
+ where pr.`type` =3 and apr.type = 1
|
|
|
+ and apr.reviewer_id = #{aid})
|
|
|
</select>
|
|
|
<select id="selectCountByUnaudited" resultType="java.lang.Integer">
|
|
|
select COUNT(*)
|
|
|
from public_release a left join admin c on a.aid =c.id
|
|
|
- where a.public_type in (0,2)
|
|
|
- and a.assist in(0,1)
|
|
|
- and a.tech_start_process in (0,2)
|
|
|
- and a.status =1
|
|
|
- and a.assist_process in (0,1)
|
|
|
+ where a.public_type in (0,2) and a.assist in(0,1) and a.tech_start_process in (0,2)
|
|
|
+ and a.status =1 and a.assist_process in (0,1)
|
|
|
and c.reviewer = #{aid}
|
|
|
</select>
|
|
|
<select id="selectCountByOtherUnaudited" resultType="java.lang.Integer">
|