| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_order对象", description="技术状态鉴定工单") |
| | | public class EamTechnicalStatusEvaluationOrder { |
| | | |
| | | |
| | | /**主键*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主键") |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |
| | | } |