| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.FieldStrategy; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | public class EamThirdMaintenanceFurnace extends JeecgEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -5799611070364065336L; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @Excel(name = "备注", width = 15) |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | |
| | | @Excel(name = "设备ID", width = 15) |
| | | @ApiModelProperty(value = "设备ID") |
| | | private String equipmentId; |
| | | /** |
| | | * 工单号 |
| | | */ |
| | | @Excel(name = "工单号", width = 15) |
| | | @ApiModelProperty(value = "工单号") |
| | | private String orderNum; |
| | | /** |
| | | * 计划保养日期 |
| | | */ |
| | | @ApiModelProperty(value = "计划保养日期;提前70天生成工单") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date maintenanceDate; |
| | | /** |
| | | * 压缩空气压力(MPa) |
| | | */ |
| | |
| | | */ |
| | | @Excel(name = "保养人", width = 15) |
| | | @ApiModelProperty(value = "保养人") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String operator; |
| | | /** |
| | | * 保养日期 |
| | | * 保养时间 |
| | | */ |
| | | @ApiModelProperty(value = "保养日期") |
| | | @Excel(name = "保养日期", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "保养时间") |
| | | @Excel(name = "保养时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date operateTime; |
| | |
| | | */ |
| | | @Excel(name = "保养状态;待提交、待确认、已完成", width = 15) |
| | | @ApiModelProperty(value = "保养状态;待提交、待确认、已完成") |
| | | @Dict(dicCode = "third_maintenance_furnace_status") |
| | | private String maintenanceStatus; |
| | | /** |
| | | * 能否满足加工需求;是否 |
| | |
| | | */ |
| | | @Excel(name = "确认人", width = 15) |
| | | @ApiModelProperty(value = "确认人") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String confirmUser; |
| | | /** 确认类型 1 通过 2 驳回 */ |
| | | @ApiModelProperty(value = "确认类型") |
| | | private String confirmDealType; |
| | | /** |
| | | * 确认日期 |
| | | */ |
| | |
| | | @Excel(name = "HF编码", width = 15) |
| | | @ApiModelProperty(value = "HF编码") |
| | | private String hfCode; |
| | | //列表展示 |
| | | @TableField(exist = false) |
| | | private String equipmentCode; |
| | | @TableField(exist = false) |
| | | private String equipmentName; |
| | | @TableField(exist = false) |
| | | private String equipmentModel; |
| | | |
| | | /** |
| | | * 公司 |
| | | */ |
| | | @ApiModelProperty(value = "公司") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @TableField(exist = false) |
| | | private transient String gsfactoryOrgCode; |
| | | |
| | | /** |
| | | * 中心 |
| | | */ |
| | | @ApiModelProperty(value = "中心") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @TableField(exist = false) |
| | | private transient String zxfactoryOrgCode; |
| | | |
| | | /** |
| | | * 工区 |
| | | */ |
| | | @ApiModelProperty(value = "工区") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @TableField(exist = false) |
| | | private transient String gqfactoryOrgCode; |
| | | |
| | | /** |
| | | * 工段 |
| | | */ |
| | | @ApiModelProperty(value = "中心/工区/工段") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @TableField(exist = false) |
| | | private String factoryOrgCode; |
| | | |
| | | public void setFactoryOrgCode(String factoryOrgCode){ |
| | | this.factoryOrgCode = factoryOrgCode; |
| | | if(StrUtil.isNotEmpty(factoryOrgCode)){ |
| | | if(factoryOrgCode.length()==12){ |
| | | this.gqfactoryOrgCode = factoryOrgCode.substring(0,9); |
| | | this.zxfactoryOrgCode = factoryOrgCode.substring(0,6); |
| | | this.gsfactoryOrgCode = factoryOrgCode.substring(0,3); |
| | | } |
| | | |
| | | if(factoryOrgCode.length()==9){ |
| | | this.zxfactoryOrgCode = factoryOrgCode.substring(0,6); |
| | | this.gsfactoryOrgCode = factoryOrgCode.substring(0,3); |
| | | } |
| | | |
| | | if(factoryOrgCode.length()==6){ |
| | | this.gsfactoryOrgCode = factoryOrgCode.substring(0,3); |
| | | } |
| | | } |
| | | } |
| | | } |