| | |
| | | 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; |
| | |
| | | @ApiModelProperty(value = "设备ID") |
| | | @Dict(dictTable = "eam_equipment", dicCode = "id", dicText = "equipment_name") |
| | | private String equipmentId; |
| | | /** 维修状态*/ |
| | | /**维修状态*/ |
| | | @ApiModelProperty(name = "维修状态",notes = "待维修、维修中、待确认、维修完成") |
| | | @Dict(dicCode = "repair_status") |
| | | private String repairStatus; |
| | | /**领取状态*/ |
| | | @ApiModelProperty(name = "领取状态",notes = "未领取、已领取") |
| | | @Dict(dicCode = "claim_status") |
| | | private String claimStatus; |
| | | /**故障类型*/ |
| | | @Excel(name = "故障类型", width = 15) |
| | | @ApiModelProperty(value = "故障类型") |
| | | @Dict(dicCode = "fault_type") |
| | | private String faultType; |
| | | /**故障现象*/ |
| | | @Excel(name = "故障现象", width = 15) |
| | | @ApiModelProperty(value = "故障现象") |
| | | private String faultPhenomenon; |
| | | /**报修人*/ |
| | | @Excel(name = "报修人", width = 15) |
| | | @ApiModelProperty(value = "报修人") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | | private String reportPerson; |
| | | /**故障开始时间*/ |
| | | @Excel(name = "故障开始时间", width = 15,format = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(name = "故障开始时间",notes = "") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date faultStartTime; |
| | | /** 维修开始时间 */ |
| | | @ApiModelProperty(name = "维修开始时间",notes = "") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date actualStartTime; |
| | | /** 维修结束时间 */ |
| | | @ApiModelProperty(name = "维修结束时间",notes = "") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date actualEndTime; |
| | | /** 维修时长*/ |
| | | @ApiModelProperty(name = "维修时长",notes = "") |
| | | private String repairDuration; |
| | | /**故障时长*/ |
| | | @ApiModelProperty(name = "故障时长",notes = "") |
| | | private String faultDuration; |
| | | /** 维修确认 */ |
| | | @ApiModelProperty(name = "维修确认",notes = "") |
| | | @Dict(dictTable = "sys_user", dicCode = "username", dicText = "realname") |
| | |
| | | private String equipmentModel; |
| | | @TableField(exist = false) |
| | | private String installationPosition; |
| | | |
| | | /** |
| | | * 公司 |
| | | */ |
| | | @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); |
| | | } |
| | | } |
| | | } |
| | | } |