Merge branch 'wq' of SH-Arbitrate/Arbitrate-Backend into dev
This commit was merged in pull request #246.
This commit is contained in:
+5
-8
@@ -101,17 +101,14 @@ public class CaseEvidenceController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询当前用户案件列表
|
* 查询当前用户案件列表
|
||||||
*
|
*
|
||||||
* @param identityNum
|
* @param caseStatus
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/all")
|
@GetMapping("/all")
|
||||||
public TableDataInfo getCaseListAll(@RequestParam(required = false) String identityNum) {
|
public AjaxResult getCaseListAll(@RequestParam("caseStatus") Integer caseStatus) {
|
||||||
startPage();
|
|
||||||
List<CaseEvidenceVO> list = caseEvidenceService.getCaseListAll(identityNum);
|
return success(caseEvidenceService.getCaseListAll(caseStatus));
|
||||||
if (list != null) {
|
|
||||||
return getDataTable(list);
|
|
||||||
}
|
|
||||||
return getDataTable(new ArrayList<>());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
package com.ruoyi.wisdomarbitrate.domain.vo;
|
package com.ruoyi.wisdomarbitrate.domain.vo;
|
||||||
|
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class CaseEvidenceVO {
|
public class CaseEvidenceVO {
|
||||||
/**
|
/**
|
||||||
@@ -25,4 +28,13 @@ public class CaseEvidenceVO {
|
|||||||
* 案件状态
|
* 案件状态
|
||||||
*/
|
*/
|
||||||
private Integer caseStatus;
|
private Integer caseStatus;
|
||||||
|
/**
|
||||||
|
* 房间号
|
||||||
|
*/
|
||||||
|
private Long roomId;
|
||||||
|
/**
|
||||||
|
* 开庭时间
|
||||||
|
*/
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date scheduleStartTime;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ public interface ICaseEvidenceService {
|
|||||||
|
|
||||||
AjaxResult uploadEvidence(MultipartFile file, Integer annexType, Long id,String userName,Long userId);
|
AjaxResult uploadEvidence(MultipartFile file, Integer annexType, Long id,String userName,Long userId);
|
||||||
|
|
||||||
List<CaseEvidenceVO> getCaseListAll(String identityNum);
|
List<CaseEvidenceVO> getCaseListAll(Integer caseStatus);
|
||||||
|
|
||||||
AjaxResult evidenceConfirmation(CaseApplication caseApplication);
|
AjaxResult evidenceConfirmation(CaseApplication caseApplication);
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -147,10 +147,10 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
|||||||
IdentityAuthenticationMapper identityAuthenticationMapper;
|
IdentityAuthenticationMapper identityAuthenticationMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CaseEvidenceVO> getCaseListAll(String identityNum) {
|
public List<CaseEvidenceVO> getCaseListAll(Integer caseStatus) {
|
||||||
// 是否为超级管理员
|
// 是否为超级管理员
|
||||||
int adMinFlag=0;
|
int adMinFlag=0;
|
||||||
if (StringUtils.isBlank(identityNum)) {
|
String identityNum = "";
|
||||||
IdentityAuthentication authentication = new IdentityAuthentication();
|
IdentityAuthentication authentication = new IdentityAuthentication();
|
||||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
// 查询该用户的角色
|
// 查询该用户的角色
|
||||||
@@ -175,8 +175,8 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
|||||||
identityNum = authentication1.getIdentityNo();
|
identityNum = authentication1.getIdentityNo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
List<Integer> caseStatusList = Arrays.asList(CaseApplicationConstants.CASE_CROSSEXAMI);
|
List<Integer> caseStatusList = Arrays.asList(caseStatus);
|
||||||
return getCaseEvidenceVOList(identityNum, caseStatusList, 2);
|
return getCaseEvidenceVOList(identityNum, caseStatusList, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -430,6 +430,7 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
|||||||
|
|
||||||
private List<CaseEvidenceVO> getCaseEvidenceVOList(String identityNum, List<Integer> caseStatusList, Integer identityType) {
|
private List<CaseEvidenceVO> getCaseEvidenceVOList(String identityNum, List<Integer> caseStatusList, Integer identityType) {
|
||||||
List<CaseEvidenceVO> caseListByRespondent = caseEvidenceMapper.getCaseListByRespondent(identityNum, caseStatusList, identityType);
|
List<CaseEvidenceVO> caseListByRespondent = caseEvidenceMapper.getCaseListByRespondent(identityNum, caseStatusList, identityType);
|
||||||
|
// todo 返回房间号和开庭时间
|
||||||
if (caseListByRespondent != null && caseListByRespondent.size() > 0) {
|
if (caseListByRespondent != null && caseListByRespondent.size() > 0) {
|
||||||
for (CaseEvidenceVO caseEvidenceVO : caseListByRespondent) {
|
for (CaseEvidenceVO caseEvidenceVO : caseListByRespondent) {
|
||||||
//根据案件id查询姓名
|
//根据案件id查询姓名
|
||||||
|
|||||||
@@ -7,10 +7,13 @@
|
|||||||
<id property="id" column="id" />
|
<id property="id" column="id" />
|
||||||
<result property="caseNum" column="case_num" />
|
<result property="caseNum" column="case_num" />
|
||||||
<result property="caseStatus" column="case_status" />
|
<result property="caseStatus" column="case_status" />
|
||||||
|
<result property="roomId" column="room_id" />
|
||||||
|
<result property="scheduleStartTime" column="schedule_start_time" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
|
<select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
|
||||||
select DISTINCT(c.id) id, c.case_num,c.case_status
|
select DISTINCT(c.id) id, c.case_num,c.case_status,rc.room_id,rc.schedule_start_time
|
||||||
from case_application as c ,case_affiliate as d
|
from case_application as c join case_affiliate as d on c.id = d.case_appli_id
|
||||||
|
left join reserved_conference rc on rc.case_id=c.id
|
||||||
where c.id = d.case_appli_id
|
where c.id = d.case_appli_id
|
||||||
<if test="identityNum != null and identityNum != ''">
|
<if test="identityNum != null and identityNum != ''">
|
||||||
and d.identity_num = #{identityNum}
|
and d.identity_num = #{identityNum}
|
||||||
|
|||||||
Reference in New Issue
Block a user