| | |
| | | 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 = "5") |
| | | @Excel(name = "所属分类", width = 15, orderNum = "5",dicCode = "equipment_category") |
| | | @ApiModelProperty(value = "所属分类") |
| | | @Dict(dicCode = "equipment_category") |
| | | private String equipmentCategory; |
| | |
| | | /** |
| | | * 灭火器 |
| | | */ |
| | | @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; |
| | | |
| | |
| | | /** |
| | | * 质保开始日期 |
| | | */ |
| | | @Excel(name = "质保开始日期", width = 15, orderNum = "36") |
| | | @Excel(name = "质保开始日期", width = 15, format = "yyyy/MM/dd", orderNum = "36") |
| | | @ApiModelProperty(value = "质保开始日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | /** |
| | | * 质保结束日期 |
| | | */ |
| | | @Excel(name = "质保结束日期", width = 15, orderNum = "37") |
| | | @Excel(name = "质保结束日期", width = 15, format = "yyyy/MM/dd", orderNum = "37") |
| | | @ApiModelProperty(value = "质保结束日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | |
| | | /**最新二保日期*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "最新二保日期", width = 15, orderNum = "39") |
| | | @Excel(name = "最新二保日期", width = 15, format = "yyyy/MM/dd", orderNum = "39") |
| | | @ApiModelProperty(value = "最新二保日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | |
| | | /**下次二保日期*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "下次二保日期", width = 15, orderNum = "40") |
| | | @Excel(name = "下次二保日期", width = 15, format = "yyyy/MM/dd", orderNum = "40") |
| | | @ApiModelProperty(value = "下次二保日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | |
| | | /**本次三保日期*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "本次三保日期", width = 15, orderNum = "41") |
| | | @Excel(name = "本次三保日期", width = 15, format = "yyyy/MM/dd", orderNum = "41") |
| | | @ApiModelProperty(value = "本次三保日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | |
| | | /**下次三保日期*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "下次三保日期", width = 15, orderNum = "42") |
| | | @Excel(name = "下次三保日期", width = 15, format = "yyyy/MM/dd", orderNum = "42") |
| | | @ApiModelProperty(value = "下次三保日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | |
| | | /**最新技术状态鉴定日期*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "最新技术状态鉴定日期", width = 15, orderNum = "44") |
| | | @Excel(name = "最新技术状态鉴定日期", width = 15, format = "yyyy/MM/dd", orderNum = "44") |
| | | @ApiModelProperty(value = "最新技术状态鉴定日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date latestTechnologyCheck; |
| | | /**技术状态下次鉴定日期*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "技术状态下次鉴定日期", width = 15, orderNum = "45") |
| | | @Excel(name = "技术状态下次鉴定日期", width = 15, format = "yyyy/MM/dd", orderNum = "45") |
| | | @ApiModelProperty(value = "技术状态下次鉴定日期") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | |
| | | @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); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | } |