|
|
@@ -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>
|
|
|
@@ -199,36 +198,36 @@
|
|
199
|
198
|
</if>
|
|
200
|
199
|
<!--申请人-->
|
|
201
|
200
|
<if test="nameId != null and nameId != ''">
|
|
202
|
|
- or( ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
|
|
201
|
+ or ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
|
203
|
202
|
and t.case_status in (0,2))
|
|
204
|
|
- )
|
|
|
203
|
+
|
|
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>
|
|
219
|
218
|
) t1
|
|
220
|
|
-<!-- <!–申请人–>-->
|
|
|
219
|
+ <!-- <where>
|
|
|
220
|
+ <!–申请人–>-->
|
|
221
|
221
|
<!-- <if test="nameId != null and nameId != ''">-->
|
|
222
|
222
|
<!-- and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
|
|
223
|
223
|
<!-- and t1.case_status in (0,2)-->
|
|
224
|
224
|
<!-- )-->
|
|
225
|
|
-<!-- </if>-->
|
|
|
225
|
+<!-- </if>
|
|
|
226
|
+ </where> -->
|
|
226
|
227
|
</select>
|
|
227
|
228
|
|
|
228
|
229
|
<select id="selectAdminCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
|
229
|
|
- select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
|
|
230
|
+ select DISTINCT(c.id) id,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
|
230
|
231
|
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
|
231
|
232
|
ELSE '无审理方式'
|
|
232
|
233
|
END arbitratMethodName,
|
|
|
@@ -288,7 +287,7 @@
|
|
288
|
287
|
sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived
|
|
289
|
288
|
FROM
|
|
290
|
289
|
case_application c
|
|
291
|
|
- LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
|
|
290
|
+ JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
|
292
|
291
|
AND ca.identity_type = 1
|
|
293
|
292
|
WHERE
|
|
294
|
293
|
c.case_status IN (
|