|
|
@@ -1212,13 +1212,15 @@
|
|
|
</select>
|
|
|
<select id="selectCountByAssistUnaudited" resultType="java.lang.Integer">
|
|
|
SELECT count(*)
|
|
|
- from public_release a
|
|
|
- where a.`type`=0 and a.assist =1 and a.status =1
|
|
|
- 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})
|
|
|
+ FROM public_release a
|
|
|
+ JOIN (
|
|
|
+ SELECT pr.main_id
|
|
|
+ FROM public_release pr
|
|
|
+ LEFT JOIN admin_public_reviewer apr ON pr.aid = apr.aid
|
|
|
+ WHERE pr.`type` in (3,6) AND apr.type = 1
|
|
|
+ AND apr.reviewer_id = #{aid} ) sub ON a.id = sub.main_id
|
|
|
+ WHERE a.`type` in ( 0,5) AND a.assist = 1 AND a.status = 1
|
|
|
+ and a.process_status in (0,3)
|
|
|
</select>
|
|
|
<select id="selectCountByUnaudited" resultType="java.lang.Integer">
|
|
|
select COUNT(*)
|