| | |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.Report; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | |
| | | private Integer pointId; |
| | | |
| | | @ApiModelProperty("审核时间") |
| | | private LocalDateTime auditingTime; |
| | | private Date auditingTime; |
| | | |
| | | @ApiModelProperty("生效时间") |
| | | private Date beginCreateTime; |
| | | |
| | | @ApiModelProperty("失效时间") |
| | | private Date endCreateTime; |
| | | |
| | | @ApiModelProperty("审核类型") |
| | | private String reportType; |
| | | |
| | | @NotBlank(message = "报备内容不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("报备内容") |
| | |
| | | @ApiModelProperty("故障类型") |
| | | private String errorType; |
| | | |
| | | @ApiModelProperty("审核意见") |
| | | private String auditOpinion; |
| | | |
| | | @ApiModelProperty("状态") |
| | | private Integer status; |
| | | |
| | | public static Report getEntityByForm(@NonNull ReportForm form, Report entity) { |
| | | if(entity == null) { |
| | | entity = new Report(); |