Преглед изворни кода

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

wangqiong123 пре 2 година
родитељ
комит
45336e3a96

+ 5
- 8
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java Прегледај датотеку

101
     /**
101
     /**
102
      * 查询当前用户案件列表
102
      * 查询当前用户案件列表
103
      *
103
      *
104
-     * @param identityNum
104
+     * @param caseStatus
105
      * @return
105
      * @return
106
      */
106
      */
107
     @GetMapping("/all")
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 Прегледај датотеку

1
 package com.ruoyi.wisdomarbitrate.domain.vo;
1
 package com.ruoyi.wisdomarbitrate.domain.vo;
2
 
2
 
3
 
3
 
4
+import com.fasterxml.jackson.annotation.JsonFormat;
4
 import lombok.Data;
5
 import lombok.Data;
5
 
6
 
7
+import java.util.Date;
8
+
6
 @Data
9
 @Data
7
 public class CaseEvidenceVO {
10
 public class CaseEvidenceVO {
8
     /**
11
     /**
25
      * 案件状态
28
      * 案件状态
26
      */
29
      */
27
     private Integer caseStatus;
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 Прегледај датотеку

17
 
17
 
18
     AjaxResult uploadEvidence(MultipartFile file, Integer annexType, Long id,String userName,Long userId);
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
     AjaxResult evidenceConfirmation(CaseApplication caseApplication);
22
     AjaxResult evidenceConfirmation(CaseApplication caseApplication);
23
 
23
 

+ 5
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseEvidenceServiceImpl.java Прегледај датотеку

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

+ 5
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseEvidenceMapper.xml Прегледај датотеку

7
         <id     property="id"       column="id"      />
7
         <id     property="id"       column="id"      />
8
         <result property="caseNum"       column="case_num"      />
8
         <result property="caseNum"       column="case_num"      />
9
         <result property="caseStatus"     column="case_status"    />
9
         <result property="caseStatus"     column="case_status"    />
10
+        <result property="roomId"     column="room_id"    />
11
+        <result property="scheduleStartTime"     column="schedule_start_time"    />
10
     </resultMap>
12
     </resultMap>
11
     <select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
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
         where c.id = d.case_appli_id
17
         where c.id = d.case_appli_id
15
         <if test="identityNum != null and identityNum != ''">
18
         <if test="identityNum != null and identityNum != ''">
16
             and d.identity_num = #{identityNum}
19
             and d.identity_num = #{identityNum}