Procházet zdrojové kódy

Revert "Revert "导入时加案件名称""

This reverts commit 9c8bb4b00d089cc54c9da51b5afff2d1d9dd9b5f.
18792927508 před 2 roky
rodič
revize
07a3dea9cc

+ 4
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Zobrazit soubor

@@ -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;

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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(),