| | |
| | | package org.jeecg.modules.eam.dto; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | private String equipmentName; |
| | | |
| | | /** |
| | | * 中心 |
| | | */ |
| | | // @Excel(name = "中心", width = 15, orderNum = "5") |
| | | @ApiModelProperty(value = "中心") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | private transient String zxfactoryOrgCode; |
| | | |
| | | /** |
| | | * 工区 |
| | | */ |
| | | // @Excel(name = "工区", width = 15, orderNum = "6") |
| | | @ApiModelProperty(value = "工区") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | private transient String gqfactoryOrgCode; |
| | | |
| | | /** |
| | | * 工段 |
| | | */ |
| | | @Excel(name = "中心/工区/工段", width = 15, orderNum = "4",dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @Excel(name = "中心/工区/工段", width = 15, orderNum = "4") |
| | | @ApiModelProperty(value = "中心/工区/工段") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "factory_code") |
| | | private String factoryOrgCode; |
| | |
| | | /** |
| | | * 灭火器 |
| | | */ |
| | | @Excel(name = "灭火器", width = 15, orderNum = "16") |
| | | @Excel(name = "灭火器", width = 15, orderNum = "16",dicCode = "yn") |
| | | @ApiModelProperty(value = "灭火器") |
| | | @Dict(dicCode = "yn") |
| | | private String fireExtinguisher; |
| | | |
| | | /** |
| | |
| | | * 重量(吨) |
| | | */ |
| | | @Excel(name = "重量(吨)", width = 15, orderNum = "22") |
| | | @ApiModelProperty(value = "重量(吨)") |
| | | private String equipmentWeightStr; |
| | | |
| | | /** |
| | | * 重量(吨) |
| | | */ |
| | | @ApiModelProperty(value = "重量(吨)") |
| | | private BigDecimal equipmentWeight; |
| | | |
| | |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | } |