| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | 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 lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.apache.ibatis.type.JdbcType; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecg.common.system.base.entity.JeecgEntity; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | |
| | | @Excel(name = "删除标记", width = 15) |
| | | @ApiModelProperty(value = "删除标记") |
| | | private Integer delFlag; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @Excel(name = "备注", width = 15) |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | /** |
| | | * 设备ID |
| | | */ |
| | | @Excel(name = "设备ID", width = 15) |
| | | @ApiModelProperty(value = "设备ID") |
| | | private String equipmentId; |
| | | /** |
| | | * 三保工单ID |
| | | */ |
| | |
| | | @Excel(name = "延迟保养日期", width = 20, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date deferredMaintenanceDate; |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String deferredMaintenanceDate; |
| | | /** |
| | | * 主管领导签字 |
| | | */ |
| | |
| | | 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 factoryCode; |
| | | |
| | | public void setFactoryCode(String factoryCode){ |
| | | this.factoryCode = factoryCode; |
| | | if(StrUtil.isNotEmpty(factoryCode)){ |
| | | if(factoryCode.length()==12){ |
| | | this.factoryCode = factoryCode.substring(0,9); |
| | | this.zxfactoryOrgCode = factoryCode.substring(0,6); |
| | | this.gsfactoryOrgCode = factoryCode.substring(0,3); |
| | | } |
| | | |
| | | if(factoryCode.length()==9){ |
| | | this.zxfactoryOrgCode = factoryCode.substring(0,6); |
| | | this.gsfactoryOrgCode = factoryCode.substring(0,3); |
| | | } |
| | | |
| | | if(factoryCode.length()==6){ |
| | | this.gsfactoryOrgCode = factoryCode.substring(0,3); |
| | | } |
| | | } |
| | | } |
| | | } |