18792927508 2 年 前
コミット
10f7fffe10
共有1 個のファイルを変更した61 個の追加60 個の削除を含む
  1. 61
    60
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml

+ 61
- 60
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml ファイルの表示

@@ -49,7 +49,7 @@
49 49
     <select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
50 50
         select t1.* from(
51 51
         select DISTINCT(t.id),t.case_num ,t.case_subject_amount ,t.register_date ,t.arbitrat_method,
52
-             t.arbitratMethodName,t.case_status,t.caseStatusName,t.hear_date ,t.arbitrat_claims ,
52
+        t.arbitratMethodName,t.case_status,t.caseStatusName,t.hear_date ,t.arbitrat_claims ,
53 53
         t.loan_start_date ,t.loan_end_date ,t.claim_princi_owed ,t.claim_interest_owed ,t.claim_liquid_damag,t.fee_payable ,
54 54
         t.begin_video_date ,t.online_video_person ,t.contract_number ,t.create_by ,t.create_time ,
55 55
         t.update_by ,t.update_time , t.arbitrator_name,t.name,t.application_organ_id,t.applicantName,
@@ -101,7 +101,7 @@
101 101
             <!--仲裁员-->
102 102
             <if test="userId != null and userId != ''">
103 103
                 or ( t.identity_type=1 and
104
-                       t.case_status in (7,8,9,12,13,14)
104
+                t.case_status in (7,8,9,12,13,14)
105 105
                 and
106 106
                 instr (t.arbitrator_id,#{userId})>0)
107 107
             </if>
@@ -114,32 +114,33 @@
114 114
                 </foreach> )
115 115
             </if>
116 116
 
117
-                <!--申请人-->
118
-                <if test="nameId != null and nameId != ''">
119
-                    or ( t.application_organ_id = #{nameId} AND t.identity_type=1
120
-                    and t.case_status in (0,2))
117
+            <!--申请人-->
118
+            <if test="nameId != null and nameId != ''">
119
+                or ( t.application_organ_id = #{nameId} AND t.identity_type=1
120
+                and t.case_status in (0,2))
121 121
 
122
-                </if>
123
-        <!--部门长-->
122
+            </if>
123
+            <!--部门长-->
124 124
             <if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
125
-            or (t.identity_type=1 and t.case_status in
126
-            <foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">#{caseStatus}
127
-            </foreach>)
125
+                or (t.identity_type=1 and t.case_status in
126
+                <foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">#{caseStatus}
127
+                </foreach>)
128 128
             </if>
129 129
             <!--财务-->
130 130
             <if test="financeStatus != null and financeStatus != ''">
131
-                or ( t.identity_type=1 and t.case_status =#{financeStatus})
131
+                (t.identity_type=1 and t.case_status =#{financeStatus})
132
+
132 133
             </if>
133 134
         </where>
134 135
         ) t1
135
-<!--        <where>-->
136
-<!--            &lt;!&ndash;申请人&ndash;&gt;-->
137
-<!--            <if test="nameId != null and nameId != ''">-->
138
-<!--                and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
139
-<!--                    and t1.case_status in (0,2)-->
140
-<!--                )-->
141
-<!--            </if>-->
142
-<!--        </where>-->
136
+        <!--        <where>-->
137
+        <!--            &lt;!&ndash;申请人&ndash;&gt;-->
138
+        <!--            <if test="nameId != null and nameId != ''">-->
139
+        <!--                and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
140
+        <!--                    and t1.case_status in (0,2)-->
141
+        <!--                )-->
142
+        <!--            </if>-->
143
+        <!--        </where>-->
143 144
         order by t1.create_time desc,t1.case_num desc
144 145
     </select>
145 146
     <select id="selectTodoCountByRole" resultType="com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount">
@@ -164,7 +165,7 @@
164 165
         from(
165 166
         select  DISTINCT(t.id),t.case_status,t.application_organ_id, t.arbitrator_id,t.identity_num , t.identity_type from(
166 167
         select c.id ,
167
-         c.case_status,ca.application_organ_id,
168
+        c.case_status,ca.application_organ_id,
168 169
         c.arbitrator_id,ca.identity_num , ca.identity_type
169 170
         from case_application c
170 171
         LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id
@@ -218,20 +219,20 @@
218 219
                 </foreach>)
219 220
             </if>
220 221
             <!--财务-->
221
-
222 222
             <if test="financeStatus != null and financeStatus != ''">
223
-                or ( t.identity_type=1 and t.case_status =#{financeStatus})
223
+                ( t.identity_type=1 and t.case_status =#{financeStatus})
224
+
224 225
             </if>
225 226
         </where>
226 227
         ) t1
227 228
         <!--      <where>
228 229
                    &lt;!&ndash;申请人&ndash;&gt;-->
229
-<!--            <if test="nameId != null and nameId != ''">-->
230
-<!--                and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
231
-<!--                and t1.case_status in (0,2)-->
232
-<!--                )-->
233
-<!--            </if>
234
-        </where> -->
230
+        <!--            <if test="nameId != null and nameId != ''">-->
231
+        <!--                and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
232
+        <!--                and t1.case_status in (0,2)-->
233
+        <!--                )-->
234
+        <!--            </if>
235
+                </where> -->
235 236
     </select>
236 237
 
237 238
     <select id="selectAdminCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
@@ -295,7 +296,7 @@
295 296
             sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived
296 297
         FROM
297 298
             case_application c
298
-                 JOIN case_affiliate ca ON ca.case_appli_id = c.id
299
+                JOIN case_affiliate ca ON ca.case_appli_id = c.id
299 300
                 AND ca.identity_type = 1
300 301
         WHERE
301 302
                 c.case_status IN (
@@ -387,10 +388,10 @@
387 388
         <where>
388 389
             <!--部门长-->
389 390
             <if test="statusList != null and statusList.size() > 0">
390
-            or c.case_status in
391
-            <foreach item="caseStatus" collection="statusList" open="(" separator="," close=")">
392
-                #{caseStatus}
393
-            </foreach>
391
+                or c.case_status in
392
+                <foreach item="caseStatus" collection="statusList" open="(" separator="," close=")">
393
+                    #{caseStatus}
394
+                </foreach>
394 395
                 <!--被申请人-->
395 396
                 <if test="idCard != null and idCard != ''">
396 397
                     or (t.identity_num=#{idCard} AND t.identity_type=2 and t.case_status=4)
@@ -462,7 +463,7 @@
462 463
         )values(
463 464
         <if test="caseNum != null and caseNum != ''">#{caseNum},</if>
464 465
         <if test="caseSubjectAmount != null">#{caseSubjectAmount},</if>
465
-       sysdate(),
466
+        sysdate(),
466 467
         <if test="arbitratMethod != null and arbitratMethod != ''">#{arbitratMethod},</if>
467 468
         <if test="caseStatus != null ">#{caseStatus},</if>
468 469
         <if test="hearDate != null ">#{hearDate},</if>
@@ -558,8 +559,8 @@
558 559
     <select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
559 560
         select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
560 561
         CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
561
-            ELSE '无审理方式'
562
-            END arbitratMethodName,
562
+        ELSE '无审理方式'
563
+        END arbitratMethodName,
563 564
         c.case_status ,
564 565
         CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
565 566
         when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
@@ -586,30 +587,30 @@
586 587
 
587 588
     <select id="selectCaseApplicationConfirm" parameterType="CaseApplication" resultMap="CaseApplicationResult">
588 589
         select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
589
-        CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
590
-        ELSE '无审理方式'
591
-        END arbitratMethodName,
592
-        c.case_status ,
593
-        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
594
-        when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
595
-        when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
596
-        when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
597
-        when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
598
-        when 15 then '待仲裁文书送达' when 16 then '待案件归档'
599
-        ELSE '无案件状态'
600
-        END caseStatusName,
601
-        c.hear_date ,c.arbitrat_claims ,
602
-        c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
603
-        c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
604
-        c.update_by ,c.update_time,c.arbitrator_id,c.arbitrator_name,
605
-        p.payment_status ,
606
-        CASE p.payment_status when 1 then '已支付' when 0 then '未支付'
607
-        ELSE '无支付状态'
608
-        END paymentStatusName,c.pay_type,
609
-        CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
590
+               CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
591
+                                      ELSE '无审理方式'
592
+                   END arbitratMethodName,
593
+               c.case_status ,
594
+               CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
595
+                                  when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
596
+                                  when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
597
+                                  when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
598
+                                  when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
599
+                                  when 15 then '待仲裁文书送达' when 16 then '待案件归档'
600
+                                  ELSE '无案件状态'
601
+                   END caseStatusName,
602
+               c.hear_date ,c.arbitrat_claims ,
603
+               c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
604
+               c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
605
+               c.update_by ,c.update_time,c.arbitrator_id,c.arbitrator_name,
606
+               p.payment_status ,
607
+               CASE p.payment_status when 1 then '已支付' when 0 then '未支付'
608
+                                     ELSE '无支付状态'
609
+                   END paymentStatusName,c.pay_type,
610
+               CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
610 611
         from case_application c left join case_payment_record p on c.id  = p.case_id
611 612
         where c.case_status  = 3
612
-            AND c.id = #{id}
613
+          AND c.id = #{id}
613 614
 
614 615
     </select>
615 616
     <select id="selectCaseNumLike" resultType="java.lang.Integer">
@@ -621,4 +622,4 @@
621 622
     </select>
622 623
 
623 624
 
624
-</mapper>
625
+</mapper>