package com.cloudroam.model;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.cloudroam.model.BaseModel;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
|
/**
|
* @author generator@TaoJie
|
* @since 2023-08-17
|
*/
|
@Data
|
@TableName("project_daily_main")
|
public class ProjectDailyMainDO {
|
|
@TableId(value = "id",type= IdType.ASSIGN_UUID)
|
private String id;
|
|
/**
|
* 日志日期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private LocalDateTime dailyDate;
|
|
/**
|
* 所属用户
|
*/
|
private String useId;
|
|
/**
|
* 用户名
|
*/
|
private String userName;
|
|
/**
|
* 是否提交
|
*/
|
private Integer isCommit;
|
|
/**
|
* 提交人id
|
*/
|
private String commitUserId;
|
|
/**
|
* 提交人姓名
|
*/
|
private String commitUserName;
|
|
/**
|
* 提交时间
|
*/
|
private LocalDateTime commitTime;
|
|
/**
|
* 是否确认
|
*/
|
private Integer isConfirm;
|
|
/**
|
* 确认人id
|
*/
|
private String confirmUserId;
|
|
/**
|
* 确认id姓名
|
*/
|
private String confirmUserName;
|
|
/**
|
* 确认时间
|
*/
|
private LocalDateTime confirmTime;
|
|
/**
|
* 确认内容
|
*/
|
private String confirmContent;
|
|
|
/**
|
* 创建人id
|
*/
|
private String createUserId;
|
|
/**
|
* 创建人姓名
|
*/
|
private String createUserName;
|
|
/**
|
* 更新人id
|
*/
|
private String updateUserId;
|
|
/**
|
* 更新人姓名
|
*/
|
private String updateUserName;
|
|
/**
|
* 删除标志
|
*/
|
private Integer isDeleted;
|
|
/**
|
* 删除人
|
*/
|
private String deleteUserId;
|
|
/**
|
* 删除人姓名
|
*/
|
private String deleteUserName;
|
|
|
@JsonIgnore
|
private Date createTime;
|
|
@JsonIgnore
|
private Date updateTime;
|
|
@JsonIgnore
|
private Date deleteTime;
|
|
|
public void create(String userId,String userName) {
|
this.createUserId = userId;
|
this.createUserName = userName;
|
this.createTime = new Date();
|
this.updateUserId = userId;
|
this.updateUserName=userName;
|
this.updateTime = new Date();
|
this.isDeleted = 0;
|
}
|
|
public void create() {
|
this.createTime = new Date();
|
this.updateTime = new Date();
|
this.isDeleted = 0;
|
}
|
|
public void update(String userId,String userName) {
|
this.updateUserId = userId;
|
this.updateUserName=userName;
|
this.updateTime = new Date();
|
}
|
|
public void update() {
|
this.updateTime = new Date();
|
}
|
|
public void delete(String userId,String userName) {
|
this.updateUserId = userId;
|
this.updateUserName=userName;
|
this.updateTime = new Date();
|
this.deleteUserId = userId;
|
this.deleteUserName=userName;
|
this.deleteTime = new Date();
|
this.isDeleted = 1;
|
}
|
}
|