| | |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.YwPoint; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 运维点位表单 |
| | |
| | | @ApiModelProperty("点位名称") |
| | | private String pointName; |
| | | |
| | | @NotNull(message = "点位开始时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("点位开始时间") |
| | | private LocalDateTime startTime; |
| | | |
| | | @NotNull(message = "点位结束时间不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("点位结束时间") |
| | | private LocalDateTime endTime; |
| | | |
| | | @NotNull(message = "运维单位不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("运维单位") |
| | | private Integer unitId; |
| | | |
| | | @NotBlank(message = "运维状态不能为空", groups = {Add.class, Update.class}) |
| | | @NotNull(message = "监管部门不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("监管部门") |
| | | private Long deptId; |
| | | |
| | | @NotEmpty(message = "点位标签不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("点位标签") |
| | | private List<String> pointTag; |
| | | |
| | | @ApiModelProperty("运维状态") |
| | | private String status; |
| | | |
| | | @NotBlank(message = "备注不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("备注") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("类型") |
| | | private Short category; |
| | | |
| | | public static YwPoint getEntityByForm(@NonNull YwPointForm form, YwPoint entity) { |
| | | if(entity == null) { |
| | | entity = new YwPoint(); |