package cn.gistack.sm.sg.DO;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
import lombok.experimental.Accessors;
|
import org.springblade.core.tool.utils.DateUtil;
|
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 施工工序基本表
|
* </p>
|
*
|
* @author shenyijian
|
* @since 2024-06-13 15:46:18
|
*/
|
@Getter
|
@Setter
|
@TableName(value ="SG_GX" ,autoResultMap = true)
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@AllArgsConstructor
|
@NoArgsConstructor
|
@Builder
|
public class SgGxDO {
|
@TableId(type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 工序基本名称
|
*/
|
private String gxName;
|
|
/**
|
* 创建人
|
*/
|
private Long createUser;
|
|
/**
|
* 创建时间
|
*/
|
private Date createTime;
|
|
/**
|
* 更新时间
|
*/
|
private Date updateTime;
|
|
private String gxType;
|
|
/**
|
* 关联设备
|
*/
|
@TableField(exist = false)
|
private List<SgDeviceDO> deviceDOS;
|
|
/**
|
* 创建人姓名
|
*/
|
@TableField(exist = false)
|
private String createUserName;
|
|
|
public void setCreateUpdateTime(){
|
Date now = DateUtil.now();
|
if (this.getId()== null) {
|
this.createTime = now;
|
}
|
this.updateTime = now;
|
}
|
|
}
|