|
|
@@ -113,14 +113,13 @@
|
|
113
|
113
|
</if>
|
|
114
|
114
|
<!--部门长-->
|
|
115
|
115
|
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
|
|
116
|
|
- or t.case_status in
|
|
117
|
|
- <foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">
|
|
118
|
|
- #{caseStatus}
|
|
119
|
|
- </foreach>
|
|
|
116
|
+ or (t.identity_type=1 and t.case_status in
|
|
|
117
|
+ <foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">#{caseStatus}
|
|
|
118
|
+ </foreach>)
|
|
120
|
119
|
</if>
|
|
121
|
120
|
<!--财务-->
|
|
122
|
121
|
<if test="financeStatus != null and financeStatus != ''">
|
|
123
|
|
- or( t.case_status =#{financeStatus})
|
|
|
122
|
+ or(t.identity_type=1 and t.case_status =#{financeStatus})
|
|
124
|
123
|
|
|
125
|
124
|
</if>
|
|
126
|
125
|
</where>
|
|
|
@@ -205,14 +204,14 @@
|
|
205
|
204
|
</if>
|
|
206
|
205
|
<!--部门长-->
|
|
207
|
206
|
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
|
|
208
|
|
- or t.case_status in
|
|
|
207
|
+ or (t.identity_type=1 and t.case_status in
|
|
209
|
208
|
<foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">
|
|
210
|
209
|
#{caseStatus}
|
|
211
|
|
- </foreach>
|
|
|
210
|
+ </foreach>)
|
|
212
|
211
|
</if>
|
|
213
|
212
|
<!--财务-->
|
|
214
|
213
|
<if test="financeStatus != null and financeStatus != ''">
|
|
215
|
|
- or( t.case_status =#{financeStatus})
|
|
|
214
|
+ or( t.identity_type=1 and t.case_status =#{financeStatus})
|
|
216
|
215
|
|
|
217
|
216
|
</if>
|
|
218
|
217
|
</where>
|