From eca366a5921acc9fcf11aac6826f9d69a0f1c47e Mon Sep 17 00:00:00 2001 From: 79493 <794930212@qq.com> Date: Thu, 27 Oct 2022 17:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=A8=A1=E5=9D=97->=E9=80=81=E6=A3=80=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E7=BB=B4=E4=BF=AE=E8=AE=A1=E5=88=92=20=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=92=8C=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/EntInspectionRecordMapper.java | 38 +++++ .../com/rzyc/mapper/EntRepairPlanMapper.java | 35 ++++ .../com/rzyc/model/EntInspectionRecord.java | 159 ++++++++++++++++++ .../java/com/rzyc/model/EntRepairPlan.java | 158 +++++++++++++++++ .../com/rzyc/model/dto/EntRepairPlanDto.java | 88 ++++++++++ .../rzyc/model/dto/InspectionRecordDto.java | 94 +++++++++++ .../mapper/EntInspectionRecordMapper.xml | 40 +++++ .../resources/mapper/EntRepairPlanMapper.xml | 35 ++++ .../com/rzyc/controller/BaseController.java | 7 + .../EnterpriseEquipmentController.java | 108 +++++++++++- .../com/rzyc/service/PcBusinessService.java | 59 +++++++ 11 files changed, 815 insertions(+), 6 deletions(-) create mode 100644 inventory-dao/src/main/java/com/rzyc/mapper/EntInspectionRecordMapper.java create mode 100644 inventory-dao/src/main/java/com/rzyc/mapper/EntRepairPlanMapper.java create mode 100644 inventory-dao/src/main/java/com/rzyc/model/EntInspectionRecord.java create mode 100644 inventory-dao/src/main/java/com/rzyc/model/EntRepairPlan.java create mode 100644 inventory-dao/src/main/java/com/rzyc/model/dto/EntRepairPlanDto.java create mode 100644 inventory-dao/src/main/java/com/rzyc/model/dto/InspectionRecordDto.java create mode 100644 inventory-dao/src/main/resources/mapper/EntInspectionRecordMapper.xml create mode 100644 inventory-dao/src/main/resources/mapper/EntRepairPlanMapper.xml diff --git a/inventory-dao/src/main/java/com/rzyc/mapper/EntInspectionRecordMapper.java b/inventory-dao/src/main/java/com/rzyc/mapper/EntInspectionRecordMapper.java new file mode 100644 index 0000000..dda1571 --- /dev/null +++ b/inventory-dao/src/main/java/com/rzyc/mapper/EntInspectionRecordMapper.java @@ -0,0 +1,38 @@ +package com.rzyc.mapper; + +import com.rzyc.model.EntInspectionRecord; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + *
+ * 送检记录 Mapper 接口 + *
+ * + * @author + * @since 2022-10-27 + */ +@Repository +public interface EntInspectionRecordMapper extends BaseMapper+ * Mapper 接口 + *
+ * + * @author + * @since 2022-10-27 + */ +@Repository +public interface EntRepairPlanMapper extends BaseMapper+ * 送检记录 + *
+ * + * @author + * @since 2022-10-27 + */ +@TableName("ent_inspection_record") +@ApiModel(value="EntInspectionRecord对象", description="送检记录") +public class EntInspectionRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "送检记录") + @TableId("inspection_id") + private Integer inspectionId; + + @ApiModelProperty(value = "送检设备id") + @TableField("inspection_device_id") + private Integer inspectionDeviceId; + + @ApiModelProperty(value = "送检组织") + @TableField("inspection_organization") + private String inspectionOrganization; + + @ApiModelProperty(value = "送检人") + @TableField("inspection_user_id") + private String inspectionUserId; + + @ApiModelProperty(value = "送检时间") + @TableField("inspection_time") + private Date inspectionTime; + + @ApiModelProperty(value = "1.待检查 2.检测中 3.已完成 暂时不用") + @TableField("inspection_state") + private Integer inspectionState; + + @ApiModelProperty(value = "检查结果") + @TableField("inspection_text") + private String inspectionText; + + @TableField("create_by") + private String createBy; + + @TableField("create_time") + private Date createTime; + + @TableField("modify_by") + private String modifyBy; + + @TableField("modify_time") + private Date modifyTime; + + public Integer getInspectionId() { + return inspectionId; + } + + public void setInspectionId(Integer inspectionId) { + this.inspectionId = inspectionId; + } + public Integer getInspectionDeviceId() { + return inspectionDeviceId; + } + + public void setInspectionDeviceId(Integer inspectionDeviceId) { + this.inspectionDeviceId = inspectionDeviceId; + } + public String getInspectionOrganization() { + return inspectionOrganization; + } + + public void setInspectionOrganization(String inspectionOrganization) { + this.inspectionOrganization = inspectionOrganization; + } + public String getInspectionUserId() { + return inspectionUserId; + } + + public void setInspectionUserId(String inspectionUserId) { + this.inspectionUserId = inspectionUserId; + } + public Date getInspectionTime() { + return inspectionTime; + } + + public void setInspectionTime(Date inspectionTime) { + this.inspectionTime = inspectionTime; + } + public Integer getInspectionState() { + return inspectionState; + } + + public void setInspectionState(Integer inspectionState) { + this.inspectionState = inspectionState; + } + public String getInspectionText() { + return inspectionText; + } + + public void setInspectionText(String inspectionText) { + this.inspectionText = inspectionText; + } + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + public String getModifyBy() { + return modifyBy; + } + + public void setModifyBy(String modifyBy) { + this.modifyBy = modifyBy; + } + public Date getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Date modifyTime) { + this.modifyTime = modifyTime; + } + + @Override + public String toString() { + return "EntInspectionRecord{" + + "inspectionId=" + inspectionId + + ", inspectionDeviceId=" + inspectionDeviceId + + ", inspectionOrganization=" + inspectionOrganization + + ", inspectionUserId=" + inspectionUserId + + ", inspectionTime=" + inspectionTime + + ", inspectionState=" + inspectionState + + ", inspectionText=" + inspectionText + + ", createBy=" + createBy + + ", createTime=" + createTime + + ", modifyBy=" + modifyBy + + ", modifyTime=" + modifyTime + + "}"; + } +} diff --git a/inventory-dao/src/main/java/com/rzyc/model/EntRepairPlan.java b/inventory-dao/src/main/java/com/rzyc/model/EntRepairPlan.java new file mode 100644 index 0000000..c8d3513 --- /dev/null +++ b/inventory-dao/src/main/java/com/rzyc/model/EntRepairPlan.java @@ -0,0 +1,158 @@ +package com.rzyc.model; + +import com.baomidou.mybatisplus.annotation.TableName; +import java.util.Date; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableField; +import java.io.Serializable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + *+ * + *
+ * + * @author + * @since 2022-10-27 + */ +@TableName("ent_repair_plan") +@ApiModel(value="EntRepairPlan对象", description="") +public class EntRepairPlan implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId("repair_plan_id") + private String repairPlanId; + + @ApiModelProperty(value = "设备id") + @TableField("repair_device_id") + private String repairDeviceId; + + @ApiModelProperty(value = "1.常见故障维修 2.突发性故障维修 3.计划项目维修 4.不正当使用维修") + @TableField("repair_level") + private Integer repairLevel; + + @ApiModelProperty(value = "1.未执行 2.已执行 3.已过期 4.已删除") + @TableField("repair_state") + private Integer repairState; + + @ApiModelProperty(value = "上一次维修时间") + @TableField("last_time_repair") + private Date lastTimeRepair; + + @ApiModelProperty(value = "维修时间") + @TableField("repair_time") + private Date repairTime; + + @ApiModelProperty(value = "描述") + @TableField("description") + private String description; + + @TableField("create_time") + private Date createTime; + + @TableField("create_by") + private String createBy; + + @TableField("modify_time") + private Date modifyTime; + + @TableField("modify_by") + private String modifyBy; + + public String getRepairPlanId() { + return repairPlanId; + } + + public void setRepairPlanId(String repairPlanId) { + this.repairPlanId = repairPlanId; + } + public String getRepairDeviceId() { + return repairDeviceId; + } + + public void setRepairDeviceId(String repairDeviceId) { + this.repairDeviceId = repairDeviceId; + } + public Integer getRepairLevel() { + return repairLevel; + } + + public void setRepairLevel(Integer repairLevel) { + this.repairLevel = repairLevel; + } + public Integer getRepairState() { + return repairState; + } + + public void setRepairState(Integer repairState) { + this.repairState = repairState; + } + public Date getLastTimeRepair() { + return lastTimeRepair; + } + + public void setLastTimeRepair(Date lastTimeRepair) { + this.lastTimeRepair = lastTimeRepair; + } + public Date getRepairTime() { + return repairTime; + } + + public void setRepairTime(Date repairTime) { + this.repairTime = repairTime; + } + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + public Date getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Date modifyTime) { + this.modifyTime = modifyTime; + } + public String getModifyBy() { + return modifyBy; + } + + public void setModifyBy(String modifyBy) { + this.modifyBy = modifyBy; + } + + @Override + public String toString() { + return "EntRepairPlan{" + + "repairPlanId=" + repairPlanId + + ", repairDeviceId=" + repairDeviceId + + ", repairLevel=" + repairLevel + + ", repairState=" + repairState + + ", lastTimeRepair=" + lastTimeRepair + + ", repairTime=" + repairTime + + ", description=" + description + + ", createTime=" + createTime + + ", createBy=" + createBy + + ", modifyTime=" + modifyTime + + ", modifyBy=" + modifyBy + + "}"; + } +} diff --git a/inventory-dao/src/main/java/com/rzyc/model/dto/EntRepairPlanDto.java b/inventory-dao/src/main/java/com/rzyc/model/dto/EntRepairPlanDto.java new file mode 100644 index 0000000..843558b --- /dev/null +++ b/inventory-dao/src/main/java/com/rzyc/model/dto/EntRepairPlanDto.java @@ -0,0 +1,88 @@ +package com.rzyc.model.dto; + + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Date; + +public class EntRepairPlanDto { + + @ApiModelProperty(value = "主键") + private String repairPlanId; + + @ApiModelProperty(value = "设备id") + private String repairDeviceId; + + @ApiModelProperty(value = "1.常见故障维修 2.突发性故障维修 3.计划项目维修 4.不正当使用维修") + private Integer repairLevel; + + @ApiModelProperty(value = "1.未执行 2.已执行 3.已过期 4.已删除") + private Integer repairState; + + @ApiModelProperty(value = "上一次维修时间") + private Date lastTimeRepair; + + @ApiModelProperty(value = "维修时间") + private Date repairTime; + + @ApiModelProperty(value = "描述") + private String description; + + public String getRepairPlanId() { + return repairPlanId; + } + + public void setRepairPlanId(String repairPlanId) { + this.repairPlanId = repairPlanId; + } + + public String getRepairDeviceId() { + return repairDeviceId; + } + + public void setRepairDeviceId(String repairDeviceId) { + this.repairDeviceId = repairDeviceId; + } + + public Integer getRepairLevel() { + return repairLevel; + } + + public void setRepairLevel(Integer repairLevel) { + this.repairLevel = repairLevel; + } + + public Integer getRepairState() { + return repairState; + } + + public void setRepairState(Integer repairState) { + this.repairState = repairState; + } + + public Date getLastTimeRepair() { + return lastTimeRepair; + } + + public void setLastTimeRepair(Date lastTimeRepair) { + this.lastTimeRepair = lastTimeRepair; + } + + public Date getRepairTime() { + return repairTime; + } + + public void setRepairTime(Date repairTime) { + this.repairTime = repairTime; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/inventory-dao/src/main/java/com/rzyc/model/dto/InspectionRecordDto.java b/inventory-dao/src/main/java/com/rzyc/model/dto/InspectionRecordDto.java new file mode 100644 index 0000000..fdebb5a --- /dev/null +++ b/inventory-dao/src/main/java/com/rzyc/model/dto/InspectionRecordDto.java @@ -0,0 +1,94 @@ +package com.rzyc.model.dto; + + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Date; + +/** + * 送检记录dto + * @author Xuwanxin + * @date 2022/10/27 + * */ + +public class InspectionRecordDto { + + @ApiModelProperty(value = "送检记录") + private Integer inspectionId; + + @ApiModelProperty(value = "送检设备id") + private Integer inspectionDeviceId; + + @ApiModelProperty(value = "送检组织") + private String inspectionOrganization; + + @ApiModelProperty(value = "送检人") + private String inspectionUserId; + + @ApiModelProperty(value = "送检时间") + private Date inspectionTime; + + @ApiModelProperty(value = "1.待检查 2.检测中 3.已完成 暂时不用") + private Integer inspectionState; + + @ApiModelProperty(value = "检查结果") + private String inspectionText; + + public Integer getInspectionId() { + return inspectionId; + } + + public void setInspectionId(Integer inspectionId) { + this.inspectionId = inspectionId; + } + + public Integer getInspectionDeviceId() { + return inspectionDeviceId; + } + + public void setInspectionDeviceId(Integer inspectionDeviceId) { + this.inspectionDeviceId = inspectionDeviceId; + } + + public String getInspectionOrganization() { + return inspectionOrganization; + } + + public void setInspectionOrganization(String inspectionOrganization) { + this.inspectionOrganization = inspectionOrganization; + } + + public String getInspectionUserId() { + return inspectionUserId; + } + + public void setInspectionUserId(String inspectionUserId) { + this.inspectionUserId = inspectionUserId; + } + + public Date getInspectionTime() { + return inspectionTime; + } + + public void setInspectionTime(Date inspectionTime) { + this.inspectionTime = inspectionTime; + } + + public Integer getInspectionState() { + return inspectionState; + } + + public void setInspectionState(Integer inspectionState) { + this.inspectionState = inspectionState; + } + + public String getInspectionText() { + return inspectionText; + } + + public void setInspectionText(String inspectionText) { + this.inspectionText = inspectionText; + } +} diff --git a/inventory-dao/src/main/resources/mapper/EntInspectionRecordMapper.xml b/inventory-dao/src/main/resources/mapper/EntInspectionRecordMapper.xml new file mode 100644 index 0000000..316e64a --- /dev/null +++ b/inventory-dao/src/main/resources/mapper/EntInspectionRecordMapper.xml @@ -0,0 +1,40 @@ + + +