|
@@ -1349,19 +1349,19 @@ FROM
|
|
|
or
|
|
|
t.report_drug_id in (select id from wm_report where drug_ent_id=#{query.drugEntId})
|
|
|
)
|
|
|
- <if test="query.approvedStatus != null and query.waitStatus != '0'">
|
|
|
+ <if test="query.approvedStatus != null and query.waitStatus != 0">
|
|
|
and (t.report_drug_approval_opinion in ( #{query.approvedStatus})
|
|
|
or t.report_one_approval_opinion in ( #{query.approvedStatus}))
|
|
|
</if>
|
|
|
- <if test="query.approvedStatus == null and query.waitStatus == '0'">
|
|
|
+ <if test="query.approvedStatus == null and query.waitStatus == 0">
|
|
|
and (t.report_drug_approval_opinion is null
|
|
|
or t.report_one_approval_opinion is null)
|
|
|
</if>
|
|
|
- <if test="query.approvedStatus == '1' and query.waitStatus == '0'">
|
|
|
+ <if test="query.approvedStatus == '1' and query.waitStatus == 0">
|
|
|
and (t.report_drug_approval_opinion != '2'
|
|
|
or t.report_one_approval_opinion != '2')
|
|
|
</if>
|
|
|
- <if test="query.approvedStatus == '2' and query.waitStatus == '0'">
|
|
|
+ <if test="query.approvedStatus == '2' and query.waitStatus == 0">
|
|
|
and (t.report_drug_approval_opinion != '1'
|
|
|
or t.report_one_approval_opinion != '1')
|
|
|
</if>
|