修改sql不生效的bug

This commit is contained in:
dengchun
2025-05-25 14:21:27 +08:00
parent 29c12af57b
commit d863adc112

View File

@@ -11,7 +11,7 @@
left join experiment_report r on r.experiment_id = e.id left join experiment_report r on r.experiment_id = e.id
<where> <where>
<choose> <choose>
<when test="#{experiment.pageName} == 'audit'"> <when test="experiment.pageName == 'audit'">
AND (r.auditor=#{loginUser.id} and r.status='PROOFREAD_PASS') or (r.proofreader=#{loginUser.id} and r.status='INIT') AND (r.auditor=#{loginUser.id} and r.status='PROOFREAD_PASS') or (r.proofreader=#{loginUser.id} and r.status='INIT')
or (r.confirmer=#{loginUser.id} and r.status='AUDIT_PASS' )) or (r.confirmer=#{loginUser.id} and r.status='AUDIT_PASS' ))
</when> </when>