package org.dromara.mp.domain.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.mp.domain.UserWorkCheckin;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 自雇者打卡记录业务对象 user_work_checkin
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode()
@AutoMapper(target = UserWorkCheckin.class, reverseConvertGenerate = false)
public class UserWorkCheckinBo  extends BaseEntity {

    /**
     * 创建部门
     */
    @TableField(exist = false)
    private Long createDept;


    /**
     * 乐观锁
     */
    private Long revision;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long proId;

    /**
     * 项目编码
     */
    private String proNum;

    /**
     * 更新时间
     */
    private Date updatedTime;

    /**
     * 自雇者id
     */
    private Long userWorkId;

    /**
     * 打开地址
     */
    @NotBlank(message = "打开地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addressInfo;

    /**
     * 经度
     */
    private String longi;

    /**
     * 纬度
     */
    private String lati;


}
