| | |
| | | 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; |
| | |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_application对象", description="加工设备技术鉴定申请") |
| | | public class EamTechnicalStatusEvaluationApplication { |
| | | |
| | | |
| | | /**主键*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主键") |
| | |
| | | private Date evaluationDate; |
| | | /**申请单状态;待提交、待单位室级领导审核、生产设备管理主管审核、待保障部领导审核、已作废、已完成*/ |
| | | @ApiModelProperty(value = "申请单状态;待提交、待单位室级领导审核、生产设备管理主管审核、待保障部领导审核、已作废、已完成") |
| | | @Dict(dicCode = "technical_status_evaluation_application_status") |
| | | private String applicationStatus; |
| | | /**申请单位室级领导签字*/ |
| | | @ApiModelProperty(value = "申请单位室级领导签字") |
| | |
| | | private Date departHeaderSignatureTime; |
| | | /**申请单位室级领导签字结果*/ |
| | | @ApiModelProperty(value = "申请单位室级领导签字结果") |
| | | @Dict(dicCode = "approved_rejected") |
| | | @Dict(dicCode = "approve_reject") |
| | | private String departHeaderSignatureResult; |
| | | /**申请单位室级领导意见*/ |
| | | @ApiModelProperty(value = "申请单位室级领导意见") |
| | |
| | | private Date productionHeaderSignatureTime; |
| | | /**生产设备管理主管签字结果*/ |
| | | @ApiModelProperty(value = "生产设备管理主管签字结果") |
| | | @Dict(dicCode = "approved_rejected") |
| | | @Dict(dicCode = "approve_reject") |
| | | private String productionHeaderSignatureResult; |
| | | /**生产设备管理主管意见*/ |
| | | @ApiModelProperty(value = "生产设备管理主管意见") |
| | |
| | | private Date productionSupportSignatureTime; |
| | | /**生产保障部领导签字解结果*/ |
| | | @ApiModelProperty(value = "生产保障部领导签字解结果") |
| | | @Dict(dicCode = "approved_rejected") |
| | | @Dict(dicCode = "approve_reject") |
| | | private String productionSupportSignatureResult; |
| | | /**生产保障部领导意见*/ |
| | | @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 factoryCode; |
| | | |
| | | public void setFactoryCode(String factoryCode){ |
| | | this.factoryCode = factoryCode; |
| | | if(StrUtil.isNotEmpty(factoryCode)){ |
| | | if(factoryCode.length()==12){ |
| | | this.factoryCode = factoryCode.substring(0,9); |
| | | this.zxfactoryOrgCode = factoryCode.substring(0,6); |
| | | this.gsfactoryOrgCode = factoryCode.substring(0,3); |
| | | } |
| | | |
| | | if(factoryCode.length()==9){ |
| | | this.zxfactoryOrgCode = factoryCode.substring(0,6); |
| | | this.gsfactoryOrgCode = factoryCode.substring(0,3); |
| | | } |
| | | |
| | | if(factoryCode.length()==6){ |
| | | this.gsfactoryOrgCode = factoryCode.substring(0,3); |
| | | } |
| | | } |
| | | } |
| | | } |