|
@@ -1344,14 +1344,17 @@ FROM
|
|
<foreach collection="query.taskTypeIdList" item="item" index="index" separator="," open="(" close=")">
|
|
<foreach collection="query.taskTypeIdList" item="item" index="index" separator="," open="(" close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
- /* 状态为审核通过、不通过 */
|
|
|
|
- <if test="query.entTaskStatus != null and (query.entTaskStatus == '1' or query.entTaskStatus == '2')">
|
|
|
|
|
|
+ <if test="query.entTaskStatus != null and query.entTaskStatus == 1">
|
|
and (p.typeid = 0 and t.report_drug_approval_opinion = #{query.entTaskStatus}
|
|
and (p.typeid = 0 and t.report_drug_approval_opinion = #{query.entTaskStatus}
|
|
or p.typeid = 1 and t.report_drug_approval_opinion = #{query.entTaskStatus}
|
|
or p.typeid = 1 and t.report_drug_approval_opinion = #{query.entTaskStatus}
|
|
or p.typeid = 2 and t.report_one_approval_opinion = #{query.entTaskStatus})
|
|
or p.typeid = 2 and t.report_one_approval_opinion = #{query.entTaskStatus})
|
|
</if>
|
|
</if>
|
|
- /* 状态为待审核的 */
|
|
|
|
- <if test="query.entTaskStatus != null and query.entTaskStatus == '0'">
|
|
|
|
|
|
+ <if test="query.entTaskStatus != null and query.entTaskStatus == 2">
|
|
|
|
+ and (p.typeid = 0 and t.report_drug_approval_opinion = #{query.entTaskStatus}
|
|
|
|
+ or p.typeid = 1 and t.report_drug_approval_opinion = #{query.entTaskStatus}
|
|
|
|
+ or p.typeid = 2 and t.report_one_approval_opinion = #{query.entTaskStatus})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="query.entTaskStatus != null and query.entTaskStatus == 0">
|
|
and (p.typeid = 0 and t.report_drug_approval_opinion is null
|
|
and (p.typeid = 0 and t.report_drug_approval_opinion is null
|
|
or p.typeid = 1 and t.report_drug_approval_opinion is null
|
|
or p.typeid = 1 and t.report_drug_approval_opinion is null
|
|
or p.typeid = 2 and t.report_one_approval_opinion is null)
|
|
or p.typeid = 2 and t.report_one_approval_opinion is null)
|