Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / meet / AcceptAllot.java
package com.newfiber.api.pc.model.meet;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.newfiber.api.pc.model.vo.HoutSiteReturnVo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 调度物资暂存表(点击确认接收后该物资才会计入对应的站点里面去)
 * @Author:zhz
 * @CreateDate:2020/12/1 14:01
 * @Description:
 */
@Data
@NoArgsConstructor
@TableName("accept_allot")
public class AcceptAllot implements Serializable {
    @TableId(value = "allot_id",type = IdType.AUTO)
    private Integer allotId;
    /** 调度人编号 */
    @TableField("allot_user_no")
    private String allotUserNo;
    /** 指定接收人 */
    @TableField("assign_user_no")
    private String assignUserNo;
    /** 创建时间 */
    @TableField("create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /** 接收时间 */
    @TableField("accept_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date acceptTime;
    /** 状态: 1为未接收,2为已接收*/
    @TableField("state")
    private Integer state;
    /** 调度原由 */
    @TableField("allot_name")
    private String allotName;
    /** 暂存物资集合 */
    @TableField(exist = false)
    private List<AcceptSup> sups;
    @TableField(exist = false)
    private List<HoutSiteReturnVo> houseSites;
}