|
|
@@ -305,7 +305,7 @@
|
|
305
|
305
|
WHERE case_appli_id = c.id
|
|
306
|
306
|
)
|
|
307
|
307
|
WHERE
|
|
308
|
|
- ca.identity_type=1 and c.case_status in (1,5,11,15,16,17,31)
|
|
|
308
|
+ ca.identity_type=1 and c.case_status in (1,5,11,14,15,16,17,31)
|
|
309
|
309
|
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
|
310
|
310
|
and c.case_status in
|
|
311
|
311
|
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
|
|
@@ -676,13 +676,11 @@
|
|
676
|
676
|
<!-- </foreach> )-->
|
|
677
|
677
|
<!-- </if>-->
|
|
678
|
678
|
<!--申请人-->
|
|
679
|
|
-<!-- <if test="applicationOrganId != null and applicationOrganId != ''">-->
|
|
680
|
|
-<!-- or ( t.application_organ_id = #{applicationOrganId} AND t.identity_type=1-->
|
|
681
|
|
-<!-- <!–暂时改为可以查询到生成裁决书之前所有的案件状态–>-->
|
|
682
|
|
-<!-- and (t.case_status <= 10 or t.case_status=31))-->
|
|
683
|
|
-<!-- <!– and t.case_status in (0,2,17))–>-->
|
|
|
679
|
+ <if test="applicationOrganId != null and applicationOrganId != ''">
|
|
|
680
|
+ or ( t.application_organ_id = #{applicationOrganId} AND t.identity_type=1
|
|
|
681
|
+ and t.case_status in (0,2,17))
|
|
684
|
682
|
|
|
685
|
|
-<!-- </if>-->
|
|
|
683
|
+ </if>
|
|
686
|
684
|
<!--部门长-->
|
|
687
|
685
|
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
|
|
688
|
686
|
or (t.identity_type=1 and t.case_status in
|
|
|
@@ -708,37 +706,37 @@
|
|
708
|
706
|
</where>
|
|
709
|
707
|
union
|
|
710
|
708
|
</if>
|
|
711
|
|
- <if test="applicationOrganId != null and applicationOrganId != ''">
|
|
712
|
|
- <!--申请人案件-->
|
|
|
709
|
+<!-- <if test="applicationOrganId != null and applicationOrganId != ''">-->
|
|
|
710
|
+<!-- <!–申请人案件–>-->
|
|
713
|
711
|
|
|
714
|
|
- select l.case_appli_id id ,
|
|
715
|
|
- c.case_status,ca.application_organ_id,
|
|
716
|
|
- c.arbitrator_id,ca.identity_num , ca.identity_type
|
|
717
|
|
- from case_application c
|
|
718
|
|
- JOIN case_application_log l ON c.id = l.case_appli_id
|
|
719
|
|
- JOIN case_affiliate_log ca ON ca.case_appli_log_id = l.id AND ca.identity_type = 1 and c.version=l.version
|
|
720
|
|
- <where>
|
|
721
|
|
- (c.case_status <= 10 or c.case_status=31) AND ca.identity_type=1
|
|
|
712
|
+<!-- select l.case_appli_id id ,-->
|
|
|
713
|
+<!-- c.case_status,ca.application_organ_id,-->
|
|
|
714
|
+<!-- c.arbitrator_id,ca.identity_num , ca.identity_type-->
|
|
|
715
|
+<!-- from case_application c-->
|
|
|
716
|
+<!-- JOIN case_application_log l ON c.id = l.case_appli_id-->
|
|
|
717
|
+<!-- JOIN case_affiliate_log ca ON ca.case_appli_log_id = l.id AND ca.identity_type = 1 and c.version=l.version-->
|
|
|
718
|
+<!-- <where>-->
|
|
|
719
|
+<!-- (c.case_status <= 10 or c.case_status=31) AND ca.identity_type=1-->
|
|
722
|
720
|
|
|
723
|
|
- <if test="applicationOrganId != null and applicationOrganId != ''">
|
|
724
|
|
- AND ca.application_organ_id = #{applicationOrganId}
|
|
725
|
|
- </if>
|
|
726
|
|
- <if test="caseStatus != null">
|
|
727
|
|
- AND c.case_status = #{caseStatus}
|
|
728
|
|
- </if>
|
|
729
|
|
- <if test="caseNum != null and caseNum != ''">
|
|
730
|
|
- AND c.case_num = #{caseNum}
|
|
731
|
|
- </if>
|
|
732
|
|
- <if test="nameId != null and nameId != ''">
|
|
733
|
|
- AND ca.application_organ_id=#{nameId}
|
|
734
|
|
- </if>
|
|
|
721
|
+<!-- <if test="applicationOrganId != null and applicationOrganId != ''">-->
|
|
|
722
|
+<!-- AND ca.application_organ_id = #{applicationOrganId}-->
|
|
|
723
|
+<!-- </if>-->
|
|
|
724
|
+<!-- <if test="caseStatus != null">-->
|
|
|
725
|
+<!-- AND c.case_status = #{caseStatus}-->
|
|
|
726
|
+<!-- </if>-->
|
|
|
727
|
+<!-- <if test="caseNum != null and caseNum != ''">-->
|
|
|
728
|
+<!-- AND c.case_num = #{caseNum}-->
|
|
|
729
|
+<!-- </if>-->
|
|
|
730
|
+<!-- <if test="nameId != null and nameId != ''">-->
|
|
|
731
|
+<!-- AND ca.application_organ_id=#{nameId}-->
|
|
|
732
|
+<!-- </if>-->
|
|
735
|
733
|
|
|
736
|
|
- <if test="lockStatus != null">
|
|
737
|
|
- AND c.lock_status = #{lockStatus}
|
|
738
|
|
- </if>
|
|
739
|
|
- </where>
|
|
740
|
|
- union
|
|
741
|
|
- </if>
|
|
|
734
|
+<!-- <if test="lockStatus != null">-->
|
|
|
735
|
+<!-- AND c.lock_status = #{lockStatus}-->
|
|
|
736
|
+<!-- </if>-->
|
|
|
737
|
+<!-- </where>-->
|
|
|
738
|
+<!-- union-->
|
|
|
739
|
+<!-- </if>-->
|
|
742
|
740
|
<!--秘书案件-->
|
|
743
|
741
|
<if test="deptIds != null and deptIds.size() > 0">
|
|
744
|
742
|
|
|
|
@@ -757,7 +755,7 @@
|
|
757
|
755
|
WHERE case_appli_id = c.id
|
|
758
|
756
|
)
|
|
759
|
757
|
WHERE
|
|
760
|
|
- ca.identity_type=1 and c.case_status in (1,5,11,15,16,17,31)
|
|
|
758
|
+ ca.identity_type=1 and c.case_status in (1,5,11,14,15,16,17,31)
|
|
761
|
759
|
<if test="deptIds != null and deptIds.size() > 0">
|
|
762
|
760
|
and ca.application_organ_id in
|
|
763
|
761
|
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|