/* * Copyright (c) 2018-2025, ztt All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the pig4cloud.com developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: ztt */ package com.chinaztt.mes.plan.entity; import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.extension.activerecord.Model; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; /** * 车间订单 * * @author cxf * @date 2020-09-24 14:26:01 */ @Data @TableName("plan_manufacturing_order") @EqualsAndHashCode(callSuper = true) @ApiModel(value = "车间订单表") public class ManufacturingOrder extends Model { private static final long serialVersionUID = 1L; /** * 制造订单编号的规则 */ public static final int DIGIT = 6; public static final String PREFIX = "M"; /** * id */ @TableId @ApiModelProperty(value = "id") private Long id; /** * 工厂id */ @LinkedField(sourceTable = "basic_factory", sourceField = "id") @ApiModelProperty(value = "工厂id") private Long factoryId; /** * 制造订单号 */ @ApiModelProperty(value = "制造订单号") private String moNo; /** * 零件id */ @LinkedField(sourceTable = "basic_part", sourceField = "id") @ApiModelProperty(value = "零件id") private Long partId; /** * 需求数量 */ @ApiModelProperty(value = "需求数量") private BigDecimal qtyRequired; /** * 需求日期 */ @ApiModelProperty(value = "需求日期") private LocalDateTime requiredDate; /** * 开始日期 */ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") @ApiModelProperty(value = "开始日期") private LocalDate startDate; /** * 到期日 */ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") @ApiModelProperty(value = "到期日") private LocalDate endDate; /** * 状态 */ @ApiModelProperty(value = "状态") private String state; /** * 备注 */ @ApiModelProperty(value = "备注") private String remark; /** * 创建时间 */ @TableField(fill = FieldFill.INSERT) @ApiModelProperty(value = "创建时间") private LocalDateTime createTime; /** * 更新时间 */ @TableField(fill = FieldFill.INSERT_UPDATE) @ApiModelProperty(value = "更新时间") private LocalDateTime updateTime; /** * 创建人 */ @TableField(fill = FieldFill.INSERT) @ApiModelProperty(value = "创建人") private String createUser; /** * 更新人 */ @TableField(fill = FieldFill.INSERT_UPDATE) @ApiModelProperty(value = "更新人") private String updateUser; /** * 选中的工艺路线id */ @LinkedField(sourceTable = "technology_routing", sourceField = "id") @ApiModelProperty(value = "工艺路线id") private Long technologyRoutingId; /** * 完整工艺结构Id */ @LinkedField(sourceTable = "technology_bom", sourceField = "id") @ApiModelProperty(value = "完整工艺结构id") private Long bomId; /** * 已排产 */ @ApiModelProperty(value = "是否已排产") private Boolean planned; /** * 生产计划id */ @ApiModelProperty(value = "生产计划id") private Long mpsId; /** * 申请数量 */ @ApiModelProperty(value = "申请数量") private BigDecimal qtyApply; /** * 完成数量 */ @ApiModelProperty(value = "完成数量") private BigDecimal qtyFinished; /** * 当前工序 */ @ApiModelProperty(value = "当前工序") private String currentOperation; /** * 外护颜色 */ @ApiModelProperty(value = "外护颜色") private String outerColor; /** * 绝缘颜色 */ @ApiModelProperty(value = "绝缘颜色") private String insulationColor; /** * 工艺确认状态 */ @ApiModelProperty(value = "工艺确认状态") private Boolean processConfirmStatus; /** * bom确认状态 */ @ApiModelProperty(value = "bom确认状态") private Boolean bomConfirmStatus; /** * 检测标准确认状态 */ @ApiModelProperty(value = "检测标准确认状态") private Boolean standardConfirmStatus; /** * 车间 */ @ApiModelProperty(value = "车间") private String workShop; /** * 车间订单类型码 */ @ApiModelProperty(value = "车间订单类型") private String workshopTypeCode; /** * ifs订单号 */ @ApiModelProperty(value = "ifs订单号") private String ifsOrderNo; /** * ifs下达号 */ @ApiModelProperty(value = "ifs下达号") private String ifsReleaseNo; /** * ifs序列号 */ @ApiModelProperty(value = "ifs序列号") private String ifsSequenceNo; /** * 是否同步ifs */ @ApiModelProperty(value = "是否同步ifs") private Boolean ifsSync; /** * 工艺是否同步 */ @ApiModelProperty(value = "工艺是否同步") private Boolean ifsRoutingOperationSync; /** * 物料是否同步 */ @ApiModelProperty(value = "物料是否同步") private Boolean ifsMatSync; /** * ifs车间订单申请编号 */ @ApiModelProperty(value = "ifs车间订单申请编号") private String ifsManuorderApplyNo; /** * 理论用量id */ @ApiModelProperty(value = "理论用量id") private Long scheduleTheoryQuantityId; /** * 单位2 */ @ApiModelProperty(value = "单位2") private String sunit; /** * IFS车间订单接收时报告工序 */ @ApiModelProperty(value = "IFS车间订单接收时报告工序") private Boolean isReportOperation; /** * 制造属性 */ @ApiModelProperty(value = "制造属性") private String manufactureAttr; /** * IFS对接状态 */ @ApiModelProperty(value = "IFS对接状态") private String ifsSyncState; @ApiModelProperty(value = "原IFS订单号") private String oriIfsOrderNo; }