截止9.14开发
This commit is contained in:
+49
-12
@@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -19,40 +20,76 @@ import java.util.List;
|
||||
@RequestMapping("/evidence")
|
||||
public class CaseEvidenceController extends BaseController {
|
||||
private final ICaseEvidenceService caseEvidenceService;
|
||||
|
||||
@Autowired
|
||||
public CaseEvidenceController(ICaseEvidenceService caseEvidenceService) {
|
||||
this.caseEvidenceService = caseEvidenceService;
|
||||
}
|
||||
/**
|
||||
|
||||
/* *//**
|
||||
* 查询被申请人案件列表
|
||||
*
|
||||
* @param identityNum 身份证号
|
||||
* @return
|
||||
*/
|
||||
*//*
|
||||
@GetMapping("/respondent")
|
||||
public TableDataInfo getCaseListByRespondent(@RequestParam String identityNum
|
||||
,Integer pageNum,Integer pageSize){
|
||||
public TableDataInfo getCaseListByRespondent(@RequestParam String identityNum) {
|
||||
startPage();
|
||||
List<CaseEvidenceVO> list = caseEvidenceService.getCaseListByRespondent(identityNum);
|
||||
return getDataTable(list);
|
||||
}
|
||||
if (list != null) {
|
||||
return getDataTable(list);
|
||||
}
|
||||
return getDataTable(new ArrayList<>());
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 根据案件id查询案件详情
|
||||
* 被申请人根据案件id查询案件详情
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult getCaseDetailsById(@PathVariable Long id ){
|
||||
public AjaxResult getCaseDetailsById(@PathVariable Long id) {
|
||||
return caseEvidenceService.getCaseDetailsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 案件证据上传
|
||||
* @param file 附件
|
||||
*
|
||||
* @param file 附件
|
||||
* @param annexType 附件类型,立案申请书(1)、证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)
|
||||
* @param id 案件申请id
|
||||
* @param id 案件申请id
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/upload")
|
||||
public AjaxResult uploadEvidence(@RequestParam("file") MultipartFile file , Integer annexType , Long id){
|
||||
return caseEvidenceService.uploadEvidence(file,annexType,id);
|
||||
public AjaxResult uploadEvidence(@RequestParam("file") MultipartFile file, Integer annexType, Long id) {
|
||||
return caseEvidenceService.uploadEvidence(file, annexType, id);
|
||||
}
|
||||
|
||||
/* @GetMapping("/applicant")
|
||||
public TableDataInfo getCaseListByApplicant(@RequestParam String identityNum) {
|
||||
startPage();
|
||||
List<CaseEvidenceVO> list = caseEvidenceService.getCaseListByApplicant(identityNum);
|
||||
if (list != null) {
|
||||
return getDataTable(list);
|
||||
}
|
||||
return getDataTable(new ArrayList<>());
|
||||
}*/
|
||||
|
||||
/**
|
||||
* 查询当前用户案件列表
|
||||
* @param identityNum
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/all")
|
||||
public TableDataInfo getCaseListAll(@RequestParam String identityNum) {
|
||||
startPage();
|
||||
List<CaseEvidenceVO> list = caseEvidenceService.getCaseListAll(identityNum);
|
||||
if (list != null) {
|
||||
return getDataTable(list);
|
||||
}
|
||||
return getDataTable(new ArrayList<>());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ ruoyi:
|
||||
# 实例演示开关
|
||||
demoEnabled: true
|
||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||
profile: D:/ruoyi/uploadPath
|
||||
profile: /home/ruoyi/uploadPath
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
# 验证码类型 math 数字计算 char 字符验证
|
||||
@@ -142,5 +142,5 @@ elegent:
|
||||
appId: 2021003141676135
|
||||
callback:
|
||||
domain: http://121.40.189.20:9000/
|
||||
watch: true
|
||||
watch: false
|
||||
cycle: 10
|
||||
Reference in New Issue
Block a user