Procházet zdrojové kódy

Merge branch 'wq' of SH-Arbitrate/Arbitrate-Backend into dev

wangqiong123 před 2 roky
rodič
revize
0e8580143b

+ 60
- 59
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Zobrazit soubor

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