更新
1.添加权限限制接口访问条件
This commit is contained in:
@@ -36,7 +36,7 @@ public class EntrustAlterApplyController {
|
|||||||
|
|
||||||
@ApiOperation(value = "查询所有申请修改委托消息分页接口", notes = "查询所有申请修改委托消息分页接口")
|
@ApiOperation(value = "查询所有申请修改委托消息分页接口", notes = "查询所有申请修改委托消息分页接口")
|
||||||
@PostMapping("/page")
|
@PostMapping("/page")
|
||||||
// @PreAuthorize("@pms.hasPermission('EntrustAlterApplyQuery')") // 委托申请修改消息查询权限
|
@PreAuthorize("@pms.hasPermission('EntrustAlterApplyQuery')") // 委托申请修改消息查询权限
|
||||||
public R<IPage<EntrustAlterApplyVO>> page(@RequestBody EntrustAlterApplyQuery query) {
|
public R<IPage<EntrustAlterApplyVO>> page(@RequestBody EntrustAlterApplyQuery query) {
|
||||||
IPage<EntrustAlterApplyVO> page = entrustAlterApplyService.voPage(query);
|
IPage<EntrustAlterApplyVO> page = entrustAlterApplyService.voPage(query);
|
||||||
return R.ok(page);
|
return R.ok(page);
|
||||||
@@ -44,7 +44,7 @@ public class EntrustAlterApplyController {
|
|||||||
|
|
||||||
@ApiOperation(value = "保存或提交委托申请修改消息", notes = "保存委托申请修改消息")
|
@ApiOperation(value = "保存或提交委托申请修改消息", notes = "保存委托申请修改消息")
|
||||||
@PostMapping("/save")
|
@PostMapping("/save")
|
||||||
// @PreAuthorize("@pms.hasPermission('EntrustAlterApplySubmit')") // 委托申请修改消息保存提交权限
|
@PreAuthorize("@pms.hasPermission('EntrustAlterApplySubmit')") // 委托申请修改消息保存提交权限
|
||||||
public R save(@RequestBody @Valid EntrustAlterApplyDTO dto) {
|
public R save(@RequestBody @Valid EntrustAlterApplyDTO dto) {
|
||||||
EntrustAlterApplyVO vo = null;
|
EntrustAlterApplyVO vo = null;
|
||||||
try {
|
try {
|
||||||
@@ -58,7 +58,7 @@ public class EntrustAlterApplyController {
|
|||||||
|
|
||||||
@ApiOperation(value = "修改委托申请修改消息", notes = "修改委托申请修改消息")
|
@ApiOperation(value = "修改委托申请修改消息", notes = "修改委托申请修改消息")
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
// @PreAuthorize("@pms.hasPermission('EntrustAlterApplyEdit')") // 委托申请修改消息修改权限
|
@PreAuthorize("@pms.hasPermission('EntrustAlterApplyEdit')") // 委托申请修改消息修改权限
|
||||||
public R update(@RequestBody @Valid EntrustAlterApplyDTO dto) {
|
public R update(@RequestBody @Valid EntrustAlterApplyDTO dto) {
|
||||||
Boolean success = null;
|
Boolean success = null;
|
||||||
try {
|
try {
|
||||||
@@ -72,7 +72,7 @@ public class EntrustAlterApplyController {
|
|||||||
|
|
||||||
@ApiOperation(value = "审核提交委托申请修改消息", notes = "审核提交委托申请修改消息")
|
@ApiOperation(value = "审核提交委托申请修改消息", notes = "审核提交委托申请修改消息")
|
||||||
@PutMapping("/approve")
|
@PutMapping("/approve")
|
||||||
// @PreAuthorize("@pms.hasPermission('EntrustAlterApplyApprove')") // 委托申请修改消息审核权限
|
@PreAuthorize("@pms.hasPermission('EntrustAlterApplyApprove')") // 委托申请修改消息审核权限
|
||||||
public R approve(@RequestBody @Valid EntrustAlterApplyApproveDTO approveDTO) {
|
public R approve(@RequestBody @Valid EntrustAlterApplyApproveDTO approveDTO) {
|
||||||
Boolean success = null;
|
Boolean success = null;
|
||||||
try {
|
try {
|
||||||
@@ -86,7 +86,7 @@ public class EntrustAlterApplyController {
|
|||||||
|
|
||||||
@ApiOperation(value = "删除委托申请修改消息", notes = "删除委托申请修改消息, 只能删除为提交状态的消息")
|
@ApiOperation(value = "删除委托申请修改消息", notes = "删除委托申请修改消息, 只能删除为提交状态的消息")
|
||||||
@PostMapping("/delete")
|
@PostMapping("/delete")
|
||||||
// @PreAuthorize("@pms.hasPermission('EntrustAlterApplyDelete')") // 委托申请修改消息删除权限
|
@PreAuthorize("@pms.hasPermission('EntrustAlterApplyDelete')") // 委托申请修改消息删除权限
|
||||||
public R delete(@RequestBody List<String> ids) {
|
public R delete(@RequestBody List<String> ids) {
|
||||||
Boolean success = null;
|
Boolean success = null;
|
||||||
try {
|
try {
|
||||||
@@ -100,6 +100,7 @@ public class EntrustAlterApplyController {
|
|||||||
|
|
||||||
@ApiOperation(value = "审核通过后,调用该接口修改委托案件简要、鉴定要求,x", notes = "审核通过后,调用该接口修改委托案件简要、鉴定要求")
|
@ApiOperation(value = "审核通过后,调用该接口修改委托案件简要、鉴定要求,x", notes = "审核通过后,调用该接口修改委托案件简要、鉴定要求")
|
||||||
@PutMapping("/updateEntrust")
|
@PutMapping("/updateEntrust")
|
||||||
|
@PreAuthorize("@pms.hasPermission('EntrustAlterApplyUpdateEntrust')") // 委托申请修改消息修改委托案件简要、鉴定要求权限
|
||||||
public R updateEntrust(@Valid @RequestBody ApprovedUpdateEntrustDTO dto) {
|
public R updateEntrust(@Valid @RequestBody ApprovedUpdateEntrustDTO dto) {
|
||||||
Boolean success = entrustAlterApplyService.updateEntrust(dto);
|
Boolean success = entrustAlterApplyService.updateEntrust(dto);
|
||||||
return R.ok(success).setMsg(success ? "修改成功" : "修改失败");
|
return R.ok(success).setMsg(success ? "修改成功" : "修改失败");
|
||||||
|
|||||||
Reference in New Issue
Block a user