ソースを参照

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

qtz 2 年 前
コミット
c7988344d3

+ 2
- 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java ファイルの表示

@@ -457,8 +457,8 @@ public class CaseApplicationController extends BaseController {
457 457
      * @throws IOException
458 458
      */
459 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,7 +113,7 @@ public interface ICaseApplicationService {
113 113
 
114 114
     AjaxResult deleteRoom(  String roomId);
115 115
 
116
-    AjaxResult uploadCaseZipFile(MultipartFile file);
116
+    AjaxResult uploadCaseZipFile(MultipartFile file,Long templateId);
117 117
 
118 118
     /**
119 119
      * 根据附件id修改案件id

+ 2
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java ファイルの表示

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

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

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