This commit is contained in:
cwchen 2024-07-24 15:53:41 +08:00
parent 96b0d23ab5
commit 253bc07ec5
2 changed files with 9 additions and 2 deletions

View File

@ -76,7 +76,7 @@
AND ts.team_id = -1
</if>
/*班组长-审阅*/
<if test="roleCode == 'experimentalTeam'">
<if test="roleCode == 'experimentalTeamLeader'">
AND process_status = 1 AND audti_status = 0
</if>
/*技术负责人-审核*/

View File

@ -298,8 +298,15 @@
AND INSTR(tsd.sampleDevCode,#{devTypeCode})
</if>
<if test="roleCode != 'administrators'">
/*试验班组成员-待试验/待提交/审阅不通过展示/审核不通过展示/审批不通过展示*/
<if test="roleCode == 'experimentalTeamMember' and teamId != null">
AND ts.team_id = #{teamId}
AND ts.team_id = #{teamId} AND (
(ts.process_status IS NULL AND audti_status = 0) OR
(ts.process_status = 1 AND audti_status = 0) OR
(ts.process_status = 1 AND audti_status = 2) OR
(ts.process_status = 2 AND audti_status = 2) OR
(ts.process_status = 3 AND audti_status = 2)
)
</if>
<if test="(roleCode != 'experimentalTeamMember') or (roleCode == 'experimentalTeamMember' and teamId == null)">
AND ts.team_id = -1