| | |
| | | */ |
| | | package me.zhengjie.modules.task.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import me.zhengjie.base.BaseEntity; |
| | | |
| | | import javax.persistence.*; |
| | | import javax.validation.constraints.*; |
| | | import java.sql.Timestamp; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.GeneratedValue; |
| | | import javax.persistence.GenerationType; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import me.zhengjie.base.BaseEntity; |
| | | |
| | | /** |
| | | * @website https://eladmin.vip |
| | |
| | | @Column(name = "`task_start_date`",nullable = false) |
| | | @NotNull |
| | | @ApiModelProperty(value = "任务开始时间") |
| | | private Timestamp taskStartDate; |
| | | private Date taskStartDate; |
| | | |
| | | @Column(name = "`task_end_date`",nullable = false) |
| | | @NotNull |
| | | @ApiModelProperty(value = "任务结束时间") |
| | | private Timestamp taskEndDate; |
| | | private Date taskEndDate; |
| | | |
| | | @Column(name = "`task_hours`",nullable = false) |
| | | @NotNull |
| | |
| | | @ApiModelProperty(value = "有效FLG") |
| | | private Boolean enable; |
| | | |
| | | @Column(name = "`reject_count`") |
| | | @ApiModelProperty(value = "驳回数量") |
| | | private Integer rejectCount; |
| | | |
| | | public void copy(TaskUser source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |
| | | } |