新增返修增删查改功能
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run
This commit is contained in:
parent
c17781eed0
commit
7587fb4a28
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.process;
|
||||
|
||||
import cn.iocoder.yudao.module.system.dal.mysql.process.ProcessMapper;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
@ -10,10 +11,12 @@ import cn.iocoder.yudao.framework.common.pojo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.process.ProcessDO;
|
||||
import cn.iocoder.yudao.module.system.service.process.ProcessService;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
import javax.annotation.*;
|
||||
import javax.validation.*;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
@ -25,7 +28,8 @@ public class ProcessController {
|
||||
|
||||
@Resource
|
||||
private ProcessService processService;
|
||||
|
||||
@Resource
|
||||
private ProcessMapper processMapper;
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得危急值记录")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@ -40,5 +44,20 @@ public class ProcessController {
|
||||
PageResult<ProcessDO> pageResult = processService.getProcessPage(pageReqVO);
|
||||
return success(pageResult);
|
||||
}
|
||||
|
||||
@PostMapping("/save")
|
||||
@Operation(summary = "返修申请插入")
|
||||
public CommonResult<Boolean> save(@RequestBody ProcessSaveReqVO processSaveReqVO) {
|
||||
ProcessDO process = new ProcessDO();
|
||||
process.setId(UUID.randomUUID().toString());
|
||||
process.setOrgId(processSaveReqVO.getOrgId());
|
||||
process.setExamId(processSaveReqVO.getExamId());
|
||||
process.setRegId(processSaveReqVO.getRegId());
|
||||
process.setProcessContent(processSaveReqVO.getProcessContent());
|
||||
process.setApplyDoctor(processSaveReqVO.getApplyDoctor());
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
process.setApplyDateTime(LocalDateTime.parse(processSaveReqVO.getApplyDateTime(), formatter));
|
||||
process.setPname(processSaveReqVO.getPname());
|
||||
processMapper.insert(process);
|
||||
return success(true);
|
||||
}
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.process.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 危急值记录 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProcessRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3040")
|
||||
@ExcelProperty("主键")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "机构ID", example = "5547")
|
||||
@ExcelProperty("机构ID")
|
||||
private String orgId;
|
||||
|
||||
@Schema(description = "检查ID,一人多个检查的检查id", example = "17411")
|
||||
@ExcelProperty("检查ID,一人多个检查的检查id")
|
||||
private String examId;
|
||||
|
||||
@Schema(description = "登记ID :patientid ", example = "23025")
|
||||
@ExcelProperty("登记ID :patientid ")
|
||||
private String regId;
|
||||
|
||||
@Schema(description = "审核机构id", example = "2979")
|
||||
@ExcelProperty("审核机构id")
|
||||
private String processOrgId;
|
||||
|
||||
@Schema(description = "审核机构名称", example = "李四")
|
||||
@ExcelProperty("审核机构名称")
|
||||
private String processorgName;
|
||||
|
||||
@Schema(description = "审核医生")
|
||||
@ExcelProperty("审核医生")
|
||||
private String processDoctor;
|
||||
|
||||
@Schema(description = "审核时间")
|
||||
@ExcelProperty("审核时间")
|
||||
private LocalDateTime processDate;
|
||||
|
||||
@Schema(description = "申请原因")
|
||||
@ExcelProperty("申请原因")
|
||||
private String processContent;
|
||||
|
||||
@Schema(description = "申请医生")
|
||||
@ExcelProperty("申请医生")
|
||||
private String applyDoctor;
|
||||
|
||||
@Schema(description = "申请时间")
|
||||
@ExcelProperty("申请时间")
|
||||
private LocalDateTime applyDateTime;
|
||||
|
||||
@Schema(description = "备注", example = "你说的对")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "审核状态 0申请 1 审核2 拒绝")
|
||||
@ExcelProperty("审核状态 0申请 1 审核2 拒绝")
|
||||
private Integer processstats;
|
||||
|
||||
@Schema(description = "拒绝原因", example = "你说的对")
|
||||
@ExcelProperty("拒绝原因")
|
||||
private String refuseremark;
|
||||
|
||||
@Schema(description = "姓名", example = "芋艿")
|
||||
@ExcelProperty("姓名")
|
||||
private String pname;
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.process.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - 危急值记录新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProcessSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3040")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "机构ID", example = "5547")
|
||||
private String orgId;
|
||||
|
||||
@Schema(description = "检查ID,一人多个检查的检查id", example = "17411")
|
||||
private String examId;
|
||||
|
||||
@Schema(description = "登记ID :patientid ", example = "23025")
|
||||
private String regId;
|
||||
|
||||
@Schema(description = "审核机构id", example = "2979")
|
||||
private String processOrgId;
|
||||
|
||||
@Schema(description = "审核机构名称", example = "李四")
|
||||
private String processorgName;
|
||||
|
||||
@Schema(description = "审核医生")
|
||||
private String processDoctor;
|
||||
|
||||
@Schema(description = "审核时间")
|
||||
private LocalDateTime processDate;
|
||||
|
||||
@Schema(description = "申请原因")
|
||||
private String processContent;
|
||||
|
||||
@Schema(description = "申请医生")
|
||||
private String applyDoctor;
|
||||
|
||||
@Schema(description = "申请时间")
|
||||
private String applyDateTime;
|
||||
|
||||
@Schema(description = "备注", example = "你说的对")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "审核状态 0申请 1 审核2 拒绝")
|
||||
private Integer processstats;
|
||||
|
||||
@Schema(description = "拒绝原因", example = "你说的对")
|
||||
private String refuseremark;
|
||||
|
||||
@Schema(description = "姓名", example = "芋艿")
|
||||
private String pname;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user