|
@@ -1,6 +1,7 @@
|
|
|
package cn.tr.module.phototherapy.common.dto;
|
|
package cn.tr.module.phototherapy.common.dto;
|
|
|
|
|
|
|
|
import cn.tr.core.pojo.BaseDTO;
|
|
import cn.tr.core.pojo.BaseDTO;
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
|
import lombok.ToString;
|
|
import lombok.ToString;
|
|
|
import cn.tr.core.validation.Insert;
|
|
import cn.tr.core.validation.Insert;
|
|
@@ -10,6 +11,8 @@ import lombok.Data;
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
import jakarta.validation.constraints.NotNull;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
|
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 治疗方案表传输对象
|
|
* 治疗方案表传输对象
|
|
|
*
|
|
*
|
|
@@ -28,33 +31,35 @@ public class BusTherapyPlanDTO extends BaseDTO {
|
|
|
private String id;
|
|
private String id;
|
|
|
|
|
|
|
|
@Schema(description = "方案医生")
|
|
@Schema(description = "方案医生")
|
|
|
- @NotBlank(message = "方案医生不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
private String planDoctor;
|
|
private String planDoctor;
|
|
|
|
|
|
|
|
@Schema(description = "方案名称")
|
|
@Schema(description = "方案名称")
|
|
|
- @NotBlank(message = "方案名称不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
private String planName;
|
|
private String planName;
|
|
|
|
|
|
|
|
@Schema(description = "阶段类型")
|
|
@Schema(description = "阶段类型")
|
|
|
- @NotBlank(message = "阶段类型不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
private String phaseType;
|
|
private String phaseType;
|
|
|
|
|
|
|
|
@Schema(description = "阶段目标次数")
|
|
@Schema(description = "阶段目标次数")
|
|
|
- @NotNull(message = "阶段目标次数不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
private Integer phaseTargetTimes;
|
|
private Integer phaseTargetTimes;
|
|
|
|
|
|
|
|
- @Schema(description = "阶段频率(如每日1次/隔日1次/每周3次)")
|
|
|
|
|
- @NotBlank(message = "阶段频率不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
- private String phaseFreq;
|
|
|
|
|
|
|
+ @Schema(description = "阶段频率")
|
|
|
|
|
+ private Integer phaseFreq;
|
|
|
|
|
|
|
|
@Schema(description = "阶段建议时长")
|
|
@Schema(description = "阶段建议时长")
|
|
|
- @NotNull(message = "阶段建议时长不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
private Integer phaseDurationMin;
|
|
private Integer phaseDurationMin;
|
|
|
|
|
|
|
|
@Schema(description = "方案状态(0启用 1等待启用 2终止)")
|
|
@Schema(description = "方案状态(0启用 1等待启用 2终止)")
|
|
|
- @NotNull(message = "方案状态不能为空", groups = {Update.class, Insert.class})
|
|
|
|
|
private Integer planStatus;
|
|
private Integer planStatus;
|
|
|
|
|
|
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
+ @Schema(description = "阶段开始时间")
|
|
|
|
|
+ private Date phaseStartTime;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
+ @Schema(description = "阶段结束时间")
|
|
|
|
|
+ private Date phaseEndTime;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Schema(description = "医院id")
|
|
@Schema(description = "医院id")
|
|
|
private String tenantId;
|
|
private String tenantId;
|
|
|
|
|
|