Просмотр исходного кода

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into hjb

hejinbo 2 лет назад
Родитель
Сommit
5b7b839395

+ 4
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Просмотреть файл

@@ -16,6 +16,9 @@ public class CaseApplication  extends BaseEntity {
16 16
 
17 17
     /** ID */
18 18
     private Long id;
19
+    /** 案件名称 */
20
+    @Excel(name = "案件名称")
21
+    private String caseName;
19 22
     /** 案件编号 */
20 23
 //    @Excel(name = "案件编号")
21 24
     private String caseNum;
@@ -127,8 +130,7 @@ public class CaseApplication  extends BaseEntity {
127 130
     /** 仲裁员名称 */
128 131
     private String arbitratorName;
129 132
 
130
-    /** 案件名称 */
131
-    private String caseName;
133
+
132 134
 
133 135
     /** 案件描述 */
134 136
     private String caseDescribe;

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Просмотреть файл

@@ -582,7 +582,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
582 582
             for (CaseAttach caseAttach : caseAttachList) {
583 583
                 if (caseAttach.getAnnexType() == 3) {
584 584
                     String annexName = caseAttach.getAnnexName();
585
-                    String prefix = "/profile/upload/";
585
+                    String prefix = "/profile/upload";
586 586
                     int startIndex = prefix.length();
587 587
                     String path = caseAttach.getAnnexPath() + annexName.substring(startIndex);
588 588
                     file = new File(path);

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Просмотреть файл

@@ -1472,6 +1472,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1472 1472
      * @param failureMsg
1473 1473
      */
1474 1474
     private void validBaseColumn(CaseApplication caseApplication, StringBuilder failureMsg) {
1475
+        if( StrUtil.isEmpty(caseApplication.getCaseName())){
1476
+            failureMsg.append("【案件名称】字段不能为空;");
1477
+        }else if(caseApplication.getCaseName().length()>50){
1478
+            failureMsg.append("【案件名称】字段超出指定长度,最大长度为50;");
1479
+        }
1475 1480
         BigDecimal caseSubjectAmount = caseApplication.getCaseSubjectAmount();
1476 1481
         if(null== caseSubjectAmount){
1477 1482
             failureMsg.append("【案件标的】字段不合法;");
@@ -2391,6 +2396,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2391 2396
     private void copyCaseApplication(CaseApplication caseApplicationinsertDiffer, CaseApplication caseApplicationNew) {
2392 2397
         caseApplicationNew.setArbitratClaims(caseApplicationinsertDiffer.getArbitratClaims());
2393 2398
         caseApplicationNew.setCaseNum(caseApplicationinsertDiffer.getCaseNum());
2399
+        caseApplicationNew.setCaseName(caseApplicationinsertDiffer.getCaseName());
2394 2400
         caseApplicationNew.setCaseSubjectAmount(caseApplicationinsertDiffer.getCaseSubjectAmount());
2395 2401
         caseApplicationNew.setLoanStartDate(caseApplicationinsertDiffer.getLoanStartDate());
2396 2402
         caseApplicationNew.setLoanEndDate(caseApplicationinsertDiffer.getLoanEndDate());

+ 2
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Просмотреть файл

@@ -372,7 +372,7 @@
372 372
 
373 373
     <insert id="insertCaseApplication" parameterType="CaseApplication" useGeneratedKeys="true" keyProperty="id">
374 374
         insert into case_application(
375
-
375
+        <if test="caseName != null  and caseName != ''">case_name ,</if>
376 376
         <if test="caseNum != null and caseNum != ''">case_num,</if>
377 377
         <if test="caseSubjectAmount != null">case_subject_amount,</if>
378 378
         register_date,
@@ -400,6 +400,7 @@
400 400
         <if test="importFlag != null ">import_flag,</if>
401 401
         create_time
402 402
         )values(
403
+        <if test="caseName != null and caseName != ''">#{caseName},</if>
403 404
         <if test="caseNum != null and caseNum != ''">#{caseNum},</if>
404 405
         <if test="caseSubjectAmount != null">#{caseSubjectAmount},</if>
405 406
         sysdate(),

+ 3
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/DeptIdentifyMapper.xml Просмотреть файл

@@ -34,6 +34,9 @@
34 34
             <if test="deptId != null">
35 35
                 AND d.dept_id = #{deptId}
36 36
             </if>
37
+            <if test="userId != null">
38
+                AND d.user_id = #{userId}
39
+            </if>
37 40
         </where>
38 41
     </select>
39 42
 

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/SendMailRecordMapper.xml Просмотреть файл

@@ -25,6 +25,7 @@
25 25
                 AND c.case_num = #{caseNum}
26 26
             </if>
27 27
         </where>
28
+        order by s.send_time desc
28 29
     </select>
29 30
 
30 31
     <insert id="saveSendMailRecord">