tyty
1 year ago
16 changed files with 1259 additions and 576 deletions
@ -0,0 +1,169 @@
|
||||
package com.hnac.hzims.operational.defect.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.SqlCondition; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
||||
import com.fasterxml.jackson.databind.ser.std.NullSerializer; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.support.QueryField; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
||||
import java.util.Date; |
||||
|
||||
|
||||
/** |
||||
* 实体类 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
@Data |
||||
@TableName("hzims_oper_appearance") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@ApiModel(value = "现象表", description = "现象表") |
||||
public class OperAppearanceEntity extends TenantEntity { |
||||
|
||||
private static final long serialVersionUID = 8353403086998937117L; |
||||
|
||||
/** |
||||
* 缺陷编码 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.LIKE) |
||||
@ApiModelProperty(value = "缺陷编码") |
||||
private String defectCode; |
||||
/** |
||||
* 问题来源:ZB:值班管理,RCWH:日常维护,XJ:巡检管理,JX:检修管理,ZNZD:智能诊断 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.EQUAL) |
||||
@ApiModelProperty(value = "问题来源: 数据字典:defectSource") |
||||
private String sourceCode; |
||||
|
||||
/** |
||||
* 问题发现人 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.EQUAL) |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "问题发现人") |
||||
private Long finder; |
||||
/** |
||||
* 问题类型: |
||||
* |
||||
*/ |
||||
@QueryField(condition = SqlCondition.EQUAL) |
||||
@ApiModelProperty(value = "问题类型:字典key : defectType") |
||||
private String typeCode; |
||||
/** |
||||
* 发现时间 |
||||
*/ |
||||
@DateTimeFormat( |
||||
pattern = "yyyy-MM-dd HH:mm:ss" |
||||
) |
||||
@JsonFormat( |
||||
pattern = "yyyy-MM-dd HH:mm:ss" |
||||
) |
||||
@ApiModelProperty(value = "发现时间") |
||||
private Date findTime; |
||||
|
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.LIKE) |
||||
@ApiModelProperty(value = "名称,如果是设备则是设备名称。") |
||||
private String name; |
||||
/** |
||||
* 设备编号 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.LIKE) |
||||
@ApiModelProperty(value = "设备编号") |
||||
private String emCode; |
||||
/** |
||||
* 故障编码 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.LIKE) |
||||
@ApiModelProperty(value = "故障缺陷编码") |
||||
private String faultCode; |
||||
/** |
||||
* 故障名称 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.LIKE) |
||||
@ApiModelProperty(value = "故障缺陷名称") |
||||
private String faultName; |
||||
/** |
||||
* 现象描述 |
||||
*/ |
||||
@ApiModelProperty(value = "现象描述") |
||||
private String descripiton; |
||||
/** |
||||
* 故障文件附件,多个文件url通过,隔开 |
||||
*/ |
||||
@ApiModelProperty(value = "现象文件附件,多个文件url通过,隔开") |
||||
private String fileUrls; |
||||
/** |
||||
* 初步分析结果 |
||||
*/ |
||||
@ApiModelProperty(value = "初步分析结果") |
||||
private String initResult; |
||||
|
||||
|
||||
/** |
||||
* 甄别人 |
||||
*/ |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "甄别人") |
||||
private Long discriminator; |
||||
/** |
||||
* 甄别时间 |
||||
*/ |
||||
@DateTimeFormat( |
||||
pattern = "yyyy-MM-dd HH:mm:ss" |
||||
) |
||||
@JsonFormat( |
||||
pattern = "yyyy-MM-dd HH:mm:ss" |
||||
) |
||||
@ApiModelProperty(value = "甄别时间") |
||||
private Date discriminateTime; |
||||
|
||||
|
||||
|
||||
/** |
||||
* 甄别状态:已甄别 1 和未甄别 0 ,默认0 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.EQUAL) |
||||
@ApiModelProperty(value = "甄别状态:已甄别 1 和未甄别 0 ,默认0") |
||||
private String discriminateStatus; |
||||
|
||||
/** |
||||
* 是否为缺陷 |
||||
*/ |
||||
@QueryField(condition = SqlCondition.EQUAL) |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "是否为缺陷,0 否,1是") |
||||
private Integer isDefect; |
||||
/** |
||||
* 甄别描述 |
||||
*/ |
||||
@ApiModelProperty(value = "甄别描述") |
||||
private String discriminateDesc; |
||||
/** |
||||
* 备注(冗余) |
||||
*/ |
||||
@ApiModelProperty(value = "备注(冗余)") |
||||
private String remark; |
||||
|
||||
/** |
||||
* 是否使用智能诊断 |
||||
*/ |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "是否使用智能诊断") |
||||
private Integer isDiagnosis; |
||||
/** |
||||
* 智能诊断任务ID |
||||
*/ |
||||
@JsonSerialize(nullsUsing = NullSerializer.class) |
||||
@ApiModelProperty(value = "智能诊断任务ID") |
||||
private Long diagnosisId; |
||||
} |
@ -0,0 +1,14 @@
|
||||
package com.hnac.hzims.operational.defect.mapper; |
||||
|
||||
import com.hnac.hzims.operational.defect.entity.OperAppearanceEntity; |
||||
import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; |
||||
|
||||
/** |
||||
* Mapper 接口 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
public interface OperAppearanceMapper extends UserDataScopeBaseMapper<OperAppearanceEntity> { |
||||
|
||||
|
||||
} |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.hnac.hzims.operational.defect.mapper.OperAppearanceMapper"> |
||||
|
||||
|
||||
</mapper> |
@ -0,0 +1,13 @@
|
||||
package com.hnac.hzims.operational.defect.service; |
||||
|
||||
import com.hnac.hzims.operational.defect.entity.OperAppearanceEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
/** |
||||
* 服务类 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
public interface IOperAppearanceService extends BaseService<OperAppearanceEntity> { |
||||
|
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
||||
package com.hnac.hzims.operational.defect.service.impl; |
||||
|
||||
import com.hnac.hzims.operational.defect.entity.OperAppearanceEntity; |
||||
import com.hnac.hzims.operational.defect.mapper.OperAppearanceMapper; |
||||
import com.hnac.hzims.operational.defect.service.IOperAppearanceService; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* 服务实现类 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
@Service |
||||
public class OperAppearanceServiceImpl extends BaseServiceImpl<OperAppearanceMapper, OperAppearanceEntity> implements IOperAppearanceService { |
||||
} |
Loading…
Reference in new issue