病案管理页新增打回按钮的方法
This commit is contained in:
@@ -113,4 +113,12 @@ public class nxexpressController {
|
||||
ExcelUtils.write(response, "病案申请.xls", "数据", nxexpressExcelVO.class, datas);
|
||||
}
|
||||
|
||||
@PutMapping("/reject")
|
||||
@ApiOperation("打回病案申请")
|
||||
@PreAuthorize("@ss.hasPermission('system:nxexpress:update')")
|
||||
public CommonResult<Boolean> rejectnxexpress(@Valid @RequestBody nxexpressRejectReqVO rejectReqVO) {
|
||||
nxexpressService.rejectnxexpress(rejectReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.jojubanking.boot.module.system.controller.admin.nxexpress.vo;
|
||||
|
||||
import lombok.*;
|
||||
import io.swagger.annotations.*;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
@ApiModel("管理后台 - 病案申请打回 Request VO")
|
||||
@Data
|
||||
public class nxexpressRejectReqVO {
|
||||
|
||||
@ApiModelProperty(value = "主键ID", required = true)
|
||||
@NotNull(message = "主键ID不能为空")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "状态(4已打回)", required = true)
|
||||
@NotNull(message = "状态不能为空")
|
||||
private Integer status;
|
||||
|
||||
}
|
||||
@@ -67,4 +67,11 @@ public interface nxexpressService {
|
||||
*/
|
||||
List<nxexpressDO> getnxexpressList(nxexpressExportReqVO exportReqVO);
|
||||
|
||||
/**
|
||||
* 打回病案申请
|
||||
*
|
||||
* @param rejectReqVO 打回信息
|
||||
*/
|
||||
void rejectnxexpress(@Valid nxexpressRejectReqVO rejectReqVO);
|
||||
|
||||
}
|
||||
|
||||
@@ -79,4 +79,15 @@ public class nxexpressServiceImpl implements nxexpressService {
|
||||
return nxexpressMapper.selectList(exportReqVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void rejectnxexpress(nxexpressRejectReqVO rejectReqVO) {
|
||||
// 校验存在
|
||||
this.validatenxexpressExists(rejectReqVO.getId());
|
||||
// 更新状态
|
||||
nxexpressDO updateObj = new nxexpressDO();
|
||||
updateObj.setId(rejectReqVO.getId());
|
||||
updateObj.setStatus(rejectReqVO.getStatus());
|
||||
nxexpressMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user