修改申请
This commit is contained in:
+6
-3
@@ -53,7 +53,6 @@ public class CaseApplicationController extends BaseController {
|
||||
}
|
||||
startPage();
|
||||
List<CaseApplication> list = caseApplicationService.selectCaseApplicationListByRole(caseApplication);
|
||||
// List<CaseApplication> list = caseApplicationService.selectCaseApplicationList(caseApplication);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@@ -91,7 +90,7 @@ public class CaseApplicationController extends BaseController {
|
||||
public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
|
||||
caseApplication.setUpdateBy(getUsername());
|
||||
return success(caseApplicationService.editCaseApplication(caseApplication));
|
||||
return caseApplicationService.editCaseApplication(caseApplication);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,11 +122,14 @@ public class CaseApplicationController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询立案信息
|
||||
* 查询立案信息 todo 必须传version
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
|
||||
@PostMapping("/selectCaseApplication")
|
||||
public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
if(caseApplication.getVersion()==null){
|
||||
return error("参数校验失败");
|
||||
}
|
||||
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
|
||||
return success(caseApplicationselect);
|
||||
}
|
||||
@@ -428,4 +430,5 @@ public class CaseApplicationController extends BaseController {
|
||||
|
||||
return success(caseApplicationService.reserveConferenceList(caseId));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.web.controller.wisdomarbitrate;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.UpdateSubmitVO;
|
||||
import com.ruoyi.wisdomarbitrate.service.CaseApplicationLogService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
import static com.ruoyi.common.core.domain.AjaxResult.success;
|
||||
|
||||
/**
|
||||
* @author wangqiong
|
||||
* @description 案件日志
|
||||
* @date 2023-11-17 13:58
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping (value = "/caseApplicationLog")
|
||||
public class CaseApplicationLogController {
|
||||
|
||||
@Autowired
|
||||
private CaseApplicationLogService caseApplicationLogService;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @author wangqiong
|
||||
* @date 2023/11/17
|
||||
**/
|
||||
@PostMapping("/insert")
|
||||
public AjaxResult insert(@RequestBody CaseApplication caseApplicationLog){
|
||||
return success(caseApplicationLogService.insert(caseApplicationLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 刪除
|
||||
* @author wangqiong
|
||||
* @date 2023/11/17
|
||||
**/
|
||||
@PostMapping("/delete")
|
||||
public AjaxResult delete(Long id){
|
||||
return success(caseApplicationLogService.delete(id));
|
||||
}
|
||||
/**
|
||||
* 修改的案件提交到秘书
|
||||
* @author wangqiong
|
||||
* @date 2023/11/17
|
||||
**/
|
||||
@PostMapping("/submit")
|
||||
public AjaxResult submit(@RequestBody UpdateSubmitVO vo){
|
||||
if(vo.getCaseId()==null || vo.getVersion()==null){
|
||||
return AjaxResult.error("参数校验错误");
|
||||
}
|
||||
return caseApplicationLogService.submit(vo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改撤销申请
|
||||
* @author wangqiong
|
||||
* @date 2023/11/17
|
||||
**/
|
||||
@PostMapping("/revoke")
|
||||
public AjaxResult revoke(@RequestBody UpdateSubmitVO vo){
|
||||
if(vo.getCaseId()==null || vo.getVersion()==null){
|
||||
return AjaxResult.error("参数校验错误");
|
||||
}
|
||||
// todo 需确定
|
||||
return caseApplicationLogService.revoke(vo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询 根据主键 id 查询
|
||||
* @author wangqiong
|
||||
* @date 2023/11/17
|
||||
**/
|
||||
@GetMapping("/selectByCaseIdAndVersion")
|
||||
public AjaxResult selectByCaseIdAndVersion(@RequestParam(value = "caseId") Long caseId,@RequestParam(value = "version")Integer version ){
|
||||
return success(caseApplicationLogService.selectByCaseIdAndVersion(caseId,version));
|
||||
}
|
||||
/**
|
||||
* 秘书审核修改的案件
|
||||
* @author wangqiong
|
||||
* @date 2023/11/17
|
||||
**/
|
||||
@PostMapping("/updateAudit")
|
||||
public AjaxResult updateAudit(@RequestBody UpdateSubmitVO vo){
|
||||
if(vo.getCaseId()==null || vo.getVersion()==null || vo.getIsAgree()==null || vo.getUpdateSubmitStatus()==null){
|
||||
return AjaxResult.error("参数校验错误");
|
||||
}
|
||||
return caseApplicationLogService.updateAudit(vo);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user