Parcourir la source

待办案件修改

18792927508 il y a 2 ans
Parent
révision
6bcb7ac3e8

+ 5
- 8
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java Voir le fichier

@@ -101,17 +101,14 @@ public class CaseEvidenceController extends BaseController {
101 101
     /**
102 102
      * 查询当前用户案件列表
103 103
      *
104
-     * @param identityNum
104
+     * @param caseStatus
105 105
      * @return
106 106
      */
107 107
     @GetMapping("/all")
108
-    public TableDataInfo getCaseListAll(@RequestParam(required = false) String identityNum) {
109
-        startPage();
110
-        List<CaseEvidenceVO> list = caseEvidenceService.getCaseListAll(identityNum);
111
-        if (list != null) {
112
-            return getDataTable(list);
113
-        }
114
-        return getDataTable(new ArrayList<>());
108
+    public AjaxResult getCaseListAll(@RequestParam("caseStatus") Integer caseStatus) {
109
+
110
+       return success(caseEvidenceService.getCaseListAll(caseStatus));
111
+
115 112
     }
116 113
 
117 114
     /**

+ 12
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseEvidenceVO.java Voir le fichier

@@ -1,8 +1,11 @@
1 1
 package com.ruoyi.wisdomarbitrate.domain.vo;
2 2
 
3 3
 
4
+import com.fasterxml.jackson.annotation.JsonFormat;
4 5
 import lombok.Data;
5 6
 
7
+import java.util.Date;
8
+
6 9
 @Data
7 10
 public class CaseEvidenceVO {
8 11
     /**
@@ -25,4 +28,13 @@ public class CaseEvidenceVO {
25 28
      * 案件状态
26 29
      */
27 30
     private Integer caseStatus;
31
+    /**
32
+     * 房间号
33
+     */
34
+    private Long roomId;
35
+    /**
36
+     * 开庭时间
37
+     */
38
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
39
+    private Date scheduleStartTime;
28 40
 }

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseEvidenceService.java Voir le fichier

@@ -17,7 +17,7 @@ public interface ICaseEvidenceService {
17 17
 
18 18
     AjaxResult uploadEvidence(MultipartFile file, Integer annexType, Long id,String userName,Long userId);
19 19
 
20
-    List<CaseEvidenceVO> getCaseListAll(String identityNum);
20
+    List<CaseEvidenceVO> getCaseListAll(Integer caseStatus);
21 21
 
22 22
     AjaxResult evidenceConfirmation(CaseApplication caseApplication);
23 23
 

+ 5
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseEvidenceServiceImpl.java Voir le fichier

@@ -147,10 +147,10 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
147 147
     IdentityAuthenticationMapper identityAuthenticationMapper;
148 148
 
149 149
     @Override
150
-    public List<CaseEvidenceVO> getCaseListAll(String identityNum) {
150
+    public List<CaseEvidenceVO> getCaseListAll(Integer caseStatus) {
151 151
         // 是否为超级管理员
152 152
         int adMinFlag=0;
153
-        if (StringUtils.isBlank(identityNum)) {
153
+        String identityNum = "";
154 154
             IdentityAuthentication authentication = new IdentityAuthentication();
155 155
             LoginUser loginUser = SecurityUtils.getLoginUser();
156 156
             // 查询该用户的角色
@@ -175,8 +175,8 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
175 175
                   identityNum = authentication1.getIdentityNo();
176 176
               }
177 177
           }
178
-        }
179
-        List<Integer> caseStatusList = Arrays.asList(CaseApplicationConstants.CASE_CROSSEXAMI);
178
+
179
+        List<Integer> caseStatusList = Arrays.asList(caseStatus);
180 180
         return getCaseEvidenceVOList(identityNum, caseStatusList, 2);
181 181
     }
182 182
 
@@ -430,6 +430,7 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
430 430
 
431 431
     private List<CaseEvidenceVO> getCaseEvidenceVOList(String identityNum, List<Integer> caseStatusList, Integer identityType) {
432 432
         List<CaseEvidenceVO> caseListByRespondent = caseEvidenceMapper.getCaseListByRespondent(identityNum, caseStatusList, identityType);
433
+       // todo 返回房间号和开庭时间
433 434
         if (caseListByRespondent != null && caseListByRespondent.size() > 0) {
434 435
             for (CaseEvidenceVO caseEvidenceVO : caseListByRespondent) {
435 436
                 //根据案件id查询姓名

+ 5
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseEvidenceMapper.xml Voir le fichier

@@ -7,10 +7,13 @@
7 7
         <id     property="id"       column="id"      />
8 8
         <result property="caseNum"       column="case_num"      />
9 9
         <result property="caseStatus"     column="case_status"    />
10
+        <result property="roomId"     column="room_id"    />
11
+        <result property="scheduleStartTime"     column="schedule_start_time"    />
10 12
     </resultMap>
11 13
     <select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
12
-        select DISTINCT(c.id) id, c.case_num,c.case_status
13
-        from case_application as c  ,case_affiliate as d
14
+        select DISTINCT(c.id) id, c.case_num,c.case_status,rc.room_id,rc.schedule_start_time
15
+        from case_application as c  join case_affiliate as d on c.id = d.case_appli_id
16
+        left join reserved_conference rc on rc.case_id=c.id
14 17
         where c.id = d.case_appli_id
15 18
         <if test="identityNum != null and identityNum != ''">
16 19
             and d.identity_num = #{identityNum}