| | |
| | | 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; |
| | |
| | | /**流程业务实例id 一个流程业务唯一,本表中也唯一*/ |
| | | @TableField(exist = false) |
| | | private String processInstanceId; |
| | | |
| | | /**技术状态*/ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "技术状态") |
| | | @Dict(dicCode = "equipment_technology_status") |
| | | private String technologyStatus; |
| | | |
| | | @ApiModelProperty(value = "中心") |
| | | @TableField(exist = false) |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | private transient String zxfactoryOrgCode; |
| | | |
| | | @ApiModelProperty(value = "工区") |
| | | @TableField(exist = false) |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | private transient String gqfactoryOrgCode; |
| | | |
| | | @ApiModelProperty(value = "中心/工区/工段") |
| | | @TableField(exist = false) |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "factory_code") |
| | | 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); |
| | | } |
| | | |
| | | if(factoryOrgCode.length()==9){ |
| | | this.zxfactoryOrgCode = factoryOrgCode.substring(0,6); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |