ConstructionTeam.java 1.02 KB
package vion.model;

import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Getter;
import lombok.Setter;
import vion.dto.ConstructionTeamDTO;
import vion.vo.ConstructionTeamVO;

import java.time.LocalDateTime;

/**
 * 施工队信息表
 */
@Getter
@Setter
@TableName(value = "tbl_construction_team")
@AutoMappers({
        @AutoMapper(target = ConstructionTeamVO.class),
        @AutoMapper(target = ConstructionTeamDTO.class),
})
public class ConstructionTeam {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 施工队名称
     */
    @TableField(value = "\"name\"")
    private String name;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}