qitz 2 лет назад
Родитель
Сommit
3cc3be3ee0

+ 2
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Просмотреть файл

457
      * @throws IOException
457
      * @throws IOException
458
      */
458
      */
459
     @PostMapping("/uploadCaseZipFile")
459
     @PostMapping("/uploadCaseZipFile")
460
-    public AjaxResult uploadCaseZipFile(@RequestParam("file") MultipartFile file) throws IOException {
461
-        return caseApplicationService.uploadCaseZipFile(file);
460
+    public AjaxResult uploadCaseZipFile(@RequestParam("file") MultipartFile file,@RequestParam("templateId")  Long templateId) throws IOException {
461
+        return caseApplicationService.uploadCaseZipFile(file,templateId);
462
     }
462
     }
463
 
463
 
464
     /**
464
     /**

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

113
 
113
 
114
     AjaxResult deleteRoom(  String roomId);
114
     AjaxResult deleteRoom(  String roomId);
115
 
115
 
116
-    AjaxResult uploadCaseZipFile(MultipartFile file);
116
+    AjaxResult uploadCaseZipFile(MultipartFile file,Long templateId);
117
 
117
 
118
     /**
118
     /**
119
      * 根据附件id修改案件id
119
      * 根据附件id修改案件id

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

2989
     }
2989
     }
2990
 
2990
 
2991
     @Override
2991
     @Override
2992
-    public AjaxResult uploadCaseZipFile(MultipartFile file) {
2992
+    public AjaxResult uploadCaseZipFile(MultipartFile file,Long templateId) {
2993
         if (file.isEmpty()) {
2993
         if (file.isEmpty()) {
2994
             return AjaxResult.error("请选择要上传的文件");
2994
             return AjaxResult.error("请选择要上传的文件");
2995
         }
2995
         }
3039
                     // todo 从压缩包中识别各字段填充到数据库
3039
                     // todo 从压缩包中识别各字段填充到数据库
3040
                     //调用新增案件的接口
3040
                     //调用新增案件的接口
3041
                     CaseApplication caseApplication = new CaseApplication();
3041
                     CaseApplication caseApplication = new CaseApplication();
3042
+                    caseApplication.setTemplateId(templateId);
3042
                     //默认案件标的 todo 案件标的是什么
3043
                     //默认案件标的 todo 案件标的是什么
3043
                     caseApplication.setCaseSubjectAmount(new BigDecimal(1));
3044
                     caseApplication.setCaseSubjectAmount(new BigDecimal(1));
3044
                     // todo 这些以后要去掉,不在案件基本信息表维护,现在往基本信息表设置字段是因为修改以及查询详情的时候页面中字段是固定的,以后也要动态维护字段
3045
                     // todo 这些以后要去掉,不在案件基本信息表维护,现在往基本信息表设置字段是因为修改以及查询详情的时候页面中字段是固定的,以后也要动态维护字段

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

1253
         <if test="createBy != null  and createBy != ''">create_by,</if>
1253
         <if test="createBy != null  and createBy != ''">create_by,</if>
1254
         <if test="importFlag != null ">import_flag,</if>
1254
         <if test="importFlag != null ">import_flag,</if>
1255
         <if test="version != null ">version,</if>
1255
         <if test="version != null ">version,</if>
1256
+        <if test="templateId != null ">template_id,</if>
1256
         interest_rate,
1257
         interest_rate,
1257
         outstanding_money,
1258
         outstanding_money,
1258
         facts,
1259
         facts,
1290
         <if test="createBy != null  and createBy != ''">#{createBy},</if>
1291
         <if test="createBy != null  and createBy != ''">#{createBy},</if>
1291
         <if test="importFlag != null ">#{importFlag},</if>
1292
         <if test="importFlag != null ">#{importFlag},</if>
1292
         <if test="version != null ">#{version},</if>
1293
         <if test="version != null ">#{version},</if>
1294
+        <if test="templateId != null ">#{templateId},</if>
1293
         #{interestRate},
1295
         #{interestRate},
1294
         #{outstandingMoney},
1296
         #{outstandingMoney},
1295
         #{facts},
1297
         #{facts},