package doumeemes.dao.ext.vo; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import doumeemes.core.annotation.excel.ExcelColumn; import doumeemes.dao.business.model.*; import doumeemes.dao.system.model.SystemDictData; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.util.Date; import java.util.List; /** * @author 江蹄蹄 * @date 2022/04/20 10:56 */ @Data @ApiModel("工单信息列表对象") public class WorkorderExtListVO implements Serializable{ @ApiModelProperty(value = "主键", example = "1") private Integer id; @ApiModelProperty(value = "是否已删除 0未删除 1已删除", example = "1") private Integer deleted; @ApiModelProperty(value = "创建人编码", example = "1") private Integer createUser; @ApiModelProperty(value = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date createTime; @ApiModelProperty(value = "更新人编码", example = "1") private Integer updateUser; @ApiModelProperty(value = "更新时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date updateTime; @ApiModelProperty(value = "备注") private String remark; @ApiModelProperty(value = "主组织编码(关联department表根组织)", example = "1") private Integer rootDepartId; @ApiModelProperty(value = "公司级组织编码(关联department表)", example = "1") private Integer departId; @ApiModelProperty(value = "所属计划编码", example = "1") private Integer planId; @ApiModelProperty(value = "生产工厂机级组织编码(关联department表)", example = "1") private Integer factoryId; @ApiModelProperty(value = "生产工序编码(关联procedures表)", example = "1") private Integer procedureId; @ApiModelProperty(value = "工单编号") @ExcelColumn(name="工单编号",index = 3,width =15) private String code; @ApiModelProperty(value = "原工单编码(返工工单专用)", example = "1") private Integer originWorkorderId; @ApiModelProperty(value = "工单类型ID(关联system_dict_data)", example = "1") private Integer typeId; @ApiModelProperty(value = "数据来源ID(关联system_dict_data)", example = "1") private Integer originId; @ApiModelProperty(value = "是否暂停 0未暂停 1已暂停", example = "1") private Integer paused; @ApiModelProperty(value = "计划日期") @JsonFormat(pattern = "yyyy-MM-dd") @ExcelColumn(name="计划开工日期",index = 1,width =15) private Date planDate; @ApiModelProperty(value = "计划数量", example = "1") @ExcelColumn(name="计划数量",index = 7,width =15) private Integer planNum; @ApiModelProperty(value = "物料编码(关联material_distribute表)", example = "1") private Integer materialId; @ApiModelProperty(value = "单位编码(关联unit_distribute表)", example = "1") private Integer unitId; @ApiModelProperty(value = "批次号") @ExcelColumn(name="批次号",index = 8,width =15) private String batch; @ApiModelProperty(value = "生产人员编码(关联system_user表)", example = "1") private Integer proUserId; @ApiModelProperty(value = "生产班组编码(关联device表)", example = "1") private Integer proGroupId; @ApiModelProperty(value = "合格数量", example = "1") @ExcelColumn(name="合格数量",index = 12,width =15) private Integer qualifiedNum; @ApiModelProperty(value = "不合格数量", example = "1") @ExcelColumn(name="不良数量",index = 13,width =15) private Integer unqualifiedNum; @ApiModelProperty(value = "检验人员编码", example = "1") private Integer checkUserId; @ApiModelProperty(value = "工单状态 0已创建、1已备料、2已完工、3已检验、4已报工、5已入库、6已取消", example = "1") @ExcelColumn(name="工单状态",valueMapping = "0=已创建;1=已备料;2=已完工;3=已检验;4=已报工;5=已入库;6=已取消;",index = 14,width =15) private Integer status; @ApiModelProperty(value = "最近状态更新时间") @JsonFormat(pattern = "yyyy-MM-dd") private Date lastDealDate; @ApiModelProperty(value = "最近状态更新备注") private String lastDealInfo; @ApiModelProperty(value = "优先级(排序码)字段", example = "1") private Integer urgent; @ApiModelProperty(value = "返修申请单号(关联backorder表)", example = "1") private Integer backorderId; @ApiModelProperty(value = "系统-组织信息表信息") private Department dmodel; @ApiModelProperty(value = "工单类-生产计划信息表信息") private Plans pmodel; @ApiModelProperty(value = "系统-组织信息表信息") private Department fmodel; @ApiModelProperty(value = "系统-数据字典数据表信息") private SystemDictData tmodel; @ApiModelProperty(value = "物料基本信息表信息") private Material mmodel; @ApiModelProperty(value = "物料单位信息表信息") private Unit umodel; @ApiModelProperty(value = "生产设备信息表信息") private Device pgmodel; @ApiModelProperty(value = "工单类型(0正常、1返工、2客户返修)", example = "1") @ExcelColumn(name="工单类型",valueMapping = "0=正常;1=异常;2=客户返修;",index = 4,width =15) private Integer type; @ApiModelProperty(value = "检点内容(json)", example = "1") private String checkParam; @ApiModelProperty(value = "报工数量", example = "1") @ExcelColumn(name="报工数量",index = 11,width =15) private Integer proNum; @ApiModelProperty(value = "二维码ID", example = "1") private Integer qrcodeId; @ApiModelProperty(value = "是否有bom配置 0无 1有", example = "1") private Integer hasBom; @ApiModelProperty(value = "bom投料方式 0推式 1拉式", example = "1") private Integer bomType; @ApiModelProperty(value = "投料记录编码", example = "1") private Integer touliaoId; @ApiModelProperty(value = "工序名称" ) private String procedureName; @ApiModelProperty(value = "工序是否需要检验才能报工 0是 1否" ,example = "0") private Integer procedureNeedcheck; @ApiModelProperty(value = "来源名称" ) private String originName; @ApiModelProperty(value = "生产人员名称" ) private String proUserName; @ApiModelProperty(value = "创建人姓名" ) private String userName; @ApiModelProperty(value = "生产人员部门编码" ,hidden = true) private String proUserDepartId; @ApiModelProperty(value = "生产人员部门名称" ,hidden = true) private String proUserDepartName; @ApiModelProperty(value = "工序报工是否计算不良品 0是 1否",hidden = true) @TableField(exist = false) private Integer iscalculate; @ApiModelProperty(value = "当前工序下一个工序集合") @TableField(exist = false) private List routeProcedureList; @ApiModelProperty(value = "图纸编号") @TableField(exist = false) private String papercode; @ApiModelProperty(value = "生产人员分配集合" ) private List proUserList; @ExcelColumn(name="生产人员",index = 2,width =15) private String proUserListStr; @ExcelColumn(name="物料名称",index = 5,width =15) private String materialName; @ExcelColumn(name="物料编码",index = 6,width =15) private String materialCode; @ExcelColumn(name="生产设备",index = 9,width =15) private String deviceName; @ExcelColumn(name="工单来源",index = 10,width =15) private String orderForm; @ExcelColumn(name="单位名称",index = 15,width =15) private String unitName; }