init pms
This commit is contained in:
parent
1fe80f00e5
commit
14d9dab509
@ -0,0 +1,55 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 通用文件上传实体DTO
|
||||
* @author huwei
|
||||
* @date 2023/10/17
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("通用文件上传实体DTO")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class CommonAttachmentDTO {
|
||||
|
||||
@ApiModelProperty(value="主键handle")
|
||||
private String handle;
|
||||
|
||||
@ApiModelProperty(value="会议任务跟踪表主键")
|
||||
private String meetingTaskRef;
|
||||
|
||||
@ApiModelProperty(value="功能模块名称(文件上传时以该名称为目录)")
|
||||
private String modelFunctionName;
|
||||
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty(value="创建人员")
|
||||
private String creator;
|
||||
|
||||
@ApiModelProperty(value="相关上传文件信息")
|
||||
private MultipartFile file;
|
||||
|
||||
@ApiModelProperty(value="对应文件字节数组")
|
||||
private byte[] bytes;
|
||||
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 导入异常DTO
|
||||
* @author Yohann
|
||||
* @since 2023/11/17
|
||||
*/
|
||||
@Data
|
||||
public class ErrorMsgDTO {
|
||||
/**
|
||||
* 行号
|
||||
*/
|
||||
private int lineNum;
|
||||
/**
|
||||
* 错误信息
|
||||
*/
|
||||
private List<String> errors;
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class InspectOrderDTO extends InspectOrder {
|
||||
|
||||
@ExcelProperty(value = "设备编号", index = 2)
|
||||
private String resrce;
|
||||
@ExcelProperty(value = "设备名称", index = 3)
|
||||
private String description;
|
||||
@ExcelIgnore
|
||||
private String location;
|
||||
@ExcelProperty(value = "验收人", index = 8)
|
||||
private String checkPerson;
|
||||
@ExcelProperty(value = "验收时间", index = 9)
|
||||
private LocalDateTime checkTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime checkStartTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime executeStartTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime completeStartTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime checkEndTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime executeEndTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime completeEndTime;
|
||||
@ExcelIgnore
|
||||
private String freqUnit;
|
||||
@ExcelIgnore
|
||||
private List<String> valueList;
|
||||
@ExcelIgnore
|
||||
private String result;
|
||||
@ExcelIgnore
|
||||
private String isHaveRfid;
|
||||
@ExcelIgnore
|
||||
private String isText;
|
||||
@ExcelIgnore
|
||||
private String checked;
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.InspectOrder;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrderDetail;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class InspectOrderExecuteDTO extends InspectOrder {
|
||||
|
||||
private List<InspectOrderDetail> detailList;
|
||||
private String fileId;
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenanceOrderCheckDTO {
|
||||
|
||||
private List<PmsMaintenanceOrderDetallCheckDTO> equipStatusData;
|
||||
private List<PmsMaintenanceOrderDetallContentDTO> equipList;
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrder;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetailConsum;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetallCheck;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetallContent;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenanceOrderDTO extends PmsMaintenanceOrder {
|
||||
@ExcelProperty("设备编号")
|
||||
private String equipName;
|
||||
@ExcelProperty("设备名称")
|
||||
private String equipDescription;
|
||||
@ExcelProperty("上次保养完成时间")
|
||||
private LocalDateTime maintenanceCplTime;
|
||||
@ExcelIgnore
|
||||
private String cycleType;
|
||||
@ExcelProperty("备注")
|
||||
private String masterRemark;
|
||||
@ExcelProperty("保养周期")
|
||||
private String timeSet;
|
||||
@ExcelIgnore
|
||||
private List<PmsMaintenanceOrderDetallCheck> equipStatusData;
|
||||
@ExcelIgnore
|
||||
private List<PmsMaintenanceOrderDetallContent> equipList;
|
||||
@ExcelIgnore
|
||||
private List<PmsMaintenanceOrderDetailConsum> consumableRecord;
|
||||
@ExcelProperty("验收人")
|
||||
private String checkPerson;
|
||||
@ExcelProperty("验收时间")
|
||||
private String checkTime;
|
||||
@ExcelProperty("验收意见")
|
||||
private String checkOpinion;
|
||||
@ExcelIgnore
|
||||
private String fileId;
|
||||
@ExcelIgnore
|
||||
private String imgId;
|
||||
@ExcelIgnore
|
||||
private String fileNid;
|
||||
@ExcelIgnore
|
||||
private String file;
|
||||
@ExcelIgnore
|
||||
private String remoteFile;
|
||||
@ExcelIgnore
|
||||
private String fileName;
|
||||
@ExcelIgnore
|
||||
private String remoteFileName;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime completStartTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime completEndTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime checkStartTime;
|
||||
@ExcelIgnore
|
||||
private LocalDateTime checkEndTime;
|
||||
@ExcelIgnore
|
||||
private List<String> valueList;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetallCheck;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenanceOrderDetallCheckDTO extends PmsMaintenanceOrderDetallCheck {
|
||||
private String cheakItem;
|
||||
private String cheakUnit;
|
||||
private String inputType;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetallContent;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenanceOrderDetallContentDTO extends PmsMaintenanceOrderDetallContent {
|
||||
|
||||
private String maintenanceContent;
|
||||
private String max;
|
||||
private String min;
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrder;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenanceOrderHistoryDTO extends PmsMaintenanceOrder {
|
||||
|
||||
private String checkTime;
|
||||
private String checkPerson;
|
||||
private String checkOpinion;
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetallEquip;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenancePlanDetallEquipDTO extends PmsMaintenancePlanDetallEquip {
|
||||
|
||||
private String equipName;
|
||||
private String equipDescription;
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetailCheak;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetailConsum;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetailContent;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanMaster;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PmsMaintenancePlanMasterDTO extends PmsMaintenancePlanMaster {
|
||||
private String equipGroup;
|
||||
private List<PmsMaintenancePlanDetailCheak> checkTableData;
|
||||
private List<PmsMaintenancePlanDetallEquipDTO> equipTableData;
|
||||
private List<PmsMaintenancePlanDetailConsum> consumTableData;
|
||||
private List<PmsMaintenancePlanDetailContent> itemTableData;
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrderConsum;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsOrderConsumDTO extends PmsReportOrderConsum {
|
||||
|
||||
private String partName;
|
||||
private String specNo;
|
||||
private String qty;
|
||||
private String qtyUnit;
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class PmsOrderHistoryDTO extends PmsReportOrder {
|
||||
@ExcelIgnore
|
||||
private String needNum;
|
||||
@ExcelIgnore
|
||||
private String partName;
|
||||
@ExcelProperty(value = "验收人", index = 13)
|
||||
private String checkPerson;
|
||||
@ExcelProperty(value = "影响生产时间", index = 14)
|
||||
private String affectTime;
|
||||
@ExcelProperty(value = "设备编码", index = 3)
|
||||
private String resrce;
|
||||
@ExcelProperty(value = "设备名称", index = 4)
|
||||
private String description;
|
||||
@ExcelProperty(value = "验收时间", index = 15)
|
||||
private LocalDateTime checkTime;
|
||||
@ExcelIgnore
|
||||
private String startTime;
|
||||
@ExcelIgnore
|
||||
private String endTime;
|
||||
@ExcelIgnore
|
||||
private String safeId;
|
||||
@ExcelIgnore
|
||||
private String safeRemote;
|
||||
@ExcelIgnore
|
||||
private String safeName;
|
||||
@ExcelIgnore
|
||||
private String finishId;
|
||||
@ExcelIgnore
|
||||
private String finishRemote;
|
||||
@ExcelIgnore
|
||||
private String finishName;
|
||||
@ExcelIgnore
|
||||
private List<String> valueList;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExt;
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExtDetall;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class PmsPatrolSheetExtDTO extends PmsPatrolSheetExt {
|
||||
|
||||
private String equipGroup;
|
||||
private List<PmsPatrolSheetExtDetall> detailList;
|
||||
private List<PmsPatrolSheetExtDetallEquipDTO> equipTableData;
|
||||
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExtDetall;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsPatrolSheetExtDetallDTO extends PmsPatrolSheetExtDetall {
|
||||
|
||||
private String resultNumber;
|
||||
private String inspectResult;
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExtDetallEquip;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsPatrolSheetExtDetallEquipDTO extends PmsPatrolSheetExtDetallEquip {
|
||||
|
||||
private String equipName;
|
||||
private String equipDescription;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PmsReportDTO {
|
||||
private String faultDescription;
|
||||
private String structCodeId;
|
||||
private String structName;
|
||||
private String brokenDescription;
|
||||
private String repairDescription;
|
||||
private String repairPerson;
|
||||
private String completedTime;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrder;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class PmsReportOrderCheckDTO extends PmsReportOrder {
|
||||
|
||||
/**
|
||||
* 验收意见
|
||||
*/
|
||||
@ApiModelProperty(value="验收意见")
|
||||
private String checkOpinion;
|
||||
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
@ApiModelProperty(value="验收人")
|
||||
private String checkPerson;
|
||||
|
||||
/**
|
||||
* 影响生产时间
|
||||
*/
|
||||
@ApiModelProperty(value="影响生产时间")
|
||||
private String affectTime;
|
||||
|
||||
/**
|
||||
* 验收驳回原因
|
||||
*/
|
||||
@ApiModelProperty(value="验收驳回原因")
|
||||
private String rejectCause;
|
||||
|
||||
private String resrce;
|
||||
private String description;
|
||||
private LocalDateTime checkTime;
|
||||
private LocalDateTime checkStartTime;
|
||||
private LocalDateTime checkEndTime;
|
||||
private LocalDateTime startTime;
|
||||
private LocalDateTime endTime;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ReportDataDTO {
|
||||
private String completedOrders;
|
||||
private String acceptedOrders;
|
||||
private String waitOrders;
|
||||
private String receiveOrders;
|
||||
private String count;
|
||||
private String finishedOrders;
|
||||
private String undoneOrders;
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.foreverwin.mom.pms.dto;
|
||||
|
||||
import com.foreverwin.mom.pms.entity.ResrceExt;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.YearMonth;
|
||||
|
||||
@Data
|
||||
public class ResrceExtDTO extends ResrceExt {
|
||||
|
||||
private String remoteFileName;
|
||||
private String fileName;
|
||||
private String eqpType;
|
||||
private String workCenter;
|
||||
private String procedureDescription;
|
||||
private LocalDate useDate;
|
||||
private YearMonth startTime;
|
||||
private YearMonth endTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:45:47
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_check_order")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class CheckOrder extends Model<CheckOrder> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 点巡检工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="点巡检工单主表主键")
|
||||
private String inspectOrderBo;
|
||||
|
||||
/**
|
||||
* 验收意见
|
||||
*/
|
||||
@ApiModelProperty(value="验收意见")
|
||||
private String checkOpinion;
|
||||
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
@ApiModelProperty(value="验收人")
|
||||
private String checkPerson;
|
||||
|
||||
/**
|
||||
* 验收时间
|
||||
*/
|
||||
@ApiModelProperty(value="验收时间")
|
||||
private LocalDateTime checkTime;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,159 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 指标项关系表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2023-11-24 08:59:22
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_index_relation")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "指标项关系表")
|
||||
public class IndexRelation extends Model<IndexRelation> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String KW_INDEX_RELATION_BO = "IndexRelationBO";
|
||||
|
||||
/**
|
||||
* handle
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="handle")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 工厂
|
||||
*/
|
||||
@ApiModelProperty(value="工厂")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 指标项层级
|
||||
*/
|
||||
@ApiModelProperty(value="指标项层级")
|
||||
private String indexLevel;
|
||||
|
||||
/**
|
||||
* 部门/分厂
|
||||
*/
|
||||
@ApiModelProperty(value="部门/分厂")
|
||||
private String dept;
|
||||
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@ApiModelProperty(value="部门编号")
|
||||
private String deptCode;
|
||||
|
||||
/**
|
||||
* 装置
|
||||
*/
|
||||
@ApiModelProperty(value="装置")
|
||||
private String device;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
@ApiModelProperty(value="设备")
|
||||
private String equip;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value="更新时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
/**
|
||||
* 更新人员
|
||||
*/
|
||||
@ApiModelProperty(value="更新人员")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 部门ID
|
||||
*/
|
||||
@ApiModelProperty(value="部门ID")
|
||||
@TableField(exist = false)
|
||||
private String deptId;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String workCenter;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 是否基于还原炉批
|
||||
*/
|
||||
@ApiModelProperty(value="是否基于还原炉批")
|
||||
private String isReductionBatch;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<IndexRelationDetail> indexRelationDetailList;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String deptLevel;
|
||||
|
||||
public static String genHandle(String site, String indexRelationNo) {
|
||||
return HandleBoProcessor.genHandle(KW_INDEX_RELATION_BO, site, indexRelationNo);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,208 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, mom All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the foreverwin.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: mom
|
||||
*/
|
||||
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* 指标项关系明细表
|
||||
*
|
||||
* @author mom code generator
|
||||
* @date 2023-11-27 17:39:25
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_index_relation_detail")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "指标项关系明细表")
|
||||
public class IndexRelationDetail extends Model<IndexRelationDetail> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String INDEX_RELATION_DETAIL_BO = "IndexRelationDetailBO:";
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 指标项关系表主键
|
||||
*/
|
||||
@ApiModelProperty(value="指标项关系表主键")
|
||||
private String indexRelationBo;
|
||||
|
||||
/**
|
||||
* 指标项大类编码
|
||||
*/
|
||||
@ApiModelProperty(value="指标项大类编码")
|
||||
private String indexCategory;
|
||||
|
||||
@ApiModelProperty(value = "指标项大类编码描述")
|
||||
private String indexCategoryDesc;
|
||||
|
||||
/**
|
||||
* 指标项类别编码
|
||||
*/
|
||||
@ApiModelProperty(value="指标项类别编码")
|
||||
private String indexSubcategory;
|
||||
|
||||
/**
|
||||
* 指标项类别描述
|
||||
*/
|
||||
@ApiModelProperty(value="指标项类别描述")
|
||||
private String indexSubcategoryDesc;
|
||||
|
||||
/**
|
||||
* 指标项类型编码
|
||||
*/
|
||||
@ApiModelProperty(value="指标项类型编码")
|
||||
private String indexSubcategoryType;
|
||||
|
||||
/**
|
||||
* 指标项类型描述
|
||||
*/
|
||||
@ApiModelProperty(value="指标项类型描述")
|
||||
private String indexSubcategoryTypeDesc;
|
||||
|
||||
/**
|
||||
* 指标项编码
|
||||
*/
|
||||
@ApiModelProperty(value="指标项编码")
|
||||
private String indexCode;
|
||||
|
||||
/**
|
||||
* 指标项描述
|
||||
*/
|
||||
@ApiModelProperty(value="指标项描述")
|
||||
private String indexDesc;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value="单位")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 车间
|
||||
*/
|
||||
@ApiModelProperty(value="车间")
|
||||
private String fabNo;
|
||||
|
||||
/**
|
||||
* 作业区域
|
||||
*/
|
||||
@ApiModelProperty(value="作业区域")
|
||||
private String workArea;
|
||||
|
||||
/**
|
||||
* 工段
|
||||
*/
|
||||
@ApiModelProperty(value="工段")
|
||||
private String workSection;
|
||||
|
||||
/**
|
||||
* 产线
|
||||
*/
|
||||
@ApiModelProperty(value="产线")
|
||||
private String workLine;
|
||||
/**
|
||||
* 产线
|
||||
*/
|
||||
@ApiModelProperty(value="设备")
|
||||
private String resrce;
|
||||
@TableField(exist = false)
|
||||
private String seq;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
public static String genHandle(String site, String indexRelationBo,String indexSubcategoryType, String indexCode ) {
|
||||
return HandleBoProcessor.genHandle(INDEX_RELATION_DETAIL_BO, site, indexRelationBo, indexSubcategoryType, indexCode);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,190 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:46:20
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_inspect_order")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class InspectOrder extends Model<InspectOrder> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String INSPECT_ORDER = "InspectOrderBo";
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
@ExcelIgnore
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 点巡检计划表主键
|
||||
*/
|
||||
@ApiModelProperty(value="点巡检计划表主键")
|
||||
@ExcelIgnore
|
||||
private String zPmsPatrolSheetExtBo;
|
||||
|
||||
/**
|
||||
* 工单编号
|
||||
*/
|
||||
@ApiModelProperty(value="工单编号")
|
||||
@ExcelProperty(value = "工单编号",index = 1)
|
||||
private String orderNumber;
|
||||
|
||||
/**
|
||||
* 设备群组主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备群组主键")
|
||||
@ExcelIgnore
|
||||
private String pmsEquipGroupBo;
|
||||
|
||||
/**
|
||||
* 设备主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备主键")
|
||||
@ExcelIgnore
|
||||
private String pmsEquipBo;
|
||||
|
||||
/**
|
||||
* 设备主数据主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备主数据主键")
|
||||
@ExcelIgnore
|
||||
private String zPmsResrceExtBo;
|
||||
|
||||
/**
|
||||
* 工单状态
|
||||
*/
|
||||
@ApiModelProperty(value="工单状态")
|
||||
@ExcelProperty(value = "工单状态",index = 4)
|
||||
private String stateName;
|
||||
|
||||
/**
|
||||
* 执行人
|
||||
*/
|
||||
@ApiModelProperty(value="执行人")
|
||||
@ExcelProperty(value = "执行人",index = 7)
|
||||
private String workPerson;
|
||||
|
||||
/**
|
||||
* 执行时间
|
||||
*/
|
||||
@ApiModelProperty(value="执行时间")
|
||||
@ExcelProperty(value = "执行时间",index = 5)
|
||||
private LocalDateTime executeTime;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
@ApiModelProperty(value="完成时间")
|
||||
@ExcelProperty(value = "完成时间",index = 6)
|
||||
private LocalDateTime complete;
|
||||
|
||||
/**
|
||||
* 机器是否停机
|
||||
*/
|
||||
@ApiModelProperty(value="机器是否停机")
|
||||
@ExcelProperty(value = "机器是否停机",index = 10)
|
||||
private String shutdown;
|
||||
|
||||
/**
|
||||
* 关联维修工单编号
|
||||
*/
|
||||
@ApiModelProperty(value="关联维修工单编号")
|
||||
@ExcelIgnore
|
||||
private String repairNum;
|
||||
|
||||
/**
|
||||
* 是否扫描RFID
|
||||
*/
|
||||
@ApiModelProperty(value="是否扫描RFID")
|
||||
@ExcelIgnore
|
||||
private String isScan;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
@ExcelIgnore
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
@ExcelIgnore
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
@ExcelIgnore
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
@ExcelIgnore
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
@ExcelIgnore
|
||||
private String ext5;
|
||||
|
||||
@ApiModelProperty("工厂")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String site;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty("创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String creator;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
@ApiModelProperty("更新人员")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private String updater;
|
||||
|
||||
public static String genHandle(String site, String orderNumber) {
|
||||
return HandleBoProcessor.genHandle(INSPECT_ORDER, site, orderNumber);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,125 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:46:17
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_inspect_order_detail")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class InspectOrderDetail extends Model<InspectOrderDetail> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 点巡检工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="点巡检工单主表主键")
|
||||
private String inspectOrderBo;
|
||||
|
||||
/**
|
||||
* 点巡检计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="点巡检计划主表主键")
|
||||
private String zPmsPatrolSheetExtDetallBo;
|
||||
|
||||
/**
|
||||
* 结果
|
||||
*/
|
||||
@ApiModelProperty(value="结果")
|
||||
private String resultNumber;
|
||||
|
||||
/**
|
||||
* 点检结果
|
||||
*/
|
||||
@ApiModelProperty(value="点检结果")
|
||||
private String inspectResult;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
@ApiModelProperty(value="备注信息")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 点巡检完成附件上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:19:03
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_inspect_order_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "点巡检完成附件上传")
|
||||
public class InspectOrderUpload extends Model<InspectOrderUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 点巡检工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value = "点巡检工单主表主键")
|
||||
private String zInspectOrderBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value = "文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value = "文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value = "文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value = "服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养工单工单验收表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-23 13:59:58
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_maintenance_check")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养工单工单验收表")
|
||||
public class MaintenanceCheck extends Model<MaintenanceCheck> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String zPmsMaintenanceOrderBo;
|
||||
|
||||
/**
|
||||
* 验收意见
|
||||
*/
|
||||
@ApiModelProperty(value="验收意见")
|
||||
private String checkOpinion;
|
||||
|
||||
/**
|
||||
* 验收结果
|
||||
*/
|
||||
@ApiModelProperty(value="验收结果")
|
||||
private String checkResult;
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
@ApiModelProperty(value="验收人")
|
||||
private String checkPerson;
|
||||
|
||||
/**
|
||||
* 验收时间
|
||||
*/
|
||||
@ApiModelProperty(value="验收时间")
|
||||
private LocalDateTime checkTime;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,238 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.YearMonth;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-29 13:53:38
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_meter_sheet")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class MeterSheet extends Model<MeterSheet> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String METER_SHEET = "MeterSheetBo";
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
@ExcelIgnore
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 仪表位号
|
||||
*/
|
||||
@ApiModelProperty(value = "仪表位号")
|
||||
@ExcelProperty(value = "仪表位号", index = 0)
|
||||
private String instrumentNumber;
|
||||
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
@ApiModelProperty(value = "仪表名称")
|
||||
@ExcelProperty(value = "仪表名称", index = 1)
|
||||
private String instrumentName;
|
||||
|
||||
/**
|
||||
* 所在位置
|
||||
*/
|
||||
@ApiModelProperty(value = "所在位置")
|
||||
@ExcelProperty(value = "所在位置", index = 2)
|
||||
private String area;
|
||||
|
||||
/**
|
||||
* 类别
|
||||
*/
|
||||
@ApiModelProperty(value = "类别")
|
||||
@ExcelProperty(value = "类别编码", index = 5)
|
||||
private String pmsEqpTypeBo;
|
||||
|
||||
/**
|
||||
* 入厂时间
|
||||
*/
|
||||
@ApiModelProperty(value = "入厂时间")
|
||||
@ExcelIgnore
|
||||
private YearMonth entryTime;
|
||||
|
||||
/**
|
||||
* 型号规格
|
||||
*/
|
||||
@ApiModelProperty(value = "型号规格")
|
||||
@ExcelProperty(value = "型号规格", index = 6)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 测量范围
|
||||
*/
|
||||
@ApiModelProperty(value = "测量范围")
|
||||
@TableField("`RANGE`")
|
||||
@ExcelProperty(value = "测量范围", index = 7)
|
||||
private String range;
|
||||
|
||||
/**
|
||||
* 精度(%)
|
||||
*/
|
||||
@ApiModelProperty(value = "精度(%)")
|
||||
@ExcelProperty(value = "精度(%)", index = 8)
|
||||
private String percision;
|
||||
|
||||
/**
|
||||
* 生产厂家
|
||||
*/
|
||||
@ApiModelProperty(value = "生产厂家")
|
||||
@ExcelProperty(value = "精生产厂家", index = 9)
|
||||
private String vender;
|
||||
|
||||
/**
|
||||
* 当前状态
|
||||
*/
|
||||
@ApiModelProperty(value = "当前状态")
|
||||
@ExcelProperty(value = "当前状态", index = 10)
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 校验周期
|
||||
*/
|
||||
@ApiModelProperty(value = "校验周期")
|
||||
@ExcelProperty(value = "校验周期", index = 11)
|
||||
private Integer checkCycle;
|
||||
|
||||
/**
|
||||
* 校验日期
|
||||
*/
|
||||
@ApiModelProperty(value = "校验日期")
|
||||
@ExcelProperty(value = "校验日期", index = 12)
|
||||
private LocalDate checkDate;
|
||||
|
||||
/**
|
||||
* 计划校验日期
|
||||
*/
|
||||
@ApiModelProperty(value = "计划校验日期")
|
||||
@ExcelProperty(value = "计划校验日期", index = 13)
|
||||
private LocalDate planCheckDate;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展1")
|
||||
@ExcelProperty(value = "仪表类别", index = 3)
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展2")
|
||||
@ExcelProperty(value = "仪表大类", index = 4)
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展3")
|
||||
@ExcelIgnore
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展4")
|
||||
@ExcelIgnore
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展5")
|
||||
@ExcelIgnore
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 固定资产编号
|
||||
*/
|
||||
@ApiModelProperty(value = "固定资产编号")
|
||||
@ExcelProperty(value = "固定资产编号", index = 14)
|
||||
private String inventarNummer;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
@ApiModelProperty(value = "设备编号")
|
||||
@ExcelProperty(value = "设备编号", index = 15)
|
||||
private String resrce;
|
||||
|
||||
/**
|
||||
* 整定压力(Mpa.PG)
|
||||
*/
|
||||
@ApiModelProperty(value = "整定压力(Mpa.PG)")
|
||||
@ExcelProperty(value = "整定压力(Mpa.PG)", index = 16)
|
||||
private String setPressure;
|
||||
|
||||
/**
|
||||
* 分度值
|
||||
*/
|
||||
@ApiModelProperty(value = "分度值")
|
||||
@ExcelProperty(value = "分度值", index = 17)
|
||||
private String divisionValue;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注")
|
||||
@ExcelProperty(value = "备注", index = 18)
|
||||
private String remark;
|
||||
/**
|
||||
* 仪表大类
|
||||
*/
|
||||
@ApiModelProperty(value = "仪表大类")
|
||||
@ExcelIgnore
|
||||
private String eqpCategory;
|
||||
|
||||
@ApiModelProperty("工厂")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String site;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty("创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String creator;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
@ApiModelProperty("更新人员")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private String updater;
|
||||
|
||||
public static String genHandle(String site, String instrumentNumber) {
|
||||
return HandleBoProcessor.genHandle(METER_SHEET, site, instrumentNumber);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 设备报修-附件上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:36
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_equipment_repair_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "设备报修-附件上传")
|
||||
public class PmsEquipmentRepairUpload extends Model<PmsEquipmentRepairUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单主表主键")
|
||||
private String zPmsReportOrderBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养完成附件上传表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-22 11:10:56
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_complete_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养完成附件上传表")
|
||||
public class PmsMaintenanceCompleteUpload extends Model<PmsMaintenanceCompleteUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String maintenanceOrderNumberBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养工单附件上传表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-22 09:41:55
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_negotiat_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养工单附件上传表")
|
||||
public class PmsMaintenanceNegotiatUpload extends Model<PmsMaintenanceNegotiatUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String maintenanceOrderNumberBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,190 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-21 16:39:35
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_order")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsMaintenanceOrder extends Model<PmsMaintenanceOrder> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String MAINTENANCE_ORDER = "MaintenanceOrderBo";
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
@ExcelIgnore
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value = "保养计划主表主键")
|
||||
@ExcelIgnore
|
||||
private String zPmsMaintenancePlanMasterBo;
|
||||
|
||||
/**
|
||||
* 工单编号
|
||||
*/
|
||||
@ApiModelProperty(value = "工单编号")
|
||||
@ExcelProperty("工单编号")
|
||||
private String maintenanceOrderNumber;
|
||||
|
||||
/**
|
||||
* 设备群组主键
|
||||
*/
|
||||
@ApiModelProperty(value = "设备群组主键")
|
||||
@ExcelIgnore
|
||||
private String pmsEquipGroupBo;
|
||||
|
||||
/**
|
||||
* 设备主键
|
||||
*/
|
||||
@ApiModelProperty(value = "设备主键")
|
||||
@ExcelIgnore
|
||||
private String pmsEquipBo;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
@ApiModelProperty(value = "完成时间")
|
||||
@ExcelProperty("完成时间")
|
||||
private LocalDateTime completTime;
|
||||
|
||||
/**
|
||||
* 工单执行人
|
||||
*/
|
||||
@ApiModelProperty(value = "工单执行人")
|
||||
@ExcelProperty("工单执行人")
|
||||
private String orderWorkPerson;
|
||||
|
||||
/**
|
||||
* 执行时间
|
||||
*/
|
||||
@ApiModelProperty(value = "执行时间")
|
||||
@ExcelProperty("执行时间")
|
||||
private LocalDateTime executeTime;
|
||||
|
||||
/**
|
||||
* 距离上次保养完成天数
|
||||
*/
|
||||
@ApiModelProperty(value = "距离上次保养完成天数")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH")
|
||||
@ExcelIgnore
|
||||
private LocalDateTime lastDayNumber;
|
||||
|
||||
/**
|
||||
* 当前状态
|
||||
*/
|
||||
@ApiModelProperty(value = "当前状态")
|
||||
@ExcelProperty("当前状态")
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 是否延期
|
||||
*/
|
||||
@ApiModelProperty(value = "是否延期")
|
||||
@ExcelProperty("是否延期")
|
||||
private String isLastMonth;
|
||||
|
||||
/**
|
||||
* 是否延期
|
||||
*/
|
||||
@ApiModelProperty(value = "协商结果")
|
||||
@ExcelProperty("协商结果")
|
||||
private String negotiationResult;
|
||||
|
||||
/**
|
||||
* 验收意见
|
||||
*/
|
||||
@ApiModelProperty(value = "验收意见")
|
||||
@ExcelIgnore
|
||||
private String opinion;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展1")
|
||||
@ExcelIgnore
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展2")
|
||||
@ExcelIgnore
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展3")
|
||||
@ExcelIgnore
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展4")
|
||||
@ExcelIgnore
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展5")
|
||||
@ExcelIgnore
|
||||
private String ext5;
|
||||
|
||||
@ApiModelProperty("工厂")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String site;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty("创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String creator;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
@ApiModelProperty("更新人员")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private String updater;
|
||||
|
||||
public static String genHandle(String site, String maintenanceOrderNumber) {
|
||||
return HandleBoProcessor.genHandle(MAINTENANCE_ORDER, site, maintenanceOrderNumber);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养工单从表-耗材记录表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-29 09:50:15
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_order_detail_consum")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养工单从表-耗材记录表")
|
||||
public class PmsMaintenanceOrderDetailConsum extends Model<PmsMaintenanceOrderDetailConsum> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String zPmsMaintenanceOrderBo;
|
||||
|
||||
/**
|
||||
* 所需数量
|
||||
*/
|
||||
@ApiModelProperty(value="所需数量")
|
||||
private String needNum;
|
||||
|
||||
/**
|
||||
* 备品信息表主键
|
||||
*/
|
||||
@ApiModelProperty(value="备品信息表主键")
|
||||
private String zPmsPartExtBo;
|
||||
|
||||
/**
|
||||
* 耗材来源
|
||||
*/
|
||||
@ApiModelProperty(value="耗材来源")
|
||||
private String consumSource;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养前设备状态表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-22 14:21:22
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_order_detall_check")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养前设备状态表")
|
||||
public class PmsMaintenanceOrderDetallCheck extends Model<PmsMaintenanceOrderDetallCheck> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String maintenanceOrderNumberBo;
|
||||
|
||||
/**
|
||||
* 保养计划从表-前后检查项表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划从表-前后检查项表主键")
|
||||
private String zPmsMaintenancePlanDetailCheakBo;
|
||||
|
||||
/**
|
||||
* 保养前结果值
|
||||
*/
|
||||
@ApiModelProperty(value="保养前结果值")
|
||||
private String cheakInputBefore;
|
||||
|
||||
/**
|
||||
* 保养后结果值
|
||||
*/
|
||||
@ApiModelProperty(value="保养后结果值")
|
||||
private String cheakInputAfter;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,120 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养工单从表-保养项目表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-22 14:21:07
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_order_detall_content")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养工单从表-保养项目表")
|
||||
public class PmsMaintenanceOrderDetallContent extends Model<PmsMaintenanceOrderDetallContent> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String maintenanceOrderNumberBo;
|
||||
|
||||
/**
|
||||
* 保养计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划主表主键")
|
||||
private String zPmsMaintenancePlanBo;
|
||||
|
||||
/**
|
||||
* 保养计划从表-保养内容表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划从表-保养内容表主键")
|
||||
private String zPmsMaintenancePlanDetailContentBo;
|
||||
|
||||
/**
|
||||
* 结果值
|
||||
*/
|
||||
@ApiModelProperty(value="结果值")
|
||||
private String maintenanceInput;
|
||||
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 保养工单从表-保养完成结果上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:55
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_order_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "保养工单从表-保养完成结果上传")
|
||||
public class PmsMaintenanceOrderUpload extends Model<PmsMaintenanceOrderUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养工单主表主键")
|
||||
private String maintenanceOrderNumberBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 11:10:27
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_plan_detail_cheak")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsMaintenancePlanDetailCheak extends Model<PmsMaintenancePlanDetailCheak> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value="主键")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划主表主键")
|
||||
private String zPmsMaintenancePlanBo;
|
||||
|
||||
/**
|
||||
* 检查项
|
||||
*/
|
||||
@ApiModelProperty(value="检查项")
|
||||
private String cheakItem;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value="单位")
|
||||
private String cheakUnit;
|
||||
|
||||
/**
|
||||
* 输入类型
|
||||
*/
|
||||
@ApiModelProperty(value="输入类型")
|
||||
private String inputType;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,125 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 11:09:52
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_plan_detail_consum")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsMaintenancePlanDetailConsum extends Model<PmsMaintenancePlanDetailConsum> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value="主键")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划主表主键")
|
||||
private String zPmsMaintenancePlanBo;
|
||||
|
||||
/**
|
||||
* 备品名称
|
||||
*/
|
||||
@ApiModelProperty(value="备品名称")
|
||||
private String consumeItemName;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@ApiModelProperty(value="规格型号")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value="单位")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 所需数量
|
||||
*/
|
||||
@ApiModelProperty(value="所需数量")
|
||||
private String needNumber;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,131 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 11:10:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_plan_detail_content")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsMaintenancePlanDetailContent extends Model<PmsMaintenancePlanDetailContent> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value="主键")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划主表主键")
|
||||
private String zPmsMaintenancePlanBo;
|
||||
|
||||
/**
|
||||
* 保养内容
|
||||
*/
|
||||
@ApiModelProperty(value="保养内容")
|
||||
private String maintenanceContent;
|
||||
|
||||
/**
|
||||
* 输入类型
|
||||
*/
|
||||
@ApiModelProperty(value="输入类型")
|
||||
private String inputType;
|
||||
|
||||
/**
|
||||
* 最大值
|
||||
*/
|
||||
@ApiModelProperty(value="最大值")
|
||||
private String max;
|
||||
|
||||
/**
|
||||
* 最小值
|
||||
*/
|
||||
@ApiModelProperty(value="最小值")
|
||||
private String min;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value="备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 16:10:37
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_plan_detall_equip")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsMaintenancePlanDetallEquip extends Model<PmsMaintenancePlanDetallEquip> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value="主键")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划主表主键")
|
||||
private String zPmsMaintenancePlanMasterBo;
|
||||
|
||||
/**
|
||||
* 设备群组表主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备群组表主键")
|
||||
private String equipGroupId;
|
||||
|
||||
/**
|
||||
* 设备主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备主键")
|
||||
private String equipId;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value="状态")
|
||||
private String stateName;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,174 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-19 17:57:50
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_maintenance_plan_master")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsMaintenancePlanMaster extends Model<PmsMaintenancePlanMaster> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String MAINTENANCE_PLAN = "MaintenancePlanBo";
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty(value="主键")
|
||||
@TableId
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 保养计划名称
|
||||
*/
|
||||
@ApiModelProperty(value="保养计划名称")
|
||||
private String maintenancePlanName;
|
||||
|
||||
/**
|
||||
* 设备群组表主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备群组表主键")
|
||||
private String equipGroupId;
|
||||
|
||||
/**
|
||||
* 设备主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备主键")
|
||||
private String equipId;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value="状态")
|
||||
private String stateName;
|
||||
|
||||
/**
|
||||
* 上次保养完成时间
|
||||
*/
|
||||
@ApiModelProperty(value="上次保养完成时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH")
|
||||
private LocalDateTime maintenanceCplTime;
|
||||
|
||||
/**
|
||||
* 计划开始时间
|
||||
*/
|
||||
@ApiModelProperty(value="计划开始时间")
|
||||
private LocalDate startTime;
|
||||
|
||||
/**
|
||||
* 计划结束时间
|
||||
*/
|
||||
@ApiModelProperty(value="计划结束时间")
|
||||
private LocalDate endTime;
|
||||
|
||||
/**
|
||||
* 周期种类
|
||||
*/
|
||||
@ApiModelProperty(value="周期种类")
|
||||
private String cycleType;
|
||||
|
||||
/**
|
||||
* 时间设置
|
||||
*/
|
||||
@ApiModelProperty(value="时间设置")
|
||||
private String timeSet;
|
||||
|
||||
/**
|
||||
* 当月任务推送节点
|
||||
*/
|
||||
@ApiModelProperty(value="当月任务推送节点")
|
||||
private String taskPushTime;
|
||||
|
||||
/**
|
||||
* 最晚执行日期
|
||||
*/
|
||||
@ApiModelProperty(value="最晚执行日期")
|
||||
private String latestDate;
|
||||
|
||||
/**
|
||||
* 备注内容
|
||||
*/
|
||||
@ApiModelProperty(value="备注内容")
|
||||
private String masterRemark;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
public static String genHandle(String site, String maintenancePlanName) {
|
||||
return HandleBoProcessor.genHandle(MAINTENANCE_PLAN, site, maintenancePlanName);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,118 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 备品
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-02 11:00:24
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_part")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "备品")
|
||||
public class PmsPartExt extends Model<PmsPartExt> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 备品编号
|
||||
*/
|
||||
@ApiModelProperty(value="备品编号")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 备品名称
|
||||
*/
|
||||
@ApiModelProperty(value="备品名称")
|
||||
private String partName;
|
||||
|
||||
/**
|
||||
* 备品说明
|
||||
*/
|
||||
@ApiModelProperty(value="备品说明")
|
||||
private String partDescription;
|
||||
|
||||
/**
|
||||
* 备品类别编号
|
||||
*/
|
||||
@ApiModelProperty(value="备品类别编号")
|
||||
private String partCategoryId;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value="状态")
|
||||
private String stateName;
|
||||
|
||||
/**
|
||||
* 建立时间
|
||||
*/
|
||||
@ApiModelProperty(value="建立时间")
|
||||
private LocalDate createdTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value="更新时间")
|
||||
private LocalDate updatedTime;
|
||||
|
||||
/**
|
||||
* 版本
|
||||
*/
|
||||
@ApiModelProperty(value="版本")
|
||||
private String revision;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
@ApiModelProperty(value="规格")
|
||||
private String specNo;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value="单位")
|
||||
private String qtyUnit;
|
||||
|
||||
/**
|
||||
* 初始数量
|
||||
*/
|
||||
@ApiModelProperty(value="初始数量")
|
||||
private BigDecimal originalQty;
|
||||
|
||||
/**
|
||||
* 当前数量
|
||||
*/
|
||||
@ApiModelProperty(value="当前数量")
|
||||
private BigDecimal qtyOnHand;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@TableName("PMS_PATROL_SHEET")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "点巡检计划主表")
|
||||
public class PmsPatrolSheetExt extends Model<PmsPatrolSheetExt> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String Pms_Patrol_Sheet = "PatrolSheetBo";
|
||||
|
||||
@ApiModelProperty("生产点")
|
||||
private String site;
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty("主键")
|
||||
private String handle;
|
||||
@ApiModelProperty("巡检表编号")
|
||||
private String id;
|
||||
@ApiModelProperty("版本")
|
||||
private Integer revision;
|
||||
@ApiModelProperty("是否为当前版本")
|
||||
private String currentRevision;
|
||||
@ApiModelProperty("巡检表名称")
|
||||
private String patrolName;
|
||||
@ApiModelProperty("说明")
|
||||
private String patrolDescription;
|
||||
@ApiModelProperty("建立时间")
|
||||
private LocalDateTime createdTime;
|
||||
@ApiModelProperty("建立用户")
|
||||
private String creator;
|
||||
@ApiModelProperty("更新时间")
|
||||
private LocalDateTime updatedTime;
|
||||
@ApiModelProperty("更新用户")
|
||||
private String updater;
|
||||
@ApiModelProperty("设备群组主键 (FK)")
|
||||
private String equipGroupId;
|
||||
@ApiModelProperty("设备主键 (FK)")
|
||||
private String equipId;
|
||||
@ApiModelProperty("状态")
|
||||
private String stateName;
|
||||
@ApiModelProperty("排程周期单位")
|
||||
private String freqUnit;
|
||||
@ApiModelProperty("周期天数")
|
||||
private Integer freq;
|
||||
@ApiModelProperty("前容差小时")
|
||||
private Integer tolBefore;
|
||||
@ApiModelProperty("后容差小时")
|
||||
private Integer tolAfter;
|
||||
@ApiModelProperty("计划开始时间")
|
||||
private LocalDate playTime;
|
||||
@ApiModelProperty("计划结束时间")
|
||||
private LocalDate endTime;
|
||||
@ApiModelProperty("点检表类型")
|
||||
private String inspType;
|
||||
@ApiModelProperty("频率")
|
||||
private String inspFre;
|
||||
|
||||
public static String genHandle(String site, String patrolName) {
|
||||
return HandleBoProcessor.genHandle(Pms_Patrol_Sheet, site, patrolName);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,130 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-26 10:21:21
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_patrol_sheet_ext_detall")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsPatrolSheetExtDetall extends Model<PmsPatrolSheetExtDetall> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 点巡检计划主表
|
||||
*/
|
||||
@ApiModelProperty(value = "点巡检计划主表")
|
||||
private String zPmsPatrolSheetExtBo;
|
||||
|
||||
/**
|
||||
* 点检项目名称
|
||||
*/
|
||||
@ApiModelProperty(value = "点检项目名称")
|
||||
private String itmeName;
|
||||
|
||||
/**
|
||||
* 数值类型
|
||||
*/
|
||||
@ApiModelProperty(value = "数值类型")
|
||||
private String numberType;
|
||||
|
||||
/**
|
||||
* 最大值
|
||||
*/
|
||||
@ApiModelProperty(value = "最大值")
|
||||
private BigDecimal itmeMax;
|
||||
|
||||
/**
|
||||
* 最小值
|
||||
*/
|
||||
@ApiModelProperty(value = "最小值")
|
||||
private BigDecimal itmeMin;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value = "单位")
|
||||
private String itmeUnit;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展字段1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展字段2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展字段3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展字段4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value = "扩展字段5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-26 10:21:13
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_patrol_sheet_ext_detall_equip")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsPatrolSheetExtDetallEquip extends Model<PmsPatrolSheetExtDetallEquip> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 点巡检计划主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="点巡检计划主表主键")
|
||||
private String zPmsPatrolSheetExtBo;
|
||||
|
||||
/**
|
||||
* 设备群组表主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备群组表主键")
|
||||
private String equipGroupId;
|
||||
|
||||
/**
|
||||
* 设备主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备主键")
|
||||
private String equipId;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value="状态")
|
||||
private String stateName;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 维修工单从表-附件上传(完成维修)
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:49
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_repair_order_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "维修工单从表-附件上传(完成维修)")
|
||||
public class PmsRepairOrderUpload extends Model<PmsRepairOrderUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单主表主键")
|
||||
private String zPmsReportOrderBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 创建人员
|
||||
*/
|
||||
@ApiModelProperty(value="创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,278 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-06 09:30:54
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_report_order")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsReportOrder extends Model<PmsReportOrder> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String REPORT_ORDER = "ReportOrderBo";
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
@ExcelIgnore
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单编号
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单编号")
|
||||
@ExcelProperty(value = "维修工单编号",index = 1)
|
||||
private String repairOrderNumber;
|
||||
|
||||
/**
|
||||
* 故障说明
|
||||
*/
|
||||
@ApiModelProperty(value="故障说明")
|
||||
@ExcelProperty(value = "故障说明",index = 2)
|
||||
private String faultDescription;
|
||||
|
||||
/**
|
||||
* 设备主数据主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备主数据主键")
|
||||
@TableField(updateStrategy = FieldStrategy.NOT_NULL)
|
||||
@ExcelIgnore
|
||||
private String zPmsResrceExtBo;
|
||||
|
||||
/**
|
||||
* 设备位置
|
||||
*/
|
||||
@ApiModelProperty(value="设备位置")
|
||||
@ExcelProperty(value = "设备位置",index = 5)
|
||||
private String location;
|
||||
|
||||
/**
|
||||
* 报修人员
|
||||
*/
|
||||
@ApiModelProperty(value="报修人员")
|
||||
@ExcelProperty(value = "报修人员",index = 6)
|
||||
private String reportUser;
|
||||
|
||||
/**
|
||||
* 报修部门
|
||||
*/
|
||||
@ApiModelProperty(value="报修部门")
|
||||
@ExcelProperty(value = "报修部门",index = 7)
|
||||
private String reportSection;
|
||||
|
||||
/**
|
||||
* 报修时间
|
||||
*/
|
||||
@ApiModelProperty(value="报修时间")
|
||||
@ExcelProperty(value = "报修时间",index = 9)
|
||||
private LocalDateTime reportTime;
|
||||
|
||||
/**
|
||||
* 是否有设备编码
|
||||
*/
|
||||
@ApiModelProperty(value="是否有设备编码")
|
||||
@ExcelIgnore
|
||||
private String isEquipmentCode;
|
||||
|
||||
/**
|
||||
* 工单状态
|
||||
*/
|
||||
@ApiModelProperty(value="工单状态")
|
||||
@ExcelProperty(value = "工单状态",index = 8)
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
@ApiModelProperty(value="完成时间")
|
||||
@ExcelIgnore
|
||||
private LocalDateTime completedTime;
|
||||
|
||||
/**
|
||||
* 维修开始时间
|
||||
*/
|
||||
@ApiModelProperty(value="维修开始时间")
|
||||
@ExcelIgnore
|
||||
private LocalDateTime playTime;
|
||||
/**
|
||||
* 维修耗时
|
||||
*/
|
||||
@ApiModelProperty(value="维修耗时")
|
||||
@ExcelIgnore
|
||||
private String consumeTime;
|
||||
|
||||
/**
|
||||
* 维修人员
|
||||
*/
|
||||
@ApiModelProperty(value="维修人员")
|
||||
@ExcelProperty(value = "维修人员",index = 10)
|
||||
private String repairPerson;
|
||||
|
||||
/**
|
||||
* 接单人
|
||||
*/
|
||||
@ApiModelProperty(value="接单人")
|
||||
@ExcelIgnore
|
||||
private String accOrderPerson;
|
||||
|
||||
/**
|
||||
* 接单时间
|
||||
*/
|
||||
@ApiModelProperty(value="接单时间")
|
||||
@ExcelIgnore
|
||||
private LocalDateTime accTime;
|
||||
|
||||
/**
|
||||
* 维修类别
|
||||
*/
|
||||
@ApiModelProperty(value="维修类别")
|
||||
@ExcelProperty(value = "维修类别",index = 12)
|
||||
private String repairCategory;
|
||||
|
||||
/**
|
||||
* 维修结果
|
||||
*/
|
||||
@ApiModelProperty(value="维修结果")
|
||||
@ExcelIgnore
|
||||
private String repairResult;
|
||||
|
||||
/**
|
||||
* 结果说明
|
||||
*/
|
||||
@ApiModelProperty(value="结果说明")
|
||||
@ExcelIgnore
|
||||
private String resultExplain;
|
||||
|
||||
/**
|
||||
* 维修内容备注
|
||||
*/
|
||||
@ApiModelProperty(value="维修内容备注")
|
||||
@ExcelProperty(value = "维修内容",index = 11)
|
||||
private String contentRemarks;
|
||||
|
||||
/**
|
||||
* 等待维修原因
|
||||
*/
|
||||
@ApiModelProperty(value="等待维修原因")
|
||||
@ExcelIgnore
|
||||
private String waitReson;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
@ExcelIgnore
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
@ExcelIgnore
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
@ExcelIgnore
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
@ExcelIgnore
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
@ExcelIgnore
|
||||
private String ext5;
|
||||
|
||||
@ApiModelProperty(value="时间查询字段")
|
||||
@TableField(exist = false)
|
||||
@ExcelIgnore
|
||||
private String timeQuery;
|
||||
|
||||
@ApiModelProperty("工厂")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelProperty(value = "站点",index = 0)
|
||||
private String site;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty("创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String creator;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
@ApiModelProperty("更新人员")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private String updater;
|
||||
|
||||
@ApiModelProperty(value="取消报修原因")
|
||||
@ExcelProperty(value = "取消报修原因",index = 16)
|
||||
private String reasonCancellation;
|
||||
|
||||
@ApiModelProperty(value="终止维修原因")
|
||||
@ExcelProperty(value = "终止维修原因",index = 17)
|
||||
private String reasonDiscontinuation;
|
||||
|
||||
@ApiModelProperty(value="转单原因")
|
||||
@ExcelProperty(value = "转单原因",index = 18)
|
||||
private String reasonsTransfer;
|
||||
|
||||
@ApiModelProperty(value="验收确认驳回原因")
|
||||
@ExcelProperty(value = "验收确认驳回原因",index = 19)
|
||||
private String reasonsRejection;
|
||||
|
||||
@ApiModelProperty(value="验收确认人")
|
||||
@ExcelProperty(value = "验收确认人",index = 20)
|
||||
private String acceptanceConfirmer;
|
||||
|
||||
@ExcelIgnore
|
||||
@TableField(exist = false)
|
||||
private String fileId;
|
||||
@ExcelIgnore
|
||||
@TableField(exist = false)
|
||||
private String imgId;
|
||||
|
||||
|
||||
public static String genHandle(String site, String repairOrderNumber) {
|
||||
return HandleBoProcessor.genHandle(REPORT_ORDER, site, repairOrderNumber);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,125 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-15 14:28:02
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_report_order_check")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsReportOrderCheck extends Model<PmsReportOrderCheck> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单主表主键")
|
||||
private String zPmsReportOrderBo;
|
||||
|
||||
/**
|
||||
* 验收意见
|
||||
*/
|
||||
@ApiModelProperty(value="验收意见")
|
||||
private String checkOpinion;
|
||||
|
||||
/**
|
||||
* 验收人
|
||||
*/
|
||||
@ApiModelProperty(value="验收人")
|
||||
private String checkPerson;
|
||||
|
||||
/**
|
||||
* 影响生产时间
|
||||
*/
|
||||
@ApiModelProperty(value="影响生产时间")
|
||||
private String affectTime;
|
||||
|
||||
/**
|
||||
* 验收驳回原因
|
||||
*/
|
||||
@ApiModelProperty(value="验收驳回原因")
|
||||
private String rejectCause;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-14 10:42:04
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_report_order_consum")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsReportOrderConsum extends Model<PmsReportOrderConsum> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单主表主键")
|
||||
private String zPmsReportOrderBo;
|
||||
|
||||
/**
|
||||
* 所需数量
|
||||
*/
|
||||
@ApiModelProperty(value="所需数量")
|
||||
private String needNum;
|
||||
|
||||
/**
|
||||
* 备品信息表主键
|
||||
*/
|
||||
@ApiModelProperty(value="备品信息表主键")
|
||||
private String zPmsPartExtBo;
|
||||
|
||||
/**
|
||||
* 耗材来源
|
||||
*/
|
||||
@ApiModelProperty(value="耗材来源")
|
||||
private String consumSource;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-14 10:42:39
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_report_order_item")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class PmsReportOrderItem extends Model<PmsReportOrderItem> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单主表主键")
|
||||
private String zPmsReportOrderBo;
|
||||
|
||||
/**
|
||||
* 结构码表主键
|
||||
*/
|
||||
@ApiModelProperty(value="结构码表主键")
|
||||
private String pmsStructCodeBo;
|
||||
|
||||
/**
|
||||
* 故障原因分析
|
||||
*/
|
||||
@ApiModelProperty(value="故障原因分析")
|
||||
private String brokenDescription;
|
||||
|
||||
/**
|
||||
* 维修对策
|
||||
*/
|
||||
@ApiModelProperty(value="维修对策")
|
||||
private String repairDescription;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 维修工单安全许可证文件上传表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-21 11:29:26
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_report_order_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "维修工单安全许可证文件上传表")
|
||||
public class PmsReportOrderUpload extends Model<PmsReportOrderUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 维修工单主表主键
|
||||
*/
|
||||
@ApiModelProperty(value="维修工单主表主键")
|
||||
private String zPmsReportOrderBo;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
@ApiModelProperty(value="文件类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="文件名称")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件说明描述
|
||||
*/
|
||||
@ApiModelProperty(value="文件说明描述")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* 服务器端文件名称
|
||||
*/
|
||||
@ApiModelProperty(value="服务器端文件名称")
|
||||
private String remoteFileName;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty("创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 设备主数据上传附件表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-09-24 17:46:52
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_resrce_ext_upload")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "设备主数据上传附件表")
|
||||
public class PmsResrceExtUpload extends Model<PmsResrceExtUpload> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* handle
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="handle")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* zPmsResrceExtBo
|
||||
*/
|
||||
@ApiModelProperty(value="zPmsResrceExtBo")
|
||||
private String zPmsResrceExtBo;
|
||||
|
||||
/**
|
||||
* type
|
||||
*/
|
||||
@ApiModelProperty(value="type")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* fileName
|
||||
*/
|
||||
@ApiModelProperty(value="fileName")
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* fileDescription
|
||||
*/
|
||||
@ApiModelProperty(value="fileDescription")
|
||||
private String fileDescription;
|
||||
|
||||
/**
|
||||
* remoteFileName
|
||||
*/
|
||||
@ApiModelProperty(value="remoteFileName")
|
||||
private String remoteFileName;
|
||||
|
||||
/**
|
||||
* dateCreate
|
||||
*/
|
||||
@ApiModelProperty(value="dateCreate")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* creator
|
||||
*/
|
||||
@ApiModelProperty(value="creator")
|
||||
private String creator;
|
||||
|
||||
}
|
||||
@ -0,0 +1,137 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* 温湿度仪表
|
||||
*
|
||||
* @author huwei
|
||||
* @date 2024-10-18 10:38:54
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_pms_temperature_humidity")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "温湿度仪表")
|
||||
public class PmsTemperatureHumidity extends Model<PmsTemperatureHumidity> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
/**
|
||||
* 主键(UUID)
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键(UUID)")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(value="设备名称")
|
||||
private String resource;
|
||||
|
||||
/**
|
||||
* 温度
|
||||
*/
|
||||
@ApiModelProperty(value="温度")
|
||||
private String temperature;
|
||||
|
||||
/**
|
||||
* 湿度
|
||||
*/
|
||||
@ApiModelProperty(value="湿度")
|
||||
private String humidity;
|
||||
|
||||
/**
|
||||
* 采集时间
|
||||
*/
|
||||
@ApiModelProperty(value="采集时间")
|
||||
private LocalDateTime collectionTime;
|
||||
|
||||
/**
|
||||
* 发送人
|
||||
*/
|
||||
@ApiModelProperty(value="发送人")
|
||||
private String sender;
|
||||
|
||||
/**
|
||||
* 发送时间
|
||||
*/
|
||||
@ApiModelProperty(value="发送时间")
|
||||
private LocalDateTime sendTime;
|
||||
|
||||
/**
|
||||
* 接收人
|
||||
*/
|
||||
@ApiModelProperty(value="接收人")
|
||||
private String receiver;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
private String ext5;
|
||||
|
||||
}
|
||||
@ -0,0 +1,185 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-30 15:55:43
|
||||
*/
|
||||
@Data
|
||||
@TableName("z_purchase")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "")
|
||||
public class Purchase extends Model<Purchase> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
@ExcelIgnore
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
@ApiModelProperty(value="物料名称")
|
||||
@ExcelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
/**
|
||||
* 物料代码
|
||||
*/
|
||||
@ApiModelProperty(value="物料代码")
|
||||
@ExcelProperty("物料代码")
|
||||
private String materialCode;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@ApiModelProperty(value="规格型号")
|
||||
@ExcelProperty("规格型号")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 用途
|
||||
*/
|
||||
@ApiModelProperty(value="用途")
|
||||
@ExcelProperty("用途")
|
||||
private String purpose;
|
||||
|
||||
/**
|
||||
* 需求数量
|
||||
*/
|
||||
@ApiModelProperty(value="需求数量")
|
||||
@ExcelProperty("需求数量")
|
||||
private BigDecimal needNumber;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
@ApiModelProperty(value="单位")
|
||||
@ExcelProperty("单位")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 提单人
|
||||
*/
|
||||
@ApiModelProperty(value="提单人")
|
||||
@ExcelProperty("提单人")
|
||||
private String submitter;
|
||||
|
||||
/**
|
||||
* 提交日期
|
||||
*/
|
||||
@ApiModelProperty(value="提交日期")
|
||||
@ExcelProperty("提交日期")
|
||||
private LocalDate submitDate;
|
||||
|
||||
/**
|
||||
* 历史供应商
|
||||
*/
|
||||
@ApiModelProperty(value="历史供应商")
|
||||
@ExcelProperty("历史供应商")
|
||||
private String supplier;
|
||||
|
||||
/**
|
||||
* 二级分类
|
||||
*/
|
||||
@ApiModelProperty(value="二级分类")
|
||||
@ExcelProperty("二级分类")
|
||||
private String secondClassify;
|
||||
|
||||
/**
|
||||
* 一级分类
|
||||
*/
|
||||
@ApiModelProperty(value="一级分类")
|
||||
@ExcelProperty("一级分类")
|
||||
private String firstClassify;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value="备注")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段1")
|
||||
@ExcelIgnore
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段2")
|
||||
@ExcelIgnore
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段3")
|
||||
@ExcelIgnore
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展字段4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段4")
|
||||
@ExcelIgnore
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展字段5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展字段5")
|
||||
@ExcelIgnore
|
||||
private String ext5;
|
||||
|
||||
@ApiModelProperty("工厂")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String site;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
@ApiModelProperty("创建人员")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
@ExcelIgnore
|
||||
private String creator;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
@ApiModelProperty("更新人员")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
@ExcelIgnore
|
||||
private String updater;
|
||||
}
|
||||
@ -0,0 +1,280 @@
|
||||
package com.foreverwin.mom.pms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.YearMonth;
|
||||
|
||||
/**
|
||||
* 资源主数据
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-07-30 15:47:18
|
||||
*/
|
||||
@Data
|
||||
@TableName("resrce")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "资源主数据")
|
||||
public class ResrceExt extends Model<ResrceExt> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String RESRCE_BO = "ResourceBO";
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 站点
|
||||
*/
|
||||
@ApiModelProperty(value="站点")
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value="创建人")
|
||||
private String creator;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间")
|
||||
private LocalDateTime dateCreate;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@ApiModelProperty(value="修改人")
|
||||
private String updater;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@ApiModelProperty(value="修改时间")
|
||||
private LocalDateTime dateUpdate;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value="主键")
|
||||
private String handle;
|
||||
|
||||
/**
|
||||
* 资源
|
||||
*/
|
||||
@ApiModelProperty(value="资源")
|
||||
private String resrce;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty(value="描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty(value="状态")
|
||||
private String statusBo;
|
||||
|
||||
/**
|
||||
* 流程资源
|
||||
*/
|
||||
@ApiModelProperty(value="流程资源")
|
||||
private String processResource;
|
||||
|
||||
/**
|
||||
* 默认操作
|
||||
*/
|
||||
@ApiModelProperty(value="默认操作")
|
||||
private String operationBo;
|
||||
|
||||
/**
|
||||
* 资源类型
|
||||
*/
|
||||
@ApiModelProperty(value="资源类型")
|
||||
private String resourceTypeBo;
|
||||
|
||||
/**
|
||||
* 有效起始日期
|
||||
*/
|
||||
@ApiModelProperty(value="有效起始日期")
|
||||
private LocalDateTime validFrom;
|
||||
|
||||
/**
|
||||
* 有效结束日期
|
||||
*/
|
||||
@ApiModelProperty(value="有效结束日期")
|
||||
private LocalDateTime validTo;
|
||||
|
||||
/**
|
||||
* 是否有自定义字段 Y/N
|
||||
*/
|
||||
@ApiModelProperty(value="是否有自定义字段 Y/N")
|
||||
private String isCustomField;
|
||||
|
||||
/**
|
||||
* 设备类别主键
|
||||
*/
|
||||
@ApiModelProperty(value="设备类别主键")
|
||||
@TableField(updateStrategy = FieldStrategy.NOT_NULL)
|
||||
String eqpTypeBo;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
@ApiModelProperty(value="设备厂商")
|
||||
private String vendorNo;
|
||||
|
||||
/**
|
||||
* 资产编号
|
||||
*/
|
||||
@ApiModelProperty(value="资产编号")
|
||||
private String assetNo;
|
||||
|
||||
/**
|
||||
* 工作中心
|
||||
*/
|
||||
@ApiModelProperty(value="工作中心")
|
||||
private String workCenter;
|
||||
|
||||
/**
|
||||
* 技术规格
|
||||
*/
|
||||
@ApiModelProperty(value="技术规格")
|
||||
private String tecParameter;
|
||||
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
@ApiModelProperty(value="位置")
|
||||
private String location;
|
||||
|
||||
/**
|
||||
* 出厂日期/使用日期
|
||||
*/
|
||||
@ApiModelProperty(value="出厂日期/使用日期")
|
||||
@JsonFormat(pattern = "yyyy-MM")
|
||||
private YearMonth useData;
|
||||
|
||||
/**
|
||||
* 是否特种设备Y/N
|
||||
*/
|
||||
@ApiModelProperty(value="是否特种设备Y/N")
|
||||
private String isSpecialDev;
|
||||
|
||||
/**
|
||||
* 操作手册
|
||||
*/
|
||||
@ApiModelProperty(value="操作手册")
|
||||
private String operationManual;
|
||||
|
||||
/**
|
||||
* 是否有RFID
|
||||
*/
|
||||
@ApiModelProperty(value="是否有RFID")
|
||||
private String isHaveRfid;
|
||||
|
||||
/**
|
||||
* 所在工序
|
||||
*/
|
||||
@ApiModelProperty(value="所在工序")
|
||||
@TableField("`PROCEDURE`")
|
||||
private String procedure;
|
||||
|
||||
/**
|
||||
* 设备使用部门
|
||||
*/
|
||||
@ApiModelProperty(value="设备使用部门")
|
||||
private String useDept;
|
||||
|
||||
/**
|
||||
* 重量(KG)
|
||||
*/
|
||||
@ApiModelProperty(value="重量(KG)")
|
||||
private String weight;
|
||||
|
||||
/**
|
||||
* 设备注册编号
|
||||
*/
|
||||
@ApiModelProperty(value="设备注册编号")
|
||||
private String registrationNumber;
|
||||
|
||||
|
||||
/**
|
||||
* 使用登记编号
|
||||
*/
|
||||
@ApiModelProperty(value="使用登记编号")
|
||||
private String useRegistrationNumber;
|
||||
|
||||
|
||||
/**
|
||||
* 出厂编号
|
||||
*/
|
||||
@ApiModelProperty(value="出厂编号")
|
||||
private String factoryNumber;
|
||||
|
||||
|
||||
/**
|
||||
* 使用状态
|
||||
*/
|
||||
@ApiModelProperty(value="使用状态")
|
||||
private String useState;
|
||||
|
||||
/**
|
||||
* 安全责任人
|
||||
*/
|
||||
@ApiModelProperty(value="安全责任人")
|
||||
private String safetyPerson;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value="备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 扩展1
|
||||
*/
|
||||
@ApiModelProperty(value="是否仪器仪表:Y-仪器仪表")
|
||||
private String ext1;
|
||||
|
||||
/**
|
||||
* 扩展2
|
||||
*/
|
||||
@ApiModelProperty(value="扩展2")
|
||||
private String ext2;
|
||||
|
||||
/**
|
||||
* 扩展3
|
||||
*/
|
||||
@ApiModelProperty(value="扩展3")
|
||||
private String ext3;
|
||||
|
||||
/**
|
||||
* 扩展4
|
||||
*/
|
||||
@ApiModelProperty(value="扩展4")
|
||||
private String ext4;
|
||||
|
||||
/**
|
||||
* 扩展5
|
||||
*/
|
||||
@ApiModelProperty(value="扩展5")
|
||||
private String ext5;
|
||||
|
||||
public static String genHandle(String site, String resrce) {
|
||||
return HandleBoProcessor.genHandle(RESRCE_BO, site, resrce);
|
||||
}
|
||||
}
|
||||
@ -1,2 +1 @@
|
||||
# 配置 feignclient 的全类名路径, 避免包名不规范无法扫描问题
|
||||
com.foreverwin.mom.common.feign.MomFeignAutoConfiguration=
|
||||
@ -176,5 +176,15 @@
|
||||
<artifactId>minio</artifactId>
|
||||
<version>7.1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>pms-api</artifactId>
|
||||
<version>4.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.foreverwin</groupId>
|
||||
<artifactId>pms-db</artifactId>
|
||||
<version>4.5.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.CheckOrder;
|
||||
import com.foreverwin.mom.pms.service.CheckOrderService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:45:47
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/checkOrder" )
|
||||
@Api(value = "checkOrder", tags = "管理")
|
||||
public class CheckOrderController {
|
||||
|
||||
private final CheckOrderService checkOrderService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param checkOrder
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getCheckOrderPage(Page page, CheckOrder checkOrder) {
|
||||
return R.ok(checkOrderService.page(page, Wrappers.query(checkOrder)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(checkOrderService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param checkOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody CheckOrder checkOrder) {
|
||||
return R.ok(checkOrderService.save(checkOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param checkOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody CheckOrder checkOrder) {
|
||||
return R.ok(checkOrderService.updateById(checkOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(checkOrderService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param checkOrder 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<CheckOrder> export(CheckOrder checkOrder) {
|
||||
return checkOrderService.list(Wrappers.query(checkOrder));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.foreverwin.mom.pms.service.DownloadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/download")
|
||||
@Api(value = "download", tags = "文件下载")
|
||||
public class DownloadController {
|
||||
|
||||
private DownloadService downloadService;
|
||||
|
||||
@GetMapping("/getFile")
|
||||
public R downloadFile(String model,String remoteFileName) {
|
||||
return R.ok ( downloadService.downloadFile ( model,remoteFileName ) );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,188 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
import com.foreverwin.mom.pms.dto.InspectOrderDTO;
|
||||
import com.foreverwin.mom.pms.dto.InspectOrderExecuteDTO;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrder;
|
||||
import com.foreverwin.mom.pms.service.InspectOrderService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:46:20
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/inspectOrder")
|
||||
@Api(value = "inspectOrder", tags = "管理")
|
||||
public class InspectOrderController {
|
||||
|
||||
private final InspectOrderService inspectOrderService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getInspectOrderPage(Page page, InspectOrderDTO dto) {
|
||||
return R.ok(inspectOrderService.getPage(page, dto));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/getPageAndUpdate")
|
||||
public R getPageAndUpdate(Page page, InspectOrderDTO dto) {
|
||||
return R.ok(inspectOrderService.getPageAndUpdate(page, dto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(inspectOrderService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param inspectOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody InspectOrder inspectOrder) {
|
||||
return R.ok(inspectOrderService.save(inspectOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param inspectOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody InspectOrder inspectOrder) {
|
||||
return R.ok(inspectOrderService.updateById(inspectOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(inspectOrderService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param inspectOrder 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<InspectOrder> export(InspectOrder inspectOrder) {
|
||||
return inspectOrderService.list(Wrappers.query(inspectOrder));
|
||||
}
|
||||
|
||||
@GetMapping("/getDetailList")
|
||||
public R getDetailList(String handle) {
|
||||
return R.ok(inspectOrderService.getDetailList(handle));
|
||||
}
|
||||
|
||||
@PostMapping("/executeOrder")
|
||||
public R executeOrder(@RequestBody InspectOrderExecuteDTO dto) {
|
||||
return R.ok(inspectOrderService.executeOrder(dto));
|
||||
}
|
||||
|
||||
@GetMapping("/getCheckOrder")
|
||||
public R getCheckOrder(Page page, InspectOrderDTO dto) {
|
||||
return R.ok(inspectOrderService.getCheckOrder(page, dto));
|
||||
}
|
||||
|
||||
@GetMapping("/getCheckList")
|
||||
public R getCheckList(String handle) {
|
||||
return R.ok(inspectOrderService.getCheckList(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getCheckOpinion")
|
||||
public R getCheckOpinion(String handle) {
|
||||
return R.ok(inspectOrderService.getCheckOpinion(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getHistoryOrder")
|
||||
public R getHistoryOrder(Page page, InspectOrderDTO dto) {
|
||||
return R.ok(inspectOrderService.getHistoryOrder(page, dto));
|
||||
}
|
||||
|
||||
@ResponseExcel
|
||||
@PostMapping("/exportHistoryOrder")
|
||||
public List<InspectOrderDTO> exportHistoryOrder(@RequestBody List<InspectOrderDTO> list) {
|
||||
return list;
|
||||
}
|
||||
|
||||
@PostMapping("/uploadInspectImg")
|
||||
public R uploadInspectImg(@RequestParam("file") MultipartFile file) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO();
|
||||
commonAttachmentDTO.setFile(file);
|
||||
commonAttachmentDTO.setModelFunctionName("REPORT_ORDER_FILE");
|
||||
String errorMsg = inspectOrderService.uploadInspectImg(commonAttachmentDTO);
|
||||
return R.ok(errorMsg);
|
||||
}
|
||||
|
||||
@PostMapping("/checkList")
|
||||
public R checkList(@RequestBody List<InspectOrderDTO> list) {
|
||||
return R.ok(inspectOrderService.checkList(list));
|
||||
}
|
||||
|
||||
@GetMapping("/repairOrder")
|
||||
public R repairOrder(String handle) {
|
||||
return R.ok(inspectOrderService.repairOrder(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getRepairOrderStatus")
|
||||
public R getRepairOrderStatus(String num) {
|
||||
return R.ok(inspectOrderService.getRepairOrderStatus(num));
|
||||
}
|
||||
|
||||
@PostMapping("/updateList")
|
||||
public R updateList(@RequestBody List<InspectOrderDTO> list) {
|
||||
return R.ok(inspectOrderService.updateList(list));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrderDetail;
|
||||
import com.foreverwin.mom.pms.service.InspectOrderDetailService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:46:17
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/inspectOrderDetail" )
|
||||
@Api(value = "inspectOrderDetail", tags = "管理")
|
||||
public class InspectOrderDetailController {
|
||||
|
||||
private final InspectOrderDetailService inspectOrderDetailService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param inspectOrderDetail
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getInspectOrderDetailPage(Page page, InspectOrderDetail inspectOrderDetail) {
|
||||
return R.ok(inspectOrderDetailService.page(page, Wrappers.query(inspectOrderDetail)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(inspectOrderDetailService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param inspectOrderDetail
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody InspectOrderDetail inspectOrderDetail) {
|
||||
return R.ok(inspectOrderDetailService.save(inspectOrderDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param inspectOrderDetail
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody InspectOrderDetail inspectOrderDetail) {
|
||||
return R.ok(inspectOrderDetailService.updateById(inspectOrderDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(inspectOrderDetailService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param inspectOrderDetail 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<InspectOrderDetail> export(InspectOrderDetail inspectOrderDetail) {
|
||||
return inspectOrderDetailService.list(Wrappers.query(inspectOrderDetail));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrderUpload;
|
||||
import com.foreverwin.mom.pms.service.InspectOrderUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 点巡检完成附件上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:19:03
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/inspectorderupload" )
|
||||
@Api(value = "inspectorderupload", tags = "点巡检完成附件上传管理")
|
||||
public class InspectOrderUploadController {
|
||||
|
||||
private final InspectOrderUploadService inspectOrderUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param inspectOrderUpload 点巡检完成附件上传
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_inspectorderupload_view')" )
|
||||
public R getInspectOrderUploadPage(Page page, InspectOrderUpload inspectOrderUpload) {
|
||||
return R.ok(inspectOrderUploadService.page(page, Wrappers.query(inspectOrderUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询点巡检完成附件上传
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_inspectorderupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(inspectOrderUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增点巡检完成附件上传
|
||||
* @param inspectOrderUpload 点巡检完成附件上传
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增点巡检完成附件上传", notes = "新增点巡检完成附件上传")
|
||||
@SysLog("新增点巡检完成附件上传" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_inspectorderupload_add')" )
|
||||
public R save(@RequestBody InspectOrderUpload inspectOrderUpload) {
|
||||
return R.ok(inspectOrderUploadService.save(inspectOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改点巡检完成附件上传
|
||||
* @param inspectOrderUpload 点巡检完成附件上传
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改点巡检完成附件上传", notes = "修改点巡检完成附件上传")
|
||||
@SysLog("修改点巡检完成附件上传" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_inspectorderupload_edit')" )
|
||||
public R updateById(@RequestBody InspectOrderUpload inspectOrderUpload) {
|
||||
return R.ok(inspectOrderUploadService.updateById(inspectOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除点巡检完成附件上传
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除点巡检完成附件上传", notes = "通过id删除点巡检完成附件上传")
|
||||
@SysLog("通过id删除点巡检完成附件上传" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_inspectorderupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(inspectOrderUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param inspectOrderUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_inspectorderupload_export')" )
|
||||
public List<InspectOrderUpload> export(InspectOrderUpload inspectOrderUpload) {
|
||||
return inspectOrderUploadService.list(Wrappers.query(inspectOrderUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,114 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.MaintenanceCheck;
|
||||
import com.foreverwin.mom.pms.service.MaintenanceCheckService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养工单工单验收表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-23 13:59:58
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenanceCheck" )
|
||||
@Api(value = "maintenanceCheck", tags = "保养工单工单验收表管理")
|
||||
public class MaintenanceCheckController {
|
||||
|
||||
private final MaintenanceCheckService maintenanceCheckService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param maintenanceCheck 保养工单工单验收表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getMaintenanceCheckPage(Page page, MaintenanceCheck maintenanceCheck) {
|
||||
return R.ok(maintenanceCheckService.page(page, Wrappers.query(maintenanceCheck)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养工单工单验收表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(maintenanceCheckService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单工单验收表
|
||||
* @param maintenanceCheck 保养工单工单验收表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养工单工单验收表", notes = "新增保养工单工单验收表")
|
||||
@SysLog("新增保养工单工单验收表" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody MaintenanceCheck maintenanceCheck) {
|
||||
return R.ok(maintenanceCheckService.save(maintenanceCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单工单验收表
|
||||
* @param maintenanceCheck 保养工单工单验收表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养工单工单验收表", notes = "修改保养工单工单验收表")
|
||||
@SysLog("修改保养工单工单验收表" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody MaintenanceCheck maintenanceCheck) {
|
||||
return R.ok(maintenanceCheckService.updateById(maintenanceCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养工单工单验收表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养工单工单验收表", notes = "通过id删除保养工单工单验收表")
|
||||
@SysLog("通过id删除保养工单工单验收表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(maintenanceCheckService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param maintenanceCheck 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<MaintenanceCheck> export(MaintenanceCheck maintenanceCheck) {
|
||||
return maintenanceCheckService.list(Wrappers.query(maintenanceCheck));
|
||||
}
|
||||
|
||||
@PostMapping("check")
|
||||
public R check(@RequestBody MaintenanceCheck maintenanceCheck){
|
||||
return R.ok(maintenanceCheckService.check(maintenanceCheck));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,128 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.MeterSheet;
|
||||
import com.foreverwin.mom.pms.service.MeterSheetService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-29 13:53:38
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/meterSheet")
|
||||
@Api(value = "meterSheet", tags = "管理")
|
||||
public class MeterSheetController {
|
||||
|
||||
private final MeterSheetService meterSheetService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param meterSheet
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getMeterSheetPage(Page page, MeterSheet meterSheet) {
|
||||
return R.ok(meterSheetService.getMeterSheetPage(page, meterSheet));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(meterSheetService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param meterSheet
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody MeterSheet meterSheet) {
|
||||
return R.ok(meterSheetService.saveInfo(meterSheet));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param meterSheet
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody MeterSheet meterSheet) {
|
||||
return R.ok(meterSheetService.updateInfo(meterSheet));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(meterSheetService.removeInfoById(handle));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/startCheck")
|
||||
public R startCheck(@RequestBody List<MeterSheet> list) {
|
||||
return R.ok(meterSheetService.startCheck(list));
|
||||
}
|
||||
|
||||
@PostMapping("/submitCheck")
|
||||
public R submitCheck(@RequestBody List<MeterSheet> list) {
|
||||
return R.ok(meterSheetService.submitCheck(list));
|
||||
}
|
||||
|
||||
/**
|
||||
* 仪器仪表数据导入
|
||||
*
|
||||
* @param list
|
||||
* @return
|
||||
*/
|
||||
// @ApiOperation(value = "仪表数据导入", notes = "仪表数据导入")
|
||||
// @PostMapping("/doImport")
|
||||
// public R<List<ErrorMsgDTO>> doImport(@RequestBody List<MeterSheet> list) {
|
||||
// return R.ok(meterSheetService.doImport(list));
|
||||
// }
|
||||
|
||||
@ResponseExcel
|
||||
@PostMapping("/export")
|
||||
public List<MeterSheet> export(@RequestBody List<MeterSheet> list) {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsEquipmentRepairUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsEquipmentRepairUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备报修-附件上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:36
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsequipmentrepairupload" )
|
||||
@Api(value = "pmsequipmentrepairupload", tags = "设备报修-附件上传管理")
|
||||
public class PmsEquipmentRepairUploadController {
|
||||
|
||||
private final PmsEquipmentRepairUploadService pmsEquipmentRepairUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsEquipmentRepairUpload 设备报修-附件上传
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsequipmentrepairupload_view')" )
|
||||
public R getPmsEquipmentRepairUploadPage(Page page, PmsEquipmentRepairUpload pmsEquipmentRepairUpload) {
|
||||
return R.ok(pmsEquipmentRepairUploadService.page(page, Wrappers.query(pmsEquipmentRepairUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询设备报修-附件上传
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsequipmentrepairupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsEquipmentRepairUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备报修-附件上传
|
||||
* @param pmsEquipmentRepairUpload 设备报修-附件上传
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增设备报修-附件上传", notes = "新增设备报修-附件上传")
|
||||
@SysLog("新增设备报修-附件上传" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsequipmentrepairupload_add')" )
|
||||
public R save(@RequestBody PmsEquipmentRepairUpload pmsEquipmentRepairUpload) {
|
||||
return R.ok(pmsEquipmentRepairUploadService.save(pmsEquipmentRepairUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备报修-附件上传
|
||||
* @param pmsEquipmentRepairUpload 设备报修-附件上传
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改设备报修-附件上传", notes = "修改设备报修-附件上传")
|
||||
@SysLog("修改设备报修-附件上传" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsequipmentrepairupload_edit')" )
|
||||
public R updateById(@RequestBody PmsEquipmentRepairUpload pmsEquipmentRepairUpload) {
|
||||
return R.ok(pmsEquipmentRepairUploadService.updateById(pmsEquipmentRepairUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除设备报修-附件上传
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除设备报修-附件上传", notes = "通过id删除设备报修-附件上传")
|
||||
@SysLog("通过id删除设备报修-附件上传" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsequipmentrepairupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsEquipmentRepairUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsEquipmentRepairUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsequipmentrepairupload_export')" )
|
||||
public List<PmsEquipmentRepairUpload> export(PmsEquipmentRepairUpload pmsEquipmentRepairUpload) {
|
||||
return pmsEquipmentRepairUploadService.list(Wrappers.query(pmsEquipmentRepairUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceCompleteUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceCompleteUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养完成附件上传表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-22 11:10:56
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pms-maintenance-complete-upload" )
|
||||
@Api(value = "pms-maintenance-complete-upload", tags = "保养完成附件上传表管理")
|
||||
public class PmsMaintenanceCompleteUploadController {
|
||||
|
||||
private final PmsMaintenanceCompleteUploadService pmsMaintenanceCompleteUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenanceCompleteUpload 保养完成附件上传表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancecompleteupload_view')" )
|
||||
public R getPmsMaintenanceCompleteUploadPage(Page page, PmsMaintenanceCompleteUpload pmsMaintenanceCompleteUpload) {
|
||||
return R.ok(pmsMaintenanceCompleteUploadService.page(page, Wrappers.query(pmsMaintenanceCompleteUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养完成附件上传表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancecompleteupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsMaintenanceCompleteUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养完成附件上传表
|
||||
* @param pmsMaintenanceCompleteUpload 保养完成附件上传表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养完成附件上传表", notes = "新增保养完成附件上传表")
|
||||
@SysLog("新增保养完成附件上传表" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancecompleteupload_add')" )
|
||||
public R save(@RequestBody PmsMaintenanceCompleteUpload pmsMaintenanceCompleteUpload) {
|
||||
return R.ok(pmsMaintenanceCompleteUploadService.save(pmsMaintenanceCompleteUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养完成附件上传表
|
||||
* @param pmsMaintenanceCompleteUpload 保养完成附件上传表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养完成附件上传表", notes = "修改保养完成附件上传表")
|
||||
@SysLog("修改保养完成附件上传表" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancecompleteupload_edit')" )
|
||||
public R updateById(@RequestBody PmsMaintenanceCompleteUpload pmsMaintenanceCompleteUpload) {
|
||||
return R.ok(pmsMaintenanceCompleteUploadService.updateById(pmsMaintenanceCompleteUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养完成附件上传表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养完成附件上传表", notes = "通过id删除保养完成附件上传表")
|
||||
@SysLog("通过id删除保养完成附件上传表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancecompleteupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceCompleteUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenanceCompleteUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancecompleteupload_export')" )
|
||||
public List<PmsMaintenanceCompleteUpload> export(PmsMaintenanceCompleteUpload pmsMaintenanceCompleteUpload) {
|
||||
return pmsMaintenanceCompleteUploadService.list(Wrappers.query(pmsMaintenanceCompleteUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceNegotiatUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceNegotiatUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养工单附件上传表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-22 09:41:55
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pms-maintenance-negotiat-upload" )
|
||||
@Api(value = "pms-maintenance-negotiat-upload", tags = "保养工单附件上传表管理")
|
||||
public class PmsMaintenanceNegotiatUploadController {
|
||||
|
||||
private final PmsMaintenanceNegotiatUploadService pmsMaintenanceNegotiatUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenanceNegotiatUpload 保养工单附件上传表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancenegotiatupload_view')" )
|
||||
public R getPmsMaintenanceNegotiatUploadPage(Page page, PmsMaintenanceNegotiatUpload pmsMaintenanceNegotiatUpload) {
|
||||
return R.ok(pmsMaintenanceNegotiatUploadService.page(page, Wrappers.query(pmsMaintenanceNegotiatUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养工单附件上传表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancenegotiatupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsMaintenanceNegotiatUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单附件上传表
|
||||
* @param pmsMaintenanceNegotiatUpload 保养工单附件上传表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养工单附件上传表", notes = "新增保养工单附件上传表")
|
||||
@SysLog("新增保养工单附件上传表" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancenegotiatupload_add')" )
|
||||
public R save(@RequestBody PmsMaintenanceNegotiatUpload pmsMaintenanceNegotiatUpload) {
|
||||
return R.ok(pmsMaintenanceNegotiatUploadService.save(pmsMaintenanceNegotiatUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单附件上传表
|
||||
* @param pmsMaintenanceNegotiatUpload 保养工单附件上传表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养工单附件上传表", notes = "修改保养工单附件上传表")
|
||||
@SysLog("修改保养工单附件上传表" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancenegotiatupload_edit')" )
|
||||
public R updateById(@RequestBody PmsMaintenanceNegotiatUpload pmsMaintenanceNegotiatUpload) {
|
||||
return R.ok(pmsMaintenanceNegotiatUploadService.updateById(pmsMaintenanceNegotiatUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养工单附件上传表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养工单附件上传表", notes = "通过id删除保养工单附件上传表")
|
||||
@SysLog("通过id删除保养工单附件上传表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancenegotiatupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceNegotiatUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenanceNegotiatUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenancenegotiatupload_export')" )
|
||||
public List<PmsMaintenanceNegotiatUpload> export(PmsMaintenanceNegotiatUpload pmsMaintenanceNegotiatUpload) {
|
||||
return pmsMaintenanceNegotiatUploadService.list(Wrappers.query(pmsMaintenanceNegotiatUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,186 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
import com.foreverwin.mom.pms.dto.PmsMaintenanceOrderDTO;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrder;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceOrderService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-21 16:39:35
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenanceOrder")
|
||||
@Api(value = "maintenanceOrder", tags = "管理")
|
||||
public class PmsMaintenanceOrderController {
|
||||
|
||||
private final PmsMaintenanceOrderService pmsMaintenanceOrderService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPmsMaintenanceOrderPage(Page page, PmsMaintenanceOrderDTO dto) {
|
||||
IPage<PmsMaintenanceOrderDTO> dtoiPage = pmsMaintenanceOrderService.gatPage(page, dto);
|
||||
dtoiPage.setRecords(dtoiPage.getRecords().stream().peek(iter -> {
|
||||
if (!iter.getIsLastMonth().equals("是") && StrUtil.isNotBlank(iter.getExt5()) && LocalDate.now().getDayOfMonth() > Integer.parseInt(iter.getExt5())) {
|
||||
iter.setIsLastMonth("是");
|
||||
pmsMaintenanceOrderService.updateById(iter);
|
||||
}
|
||||
iter.setExt2(String.valueOf(ChronoUnit.DAYS.between(iter.getMaintenanceCplTime(), LocalDateTime.now())));
|
||||
}).collect(Collectors.toList()));
|
||||
return R.ok(dtoiPage);
|
||||
}
|
||||
|
||||
@GetMapping("/getHistory")
|
||||
public R getHistory(Page page, PmsMaintenanceOrderDTO dto) {
|
||||
return R.ok(pmsMaintenanceOrderService.getHistory(page,dto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(pmsMaintenanceOrderService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pmsMaintenanceOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenanceOrder pmsMaintenanceOrder) {
|
||||
return R.ok(pmsMaintenanceOrderService.save(pmsMaintenanceOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param dto
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenanceOrderDTO dto) {
|
||||
return R.ok(pmsMaintenanceOrderService.updateOrderInfo(dto));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping("/update")
|
||||
public R updateInfoById(@RequestBody PmsMaintenanceOrderDTO dto) {
|
||||
return R.ok(pmsMaintenanceOrderService.updateOrderById(dto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceOrderService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param list 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@PostMapping("/export")
|
||||
public List<PmsMaintenanceOrderDTO> export(@RequestBody List<PmsMaintenanceOrderDTO> list) {
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 安全许可证附件上传
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/uploadFile")
|
||||
public R uploadFile(@RequestParam("file") MultipartFile file, String handle) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO();
|
||||
commonAttachmentDTO.setFile(file);
|
||||
commonAttachmentDTO.setModelFunctionName("MAINTENANCE_ORDER_FILE");
|
||||
String errorMsg = pmsMaintenanceOrderService.uploadFile(commonAttachmentDTO, handle);
|
||||
return R.ok(errorMsg);
|
||||
}
|
||||
|
||||
@PostMapping("/uploadCompleteImg")
|
||||
public R uploadCompleteImg(@RequestParam("file") MultipartFile file) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO();
|
||||
commonAttachmentDTO.setFile(file);
|
||||
commonAttachmentDTO.setModelFunctionName("MAINTENANCE_ORDER_FILE");
|
||||
String errorMsg = pmsMaintenanceOrderService.uploadCompleteImg(commonAttachmentDTO);
|
||||
return R.ok(errorMsg);
|
||||
}
|
||||
|
||||
@GetMapping("/downloadFile/{handle}")
|
||||
public R downloadFile(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceOrderService.downloadFile(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/downloadAttachment")
|
||||
public void downloadAttachment(String handle,String type, HttpServletResponse response) {
|
||||
pmsMaintenanceOrderService.downloadAttachment(handle,type, response);
|
||||
}
|
||||
|
||||
@GetMapping("/getRole")
|
||||
public R getRole(String userId) {
|
||||
return R.ok(pmsMaintenanceOrderService.getRole(userId));
|
||||
}
|
||||
|
||||
@GetMapping("/getMaintenanceImg")
|
||||
public List<CommonAttachmentDTO> getMaintenanceImg(String handle) {
|
||||
return pmsMaintenanceOrderService.getMaintenanceImg(handle);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetailConsum;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceOrderDetailConsumService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养工单从表-耗材记录表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-29 09:50:15
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pms-maintenance-order-detail-consum" )
|
||||
@Api(value = "pms-maintenance-order-detail-consum", tags = "保养工单从表-耗材记录表管理")
|
||||
public class PmsMaintenanceOrderDetailConsumController {
|
||||
|
||||
private final PmsMaintenanceOrderDetailConsumService pmsMaintenanceOrderDetailConsumService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenanceOrderDetailConsum 保养工单从表-耗材记录表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenanceOrderDetailConsumPage(Page page, PmsMaintenanceOrderDetailConsum pmsMaintenanceOrderDetailConsum) {
|
||||
return R.ok(pmsMaintenanceOrderDetailConsumService.page(page, Wrappers.query(pmsMaintenanceOrderDetailConsum)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养工单从表-耗材记录表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetailConsumService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单从表-耗材记录表
|
||||
* @param pmsMaintenanceOrderDetailConsum 保养工单从表-耗材记录表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养工单从表-耗材记录表", notes = "新增保养工单从表-耗材记录表")
|
||||
@SysLog("新增保养工单从表-耗材记录表" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenanceOrderDetailConsum pmsMaintenanceOrderDetailConsum) {
|
||||
return R.ok(pmsMaintenanceOrderDetailConsumService.save(pmsMaintenanceOrderDetailConsum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单从表-耗材记录表
|
||||
* @param pmsMaintenanceOrderDetailConsum 保养工单从表-耗材记录表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养工单从表-耗材记录表", notes = "修改保养工单从表-耗材记录表")
|
||||
@SysLog("修改保养工单从表-耗材记录表" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenanceOrderDetailConsum pmsMaintenanceOrderDetailConsum) {
|
||||
return R.ok(pmsMaintenanceOrderDetailConsumService.updateById(pmsMaintenanceOrderDetailConsum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养工单从表-耗材记录表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养工单从表-耗材记录表", notes = "通过id删除保养工单从表-耗材记录表")
|
||||
@SysLog("通过id删除保养工单从表-耗材记录表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetailConsumService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenanceOrderDetailConsum 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenanceOrderDetailConsum> export(PmsMaintenanceOrderDetailConsum pmsMaintenanceOrderDetailConsum) {
|
||||
return pmsMaintenanceOrderDetailConsumService.list(Wrappers.query(pmsMaintenanceOrderDetailConsum));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,115 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetallCheck;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceOrderDetallCheckService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养前设备状态表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-22 14:21:22
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenanceOrderDetallCheck" )
|
||||
@Api(value = "maintenanceOrderDetallCheck", tags = "保养前设备状态表管理")
|
||||
public class PmsMaintenanceOrderDetallCheckController {
|
||||
|
||||
private final PmsMaintenanceOrderDetallCheckService pmsMaintenanceOrderDetallCheckService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenanceOrderDetallCheck 保养前设备状态表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenanceOrderDetallCheckPage(Page page, PmsMaintenanceOrderDetallCheck pmsMaintenanceOrderDetallCheck) {
|
||||
return R.ok(pmsMaintenanceOrderDetallCheckService.page(page, Wrappers.query(pmsMaintenanceOrderDetallCheck)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养前设备状态表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetallCheckService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养前设备状态表
|
||||
* @param pmsMaintenanceOrderDetallCheck 保养前设备状态表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养前设备状态表", notes = "新增保养前设备状态表")
|
||||
@SysLog("新增保养前设备状态表" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenanceOrderDetallCheck pmsMaintenanceOrderDetallCheck) {
|
||||
return R.ok(pmsMaintenanceOrderDetallCheckService.save(pmsMaintenanceOrderDetallCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养前设备状态表
|
||||
* @param pmsMaintenanceOrderDetallCheck 保养前设备状态表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养前设备状态表", notes = "修改保养前设备状态表")
|
||||
@SysLog("修改保养前设备状态表" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenanceOrderDetallCheck pmsMaintenanceOrderDetallCheck) {
|
||||
return R.ok(pmsMaintenanceOrderDetallCheckService.updateById(pmsMaintenanceOrderDetallCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养前设备状态表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养前设备状态表", notes = "通过id删除保养前设备状态表")
|
||||
@SysLog("通过id删除保养前设备状态表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetallCheckService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenanceOrderDetallCheck 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenanceOrderDetallCheck> export(PmsMaintenanceOrderDetallCheck pmsMaintenanceOrderDetallCheck) {
|
||||
return pmsMaintenanceOrderDetallCheckService.list(Wrappers.query(pmsMaintenanceOrderDetallCheck));
|
||||
}
|
||||
|
||||
@GetMapping("/getInfo")
|
||||
public R getInfo(String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetallCheckService.getInfo(handle));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderDetallContent;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceOrderDetallContentService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养工单从表-保养项目表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-22 14:21:07
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenanceOrderDetallContent" )
|
||||
@Api(value = "maintenanceOrderDetallContent", tags = "保养工单从表-保养项目表管理")
|
||||
public class PmsMaintenanceOrderDetallContentController {
|
||||
|
||||
private final PmsMaintenanceOrderDetallContentService pmsMaintenanceOrderDetallContentService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenanceOrderDetallContent 保养工单从表-保养项目表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenanceOrderDetallContentPage(Page page, PmsMaintenanceOrderDetallContent pmsMaintenanceOrderDetallContent) {
|
||||
return R.ok(pmsMaintenanceOrderDetallContentService.page(page, Wrappers.query(pmsMaintenanceOrderDetallContent)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养工单从表-保养项目表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetallContentService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单从表-保养项目表
|
||||
* @param pmsMaintenanceOrderDetallContent 保养工单从表-保养项目表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养工单从表-保养项目表", notes = "新增保养工单从表-保养项目表")
|
||||
@SysLog("新增保养工单从表-保养项目表" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenanceOrderDetallContent pmsMaintenanceOrderDetallContent) {
|
||||
return R.ok(pmsMaintenanceOrderDetallContentService.save(pmsMaintenanceOrderDetallContent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单从表-保养项目表
|
||||
* @param pmsMaintenanceOrderDetallContent 保养工单从表-保养项目表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养工单从表-保养项目表", notes = "修改保养工单从表-保养项目表")
|
||||
@SysLog("修改保养工单从表-保养项目表" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenanceOrderDetallContent pmsMaintenanceOrderDetallContent) {
|
||||
return R.ok(pmsMaintenanceOrderDetallContentService.updateById(pmsMaintenanceOrderDetallContent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养工单从表-保养项目表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养工单从表-保养项目表", notes = "通过id删除保养工单从表-保养项目表")
|
||||
@SysLog("通过id删除保养工单从表-保养项目表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceOrderDetallContentService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenanceOrderDetallContent 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenanceOrderDetallContent> export(PmsMaintenanceOrderDetallContent pmsMaintenanceOrderDetallContent) {
|
||||
return pmsMaintenanceOrderDetallContentService.list(Wrappers.query(pmsMaintenanceOrderDetallContent));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenanceOrderUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenanceOrderUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保养工单从表-保养完成结果上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:55
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsmaintenanceorderupload" )
|
||||
@Api(value = "pmsmaintenanceorderupload", tags = "保养工单从表-保养完成结果上传管理")
|
||||
public class PmsMaintenanceOrderUploadController {
|
||||
|
||||
private final PmsMaintenanceOrderUploadService pmsMaintenanceOrderUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenanceOrderUpload 保养工单从表-保养完成结果上传
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenanceorderupload_view')" )
|
||||
public R getPmsMaintenanceOrderUploadPage(Page page, PmsMaintenanceOrderUpload pmsMaintenanceOrderUpload) {
|
||||
return R.ok(pmsMaintenanceOrderUploadService.page(page, Wrappers.query(pmsMaintenanceOrderUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询保养工单从表-保养完成结果上传
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenanceorderupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsMaintenanceOrderUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保养工单从表-保养完成结果上传
|
||||
* @param pmsMaintenanceOrderUpload 保养工单从表-保养完成结果上传
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增保养工单从表-保养完成结果上传", notes = "新增保养工单从表-保养完成结果上传")
|
||||
@SysLog("新增保养工单从表-保养完成结果上传" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenanceorderupload_add')" )
|
||||
public R save(@RequestBody PmsMaintenanceOrderUpload pmsMaintenanceOrderUpload) {
|
||||
return R.ok(pmsMaintenanceOrderUploadService.save(pmsMaintenanceOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保养工单从表-保养完成结果上传
|
||||
* @param pmsMaintenanceOrderUpload 保养工单从表-保养完成结果上传
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改保养工单从表-保养完成结果上传", notes = "修改保养工单从表-保养完成结果上传")
|
||||
@SysLog("修改保养工单从表-保养完成结果上传" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenanceorderupload_edit')" )
|
||||
public R updateById(@RequestBody PmsMaintenanceOrderUpload pmsMaintenanceOrderUpload) {
|
||||
return R.ok(pmsMaintenanceOrderUploadService.updateById(pmsMaintenanceOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除保养工单从表-保养完成结果上传
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除保养工单从表-保养完成结果上传", notes = "通过id删除保养工单从表-保养完成结果上传")
|
||||
@SysLog("通过id删除保养工单从表-保养完成结果上传" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenanceorderupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsMaintenanceOrderUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenanceOrderUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsmaintenanceorderupload_export')" )
|
||||
public List<PmsMaintenanceOrderUpload> export(PmsMaintenanceOrderUpload pmsMaintenanceOrderUpload) {
|
||||
return pmsMaintenanceOrderUploadService.list(Wrappers.query(pmsMaintenanceOrderUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetailCheak;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenancePlanDetailCheakService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 11:10:27
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenancePlaneDtailCheak" )
|
||||
@Api(value = "maintenancePlaneDtailCheak", tags = "管理")
|
||||
public class PmsMaintenancePlanDetailCheakController {
|
||||
|
||||
private final PmsMaintenancePlanDetailCheakService pmsMaintenancePlanDetailCheakService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenancePlanDetailCheak
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenancePlanDetailCheakPage(Page page, PmsMaintenancePlanDetailCheak pmsMaintenancePlanDetailCheak) {
|
||||
return R.ok(pmsMaintenancePlanDetailCheakService.page(page, Wrappers.query(pmsMaintenancePlanDetailCheak)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{id}" )
|
||||
public R getById(@PathVariable("id" )String id) {
|
||||
return R.ok(pmsMaintenancePlanDetailCheakService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsMaintenancePlanDetailCheak
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenancePlanDetailCheak pmsMaintenancePlanDetailCheak) {
|
||||
return R.ok(pmsMaintenancePlanDetailCheakService.save(pmsMaintenancePlanDetailCheak));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsMaintenancePlanDetailCheak
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenancePlanDetailCheak pmsMaintenancePlanDetailCheak) {
|
||||
return R.ok(pmsMaintenancePlanDetailCheakService.updateById(pmsMaintenancePlanDetailCheak));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{id}" )
|
||||
public R removeById(@PathVariable("id") String id) {
|
||||
return R.ok(pmsMaintenancePlanDetailCheakService.removeById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenancePlanDetailCheak 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenancePlanDetailCheak> export(PmsMaintenancePlanDetailCheak pmsMaintenancePlanDetailCheak) {
|
||||
return pmsMaintenancePlanDetailCheakService.list(Wrappers.query(pmsMaintenancePlanDetailCheak));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetailConsum;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenancePlanDetailConsumService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 11:09:52
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenancePlanDetailConsum" )
|
||||
@Api(value = "maintenancePlanDetailConsum", tags = "管理")
|
||||
public class PmsMaintenancePlanDetailConsumController {
|
||||
|
||||
private final PmsMaintenancePlanDetailConsumService pmsMaintenancePlanDetailConsumService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenancePlanDetailConsum
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenancePlanDetailConsumPage(Page page, PmsMaintenancePlanDetailConsum pmsMaintenancePlanDetailConsum) {
|
||||
return R.ok(pmsMaintenancePlanDetailConsumService.page(page, Wrappers.query(pmsMaintenancePlanDetailConsum)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{id}" )
|
||||
public R getById(@PathVariable("id" ) String id) {
|
||||
return R.ok(pmsMaintenancePlanDetailConsumService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsMaintenancePlanDetailConsum
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenancePlanDetailConsum pmsMaintenancePlanDetailConsum) {
|
||||
return R.ok(pmsMaintenancePlanDetailConsumService.save(pmsMaintenancePlanDetailConsum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsMaintenancePlanDetailConsum
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenancePlanDetailConsum pmsMaintenancePlanDetailConsum) {
|
||||
return R.ok(pmsMaintenancePlanDetailConsumService.updateById(pmsMaintenancePlanDetailConsum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{id}" )
|
||||
public R removeById(@PathVariable("id") String id) {
|
||||
return R.ok(pmsMaintenancePlanDetailConsumService.removeById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenancePlanDetailConsum 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenancePlanDetailConsum> export(PmsMaintenancePlanDetailConsum pmsMaintenancePlanDetailConsum) {
|
||||
return pmsMaintenancePlanDetailConsumService.list(Wrappers.query(pmsMaintenancePlanDetailConsum));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetailContent;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenancePlanDetailContentService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 11:10:18
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenancePlanDetailContent" )
|
||||
@Api(value = "maintenancePlanDetailContent", tags = "管理")
|
||||
public class PmsMaintenancePlanDetailContentController {
|
||||
|
||||
private final PmsMaintenancePlanDetailContentService pmsMaintenancePlanDetailContentService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenancePlanDetailContent
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenancePlanDetailContentPage(Page page, PmsMaintenancePlanDetailContent pmsMaintenancePlanDetailContent) {
|
||||
return R.ok(pmsMaintenancePlanDetailContentService.page(page, Wrappers.query(pmsMaintenancePlanDetailContent)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{id}" )
|
||||
public R getById(@PathVariable("id" ) String id) {
|
||||
return R.ok(pmsMaintenancePlanDetailContentService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsMaintenancePlanDetailContent
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenancePlanDetailContent pmsMaintenancePlanDetailContent) {
|
||||
return R.ok(pmsMaintenancePlanDetailContentService.save(pmsMaintenancePlanDetailContent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsMaintenancePlanDetailContent
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenancePlanDetailContent pmsMaintenancePlanDetailContent) {
|
||||
return R.ok(pmsMaintenancePlanDetailContentService.updateById(pmsMaintenancePlanDetailContent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{id}" )
|
||||
public R removeById(@PathVariable("id") String id) {
|
||||
return R.ok(pmsMaintenancePlanDetailContentService.removeById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenancePlanDetailContent 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenancePlanDetailContent> export(PmsMaintenancePlanDetailContent pmsMaintenancePlanDetailContent) {
|
||||
return pmsMaintenancePlanDetailContentService.list(Wrappers.query(pmsMaintenancePlanDetailContent));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanDetallEquip;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenancePlanDetallEquipService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-20 16:10:37
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenancePlanDetallEquip" )
|
||||
@Api(value = "maintenancePlanDetallEquip", tags = "管理")
|
||||
public class PmsMaintenancePlanDetallEquipController {
|
||||
|
||||
private final PmsMaintenancePlanDetallEquipService pmsMaintenancePlanDetallEquipService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsMaintenancePlanDetallEquip
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsMaintenancePlanDetallEquipPage(Page page, PmsMaintenancePlanDetallEquip pmsMaintenancePlanDetallEquip) {
|
||||
return R.ok(pmsMaintenancePlanDetallEquipService.page(page, Wrappers.query(pmsMaintenancePlanDetallEquip)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{id}" )
|
||||
public R getById(@PathVariable("id" ) String id) {
|
||||
return R.ok(pmsMaintenancePlanDetallEquipService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsMaintenancePlanDetallEquip
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenancePlanDetallEquip pmsMaintenancePlanDetallEquip) {
|
||||
return R.ok(pmsMaintenancePlanDetallEquipService.save(pmsMaintenancePlanDetallEquip));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsMaintenancePlanDetallEquip
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenancePlanDetallEquip pmsMaintenancePlanDetallEquip) {
|
||||
return R.ok(pmsMaintenancePlanDetallEquipService.updateById(pmsMaintenancePlanDetallEquip));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param id id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{id}" )
|
||||
public R removeById(@PathVariable String id) {
|
||||
return R.ok(pmsMaintenancePlanDetallEquipService.removeById(id));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsMaintenancePlanDetallEquip 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenancePlanDetallEquip> export(PmsMaintenancePlanDetallEquip pmsMaintenancePlanDetallEquip) {
|
||||
return pmsMaintenancePlanDetallEquipService.list(Wrappers.query(pmsMaintenancePlanDetallEquip));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.PmsMaintenancePlanMasterDTO;
|
||||
import com.foreverwin.mom.pms.entity.PmsMaintenancePlanMaster;
|
||||
import com.foreverwin.mom.pms.service.PmsMaintenancePlanMasterService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-19 17:57:50
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/maintenancePlanMaster")
|
||||
@Api(value = "maintenancePlanMaster", tags = "管理")
|
||||
public class PmsMaintenancePlanMasterController {
|
||||
|
||||
private final PmsMaintenancePlanMasterService pmsMaintenancePlanMasterService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPmsMaintenancePlanMasterPage(Page page, PmsMaintenancePlanMasterDTO dto) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.getPage ( page, dto ) ) ;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.getInfo ( id ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param dto
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsMaintenancePlanMasterDTO dto) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.saveDto ( dto ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param dto
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsMaintenancePlanMasterDTO dto) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.updateInfo ( dto ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public R removeById(@PathVariable("id") String id) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.removeInfoById ( id ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param pmsMaintenancePlanMaster 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsMaintenancePlanMaster> export(PmsMaintenancePlanMaster pmsMaintenancePlanMaster) {
|
||||
return pmsMaintenancePlanMasterService.list ( Wrappers.query ( pmsMaintenancePlanMaster ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getEquip")
|
||||
public R getEquip(String groupId) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.getEquip ( groupId ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getEquipGroup")
|
||||
public R getEquipGroup(Page page, String id) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.getEquipGroup ( page, id ) );
|
||||
}
|
||||
|
||||
@GetMapping("startMaintenance")
|
||||
public R startMaintenance(String handle) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.startMaintenance ( handle ) );
|
||||
}
|
||||
@GetMapping("stopMaintenance")
|
||||
public R stopMaintenance(String handle) {
|
||||
return R.ok ( pmsMaintenancePlanMasterService.stopMaintenance ( handle ) );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsPartExt;
|
||||
import com.foreverwin.mom.pms.service.PmsPartExtService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 备品
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-02 11:00:24
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsPartExt" )
|
||||
@Api(value = "pmsPartExt", tags = "备品管理")
|
||||
public class PmsPartExtController {
|
||||
|
||||
private final PmsPartExtService pmsPartService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsPart 备品
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsPartExtPage(Page page, PmsPartExt pmsPart) {
|
||||
return R.ok(pmsPartService.page(page, Wrappers.query(pmsPart)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询备品
|
||||
* @param site id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{site}" )
|
||||
public R getById(@PathVariable("site" ) String site) {
|
||||
return R.ok(pmsPartService.getById(site));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增备品
|
||||
* @param pmsPart 备品
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增备品", notes = "新增备品")
|
||||
@SysLog("新增备品" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsPartExt pmsPart) {
|
||||
return R.ok(pmsPartService.savePmsPartExt(pmsPart));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改备品
|
||||
* @param pmsPart 备品
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改备品", notes = "修改备品")
|
||||
@SysLog("修改备品" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsPartExt pmsPart) {
|
||||
return R.ok(pmsPartService.updateById(pmsPart));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除备品
|
||||
* @param site id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除备品", notes = "通过id删除备品")
|
||||
@SysLog("通过id删除备品" )
|
||||
@DeleteMapping("/{site}" )
|
||||
public R removeById(@PathVariable String site) {
|
||||
return R.ok(pmsPartService.removeById(site));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsPart 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsPartExt> export(PmsPartExt pmsPart) {
|
||||
return pmsPartService.list(Wrappers.query(pmsPart));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.PmsPatrolSheetExtDTO;
|
||||
import com.foreverwin.mom.pms.service.PmsPatrolSheetExtService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/patrolSheet" )
|
||||
@Api(value = "patrolSheet", tags = "点巡检计划")
|
||||
public class PmsPatrolSheetExtController {
|
||||
|
||||
private final PmsPatrolSheetExtService pmsPatrolSheetExtService;
|
||||
@PostMapping("/saveSheet")
|
||||
public R saveSheet(@RequestBody PmsPatrolSheetExtDTO dto){
|
||||
return R.ok (pmsPatrolSheetExtService.saveSheet(dto));
|
||||
}
|
||||
@PostMapping("/updateInfo")
|
||||
public R updateInfo(@RequestBody PmsPatrolSheetExtDTO dto){
|
||||
return R.ok (pmsPatrolSheetExtService.updateInfo(dto));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
public R getPage(Page page,String patrolName){
|
||||
return R.ok (pmsPatrolSheetExtService.getPage(page,patrolName));
|
||||
}
|
||||
|
||||
@DeleteMapping
|
||||
public R delete(String handle){
|
||||
return R.ok (pmsPatrolSheetExtService.removeInfoById ( handle ));
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/startSheet")
|
||||
public R startSheet(String id){
|
||||
return R.ok (pmsPatrolSheetExtService.startSheet(id));
|
||||
}
|
||||
@GetMapping("/stopSheet")
|
||||
public R stopSheet(String id){
|
||||
return R.ok (pmsPatrolSheetExtService.stopSheet(id));
|
||||
}
|
||||
|
||||
@GetMapping("/getByHandle/{handle}")
|
||||
public R getByHandle(@PathVariable String handle){
|
||||
return R.ok (pmsPatrolSheetExtService.getByHandle(handle));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExtDetall;
|
||||
import com.foreverwin.mom.pms.service.PmsPatrolSheetExtDetallService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-26 10:21:21
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/patrolSheetExtDetall" )
|
||||
@Api(value = "patrolSheetExtDetall", tags = "管理")
|
||||
public class PmsPatrolSheetExtDetallController {
|
||||
|
||||
private final PmsPatrolSheetExtDetallService pmsPatrolSheetExtDetallService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsPatrolSheetExtDetall
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsPatrolSheetExtDetallPage(Page page, PmsPatrolSheetExtDetall pmsPatrolSheetExtDetall) {
|
||||
return R.ok(pmsPatrolSheetExtDetallService.page(page, Wrappers.query(pmsPatrolSheetExtDetall)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsPatrolSheetExtDetallService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsPatrolSheetExtDetall
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsPatrolSheetExtDetall pmsPatrolSheetExtDetall) {
|
||||
return R.ok(pmsPatrolSheetExtDetallService.save(pmsPatrolSheetExtDetall));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsPatrolSheetExtDetall
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsPatrolSheetExtDetall pmsPatrolSheetExtDetall) {
|
||||
return R.ok(pmsPatrolSheetExtDetallService.updateById(pmsPatrolSheetExtDetall));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsPatrolSheetExtDetallService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsPatrolSheetExtDetall 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsPatrolSheetExtDetall> export(PmsPatrolSheetExtDetall pmsPatrolSheetExtDetall) {
|
||||
return pmsPatrolSheetExtDetallService.list(Wrappers.query(pmsPatrolSheetExtDetall));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExtDetallEquip;
|
||||
import com.foreverwin.mom.pms.service.PmsPatrolSheetExtDetallEquipService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-26 10:21:13
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/patrolSheetExtDetallEquip" )
|
||||
@Api(value = "patrolSheetExtDetallEquip", tags = "管理")
|
||||
public class PmsPatrolSheetExtDetallEquipController {
|
||||
|
||||
private final PmsPatrolSheetExtDetallEquipService pmsPatrolSheetExtDetallEquipService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsPatrolSheetExtDetallEquip
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsPatrolSheetExtDetallEquipPage(Page page, PmsPatrolSheetExtDetallEquip pmsPatrolSheetExtDetallEquip) {
|
||||
return R.ok(pmsPatrolSheetExtDetallEquipService.page(page, Wrappers.query(pmsPatrolSheetExtDetallEquip)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsPatrolSheetExtDetallEquipService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsPatrolSheetExtDetallEquip
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsPatrolSheetExtDetallEquip pmsPatrolSheetExtDetallEquip) {
|
||||
return R.ok(pmsPatrolSheetExtDetallEquipService.save(pmsPatrolSheetExtDetallEquip));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsPatrolSheetExtDetallEquip
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsPatrolSheetExtDetallEquip pmsPatrolSheetExtDetallEquip) {
|
||||
return R.ok(pmsPatrolSheetExtDetallEquipService.updateById(pmsPatrolSheetExtDetallEquip));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsPatrolSheetExtDetallEquipService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsPatrolSheetExtDetallEquip 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsPatrolSheetExtDetallEquip> export(PmsPatrolSheetExtDetallEquip pmsPatrolSheetExtDetallEquip) {
|
||||
return pmsPatrolSheetExtDetallEquipService.list(Wrappers.query(pmsPatrolSheetExtDetallEquip));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsRepairOrderUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsRepairOrderUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 维修工单从表-附件上传(完成维修)
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:49
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsrepairorderupload" )
|
||||
@Api(value = "pmsrepairorderupload", tags = "维修工单从表-附件上传(完成维修)管理")
|
||||
public class PmsRepairOrderUploadController {
|
||||
|
||||
private final PmsRepairOrderUploadService pmsRepairOrderUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsRepairOrderUpload 维修工单从表-附件上传(完成维修)
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsrepairorderupload_view')" )
|
||||
public R getPmsRepairOrderUploadPage(Page page, PmsRepairOrderUpload pmsRepairOrderUpload) {
|
||||
return R.ok(pmsRepairOrderUploadService.page(page, Wrappers.query(pmsRepairOrderUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询维修工单从表-附件上传(完成维修)
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsrepairorderupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsRepairOrderUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增维修工单从表-附件上传(完成维修)
|
||||
* @param pmsRepairOrderUpload 维修工单从表-附件上传(完成维修)
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增维修工单从表-附件上传(完成维修)", notes = "新增维修工单从表-附件上传(完成维修)")
|
||||
@SysLog("新增维修工单从表-附件上传(完成维修)" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsrepairorderupload_add')" )
|
||||
public R save(@RequestBody PmsRepairOrderUpload pmsRepairOrderUpload) {
|
||||
return R.ok(pmsRepairOrderUploadService.save(pmsRepairOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改维修工单从表-附件上传(完成维修)
|
||||
* @param pmsRepairOrderUpload 维修工单从表-附件上传(完成维修)
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改维修工单从表-附件上传(完成维修)", notes = "修改维修工单从表-附件上传(完成维修)")
|
||||
@SysLog("修改维修工单从表-附件上传(完成维修)" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsrepairorderupload_edit')" )
|
||||
public R updateById(@RequestBody PmsRepairOrderUpload pmsRepairOrderUpload) {
|
||||
return R.ok(pmsRepairOrderUploadService.updateById(pmsRepairOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除维修工单从表-附件上传(完成维修)
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除维修工单从表-附件上传(完成维修)", notes = "通过id删除维修工单从表-附件上传(完成维修)")
|
||||
@SysLog("通过id删除维修工单从表-附件上传(完成维修)" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsrepairorderupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsRepairOrderUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsRepairOrderUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsrepairorderupload_export')" )
|
||||
public List<PmsRepairOrderUpload> export(PmsRepairOrderUpload pmsRepairOrderUpload) {
|
||||
return pmsRepairOrderUploadService.list(Wrappers.query(pmsRepairOrderUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,150 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
import com.foreverwin.mom.pms.dto.PmsReportOrderCheckDTO;
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrderCheck;
|
||||
import com.foreverwin.mom.pms.service.PmsReportOrderCheckService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-15 14:28:02
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsReportOrderCheck")
|
||||
@Api(value = "pmsReportOrderCheck", tags = "管理")
|
||||
public class PmsReportOrderCheckController {
|
||||
|
||||
private final PmsReportOrderCheckService pmsReportOrderCheckService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param pmsReportOrderCheck
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPmsReportOrderCheckPage(Page page, PmsReportOrderCheck pmsReportOrderCheck) {
|
||||
return R.ok ( pmsReportOrderCheckService.page ( page, Wrappers.query ( pmsReportOrderCheck ) ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok ( pmsReportOrderCheckService.getById ( handle ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pmsReportOrderCheck
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsReportOrderCheck pmsReportOrderCheck) {
|
||||
return R.ok ( pmsReportOrderCheckService.save ( pmsReportOrderCheck ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pmsReportOrderCheck
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsReportOrderCheck pmsReportOrderCheck) {
|
||||
return R.ok ( pmsReportOrderCheckService.updateById ( pmsReportOrderCheck ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok ( pmsReportOrderCheckService.removeById ( handle ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param pmsReportOrderCheck 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsReportOrderCheck> export(PmsReportOrderCheck pmsReportOrderCheck) {
|
||||
return pmsReportOrderCheckService.list ( Wrappers.query ( pmsReportOrderCheck ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getOrderInfo")
|
||||
public R getOrderInfo(@RequestParam String handle) {
|
||||
return R.ok ( pmsReportOrderCheckService.getOrderInfo ( handle ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getOrderConsum")
|
||||
public R getOrderConsum(@RequestParam String handle) {
|
||||
return R.ok ( pmsReportOrderCheckService.getOrderConsum ( handle ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getCheckInfo")
|
||||
public R getCheckInfo(@RequestParam String handle) {
|
||||
return R.ok ( pmsReportOrderCheckService.getCheckInfo ( handle ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getUserList")
|
||||
public R getUserList(Page page, String name) {
|
||||
return R.ok ( pmsReportOrderCheckService.getUserList ( page, name ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getCheckPage")
|
||||
public R getCheckPage(Page page, PmsReportOrderCheckDTO dto) {
|
||||
return R.ok ( pmsReportOrderCheckService.getCheckPage ( page, dto ) );
|
||||
}
|
||||
|
||||
@GetMapping("/getImage")
|
||||
public List<CommonAttachmentDTO> getImage(String handle) {
|
||||
return pmsReportOrderCheckService.getImage ( handle );
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,115 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsPartExt;
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrderConsum;
|
||||
import com.foreverwin.mom.pms.service.PmsReportOrderConsumService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-14 10:42:04
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsReportOrderConsum" )
|
||||
@Api(value = "pmsReportOrderConsum", tags = "管理")
|
||||
public class PmsReportOrderConsumController {
|
||||
|
||||
private final PmsReportOrderConsumService pmsReportOrderConsumService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsReportOrderConsum
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsReportOrderConsumPage(Page page, PmsReportOrderConsum pmsReportOrderConsum) {
|
||||
return R.ok(pmsReportOrderConsumService.page(page, Wrappers.query(pmsReportOrderConsum)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsReportOrderConsumService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsReportOrderConsum
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsReportOrderConsum pmsReportOrderConsum) {
|
||||
return R.ok(pmsReportOrderConsumService.saveConsum(pmsReportOrderConsum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsReportOrderConsum
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsReportOrderConsum pmsReportOrderConsum) {
|
||||
return R.ok(pmsReportOrderConsumService.updateById(pmsReportOrderConsum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsReportOrderConsumService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsReportOrderConsum 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsReportOrderConsum> export(PmsReportOrderConsum pmsReportOrderConsum) {
|
||||
return pmsReportOrderConsumService.list(Wrappers.query(pmsReportOrderConsum));
|
||||
}
|
||||
|
||||
@GetMapping("/getPartPage")
|
||||
public R getPartPage(Page page, PmsPartExt pmsPartExt){
|
||||
return R.ok(pmsReportOrderConsumService.getPartPage(page, pmsPartExt));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,249 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
import com.foreverwin.mom.pms.dto.PmsOrderHistoryDTO;
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrder;
|
||||
import com.foreverwin.mom.pms.service.PmsReportOrderService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-06 09:30:54
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsReportOrder")
|
||||
@Api(value = "pmsReportOrder", tags = "管理")
|
||||
public class PmsReportOrderController {
|
||||
|
||||
private final PmsReportOrderService pmsReportOrderService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param pmsReportOrder
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPmsReportOrderPage(Page page, PmsReportOrder pmsReportOrder) {
|
||||
return R.ok(pmsReportOrderService.getPage(page, pmsReportOrder));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(pmsReportOrderService.getPmsReportOrderById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pmsReportOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsReportOrder pmsReportOrder) {
|
||||
return R.ok(pmsReportOrderService.saveReportOrder(pmsReportOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pmsReportOrder
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsReportOrder pmsReportOrder) {
|
||||
return R.ok(pmsReportOrderService.updatePmsReportOrder(pmsReportOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsReportOrderService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param pmsReportOrder 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsReportOrder> export(PmsReportOrder pmsReportOrder) {
|
||||
return pmsReportOrderService.list(Wrappers.query(pmsReportOrder));
|
||||
}
|
||||
|
||||
@GetMapping("/getDevices")
|
||||
public R getDevices(Page page, String resrce) {
|
||||
return R.ok(pmsReportOrderService.getDevices(page, resrce));
|
||||
}
|
||||
|
||||
@GetMapping("/getEqpByName/{resrce}")
|
||||
public R getEqpByName(@PathVariable String resrce) {
|
||||
return R.ok(pmsReportOrderService.getEqpByName(resrce));
|
||||
}
|
||||
|
||||
@GetMapping("/getStructCode")
|
||||
public R getStructCode(String handle) {
|
||||
return R.ok(pmsReportOrderService.getStructCode(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getPageList")
|
||||
public R getPageList(Page page, String handle) {
|
||||
return R.ok(pmsReportOrderService.getPageList(page, handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getReportOrder")
|
||||
public R getReportOrder() {
|
||||
return R.ok(pmsReportOrderService.getReportOrder());
|
||||
}
|
||||
|
||||
@GetMapping("/getReportOrderMonth")
|
||||
public R getReportOrderMonth() {
|
||||
return R.ok(pmsReportOrderService.getReportOrderMonth());
|
||||
}
|
||||
|
||||
@GetMapping("/getInspectOrder")
|
||||
public R getInspectOrder() {
|
||||
return R.ok(pmsReportOrderService.getInspectOrder());
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/getReportOrderHistory")
|
||||
public R getReportOrderHistory(Page page, PmsOrderHistoryDTO dto, String timeQuery) {
|
||||
return R.ok(pmsReportOrderService.getReportOrderHistory(page, dto, timeQuery));
|
||||
}
|
||||
|
||||
@GetMapping("/getEqpType")
|
||||
public R getEqpType(String handle) {
|
||||
return R.ok(pmsReportOrderService.getEqpType(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getRejectCause")
|
||||
public R getRejectCause(String handle) {
|
||||
return R.ok(pmsReportOrderService.getRejectCause(handle));
|
||||
}
|
||||
|
||||
@GetMapping("/getRepairPerson")
|
||||
public R getRepairPerson(Page page, String name) {
|
||||
return R.ok(pmsReportOrderService.getRepairPerson(page, name));
|
||||
}
|
||||
|
||||
@ResponseExcel
|
||||
@PostMapping("/exportHistory")
|
||||
public List<PmsOrderHistoryDTO> export(@RequestBody List<PmsOrderHistoryDTO> list) {
|
||||
return pmsReportOrderService.listHistory(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 安全许可证附件上传
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/uploadFile")
|
||||
public R uploadFile(@RequestParam("file") MultipartFile file, String handle) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO();
|
||||
commonAttachmentDTO.setFile(file);
|
||||
commonAttachmentDTO.setModelFunctionName("REPORT_ORDER_FILE");
|
||||
String errorMsg = pmsReportOrderService.uploadFile(commonAttachmentDTO, handle);
|
||||
return R.ok(errorMsg);
|
||||
}
|
||||
|
||||
@GetMapping("/checkCallBack")
|
||||
public R checkCallBack(String handle, String reasonsRejection) {
|
||||
return R.ok(pmsReportOrderService.checkCallBack(handle, reasonsRejection));
|
||||
}
|
||||
|
||||
@GetMapping("/getDeptByUser")
|
||||
public R getDeptByUser(String userId) {
|
||||
return R.ok(pmsReportOrderService.getDeptByUser(userId));
|
||||
}
|
||||
|
||||
@GetMapping("/getLocation")
|
||||
public R getLocation(String resrce) {
|
||||
return R.ok(pmsReportOrderService.getLocation(resrce));
|
||||
}
|
||||
|
||||
@PostMapping("/uploadReportImg")
|
||||
public R uploadReportImg(@RequestParam("file") MultipartFile file) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO();
|
||||
commonAttachmentDTO.setFile(file);
|
||||
commonAttachmentDTO.setModelFunctionName("REPORT_ORDER_FILE");
|
||||
String errorMsg = pmsReportOrderService.uploadReportImg(commonAttachmentDTO);
|
||||
return R.ok(errorMsg);
|
||||
}
|
||||
|
||||
@PostMapping("/uploadCompleteImg")
|
||||
public R uploadCompleteImg(@RequestParam("file") MultipartFile file) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO();
|
||||
commonAttachmentDTO.setFile(file);
|
||||
commonAttachmentDTO.setModelFunctionName("REPORT_ORDER_FILE");
|
||||
String errorMsg = pmsReportOrderService.uploadCompleteImg(commonAttachmentDTO);
|
||||
return R.ok(errorMsg);
|
||||
}
|
||||
|
||||
@GetMapping("/getReportImg")
|
||||
public CommonAttachmentDTO getReportImg(String handle) {
|
||||
return pmsReportOrderService.getReportImg(handle);
|
||||
}
|
||||
|
||||
@GetMapping("/downloadAttachment")
|
||||
public void downloadAttachment(String handle,String type, HttpServletResponse response) {
|
||||
pmsReportOrderService.downloadAttachment(handle,type, response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据当前用户获取指定部门
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getDeptByUserByNotParam")
|
||||
public R getDeptByUser(){
|
||||
return R.ok(pmsReportOrderService.getDeptByUserByNotParam());
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrderItem;
|
||||
import com.foreverwin.mom.pms.service.PmsReportOrderItemService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-14 10:42:39
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsReportOrderItem" )
|
||||
@Api(value = "pmsReportOrderItem", tags = "管理")
|
||||
public class PmsReportOrderItemController {
|
||||
|
||||
private final PmsReportOrderItemService pmsReportOrderItemService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsReportOrderItem
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
public R getPmsReportOrderItemPage(Page page, PmsReportOrderItem pmsReportOrderItem) {
|
||||
return R.ok(pmsReportOrderItemService.page(page, Wrappers.query(pmsReportOrderItem)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsReportOrderItemService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param pmsReportOrderItem
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增" )
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsReportOrderItem pmsReportOrderItem) {
|
||||
return R.ok(pmsReportOrderItemService.saveItem(pmsReportOrderItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
* @param pmsReportOrderItem
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改" )
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsReportOrderItem pmsReportOrderItem) {
|
||||
return R.ok(pmsReportOrderItemService.updateById(pmsReportOrderItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsReportOrderItemService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsReportOrderItem 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsReportOrderItem> export(PmsReportOrderItem pmsReportOrderItem) {
|
||||
return pmsReportOrderItemService.list(Wrappers.query(pmsReportOrderItem));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsReportOrderUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsReportOrderUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 维修工单安全许可证文件上传表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-10-21 11:29:26
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsreportorderupload" )
|
||||
@Api(value = "pmsreportorderupload", tags = "维修工单安全许可证文件上传表管理")
|
||||
public class PmsReportOrderUploadController {
|
||||
|
||||
private final PmsReportOrderUploadService pmsReportOrderUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsReportOrderUpload 维修工单安全许可证文件上传表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsreportorderupload_view')" )
|
||||
public R getPmsReportOrderUploadPage(Page page, PmsReportOrderUpload pmsReportOrderUpload) {
|
||||
return R.ok(pmsReportOrderUploadService.page(page, Wrappers.query(pmsReportOrderUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询维修工单安全许可证文件上传表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsreportorderupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsReportOrderUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增维修工单安全许可证文件上传表
|
||||
* @param pmsReportOrderUpload 维修工单安全许可证文件上传表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增维修工单安全许可证文件上传表", notes = "新增维修工单安全许可证文件上传表")
|
||||
@SysLog("新增维修工单安全许可证文件上传表" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsreportorderupload_add')" )
|
||||
public R save(@RequestBody PmsReportOrderUpload pmsReportOrderUpload) {
|
||||
return R.ok(pmsReportOrderUploadService.save(pmsReportOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改维修工单安全许可证文件上传表
|
||||
* @param pmsReportOrderUpload 维修工单安全许可证文件上传表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改维修工单安全许可证文件上传表", notes = "修改维修工单安全许可证文件上传表")
|
||||
@SysLog("修改维修工单安全许可证文件上传表" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsreportorderupload_edit')" )
|
||||
public R updateById(@RequestBody PmsReportOrderUpload pmsReportOrderUpload) {
|
||||
return R.ok(pmsReportOrderUploadService.updateById(pmsReportOrderUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除维修工单安全许可证文件上传表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除维修工单安全许可证文件上传表", notes = "通过id删除维修工单安全许可证文件上传表")
|
||||
@SysLog("通过id删除维修工单安全许可证文件上传表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsreportorderupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsReportOrderUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsReportOrderUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsreportorderupload_export')" )
|
||||
public List<PmsReportOrderUpload> export(PmsReportOrderUpload pmsReportOrderUpload) {
|
||||
return pmsReportOrderUploadService.list(Wrappers.query(pmsReportOrderUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsResrceExtUpload;
|
||||
import com.foreverwin.mom.pms.service.PmsResrceExtUploadService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备主数据上传附件表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-09-24 17:46:52
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pmsresrceextupload" )
|
||||
@Api(value = "pmsresrceextupload", tags = "设备主数据上传附件表管理")
|
||||
public class PmsResrceExtUploadController {
|
||||
|
||||
private final PmsResrceExtUploadService pmsResrceExtUploadService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page 分页对象
|
||||
* @param pmsResrceExtUpload 设备主数据上传附件表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsresrceextupload_view')" )
|
||||
public R getPmsResrceExtUploadPage(Page page, PmsResrceExtUpload pmsResrceExtUpload) {
|
||||
return R.ok(pmsResrceExtUploadService.page(page, Wrappers.query(pmsResrceExtUpload)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询设备主数据上传附件表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsresrceextupload_view')" )
|
||||
public R getById(@PathVariable("handle" ) String handle) {
|
||||
return R.ok(pmsResrceExtUploadService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备主数据上传附件表
|
||||
* @param pmsResrceExtUpload 设备主数据上传附件表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增设备主数据上传附件表", notes = "新增设备主数据上传附件表")
|
||||
@SysLog("新增设备主数据上传附件表" )
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsresrceextupload_add')" )
|
||||
public R save(@RequestBody PmsResrceExtUpload pmsResrceExtUpload) {
|
||||
return R.ok(pmsResrceExtUploadService.save(pmsResrceExtUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备主数据上传附件表
|
||||
* @param pmsResrceExtUpload 设备主数据上传附件表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改设备主数据上传附件表", notes = "修改设备主数据上传附件表")
|
||||
@SysLog("修改设备主数据上传附件表" )
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsresrceextupload_edit')" )
|
||||
public R updateById(@RequestBody PmsResrceExtUpload pmsResrceExtUpload) {
|
||||
return R.ok(pmsResrceExtUploadService.updateById(pmsResrceExtUpload));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除设备主数据上传附件表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除设备主数据上传附件表", notes = "通过id删除设备主数据上传附件表")
|
||||
@SysLog("通过id删除设备主数据上传附件表" )
|
||||
@DeleteMapping("/{handle}" )
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsresrceextupload_del')" )
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsResrceExtUploadService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsResrceExtUpload 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
@PreAuthorize("@pms.hasPermission('pms_pmsresrceextupload_export')" )
|
||||
public List<PmsResrceExtUpload> export(PmsResrceExtUpload pmsResrceExtUpload) {
|
||||
return pmsResrceExtUploadService.list(Wrappers.query(pmsResrceExtUpload));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.PmsTemperatureHumidity;
|
||||
import com.foreverwin.mom.pms.service.PmsTemperatureHumidityService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 温湿度仪表
|
||||
*
|
||||
* @author huwei
|
||||
* @date 2024-10-18 10:40:14
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/pms-temperature-humidity")
|
||||
@Api(value = "pms-temperature-humidity", tags = "温湿度仪表管理")
|
||||
public class PmsTemperatureHumidityController {
|
||||
|
||||
private final PmsTemperatureHumidityService pmsTemperatureHumidityService;
|
||||
|
||||
/**
|
||||
* 温湿度仪数据分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param pmsTemperatureHumidity 温湿度仪表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPmsTemperatureHumidityPage(Page page, PmsTemperatureHumidity pmsTemperatureHumidity) {
|
||||
return R.ok(pmsTemperatureHumidityService.getPmsTemperatureHumidityPage(page, pmsTemperatureHumidity));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询温湿度仪表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok(pmsTemperatureHumidityService.getById(handle));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增温湿度仪表
|
||||
* @param pmsTemperatureHumidity 温湿度仪表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增温湿度仪表", notes = "新增温湿度仪表")
|
||||
@SysLog("新增温湿度仪表")
|
||||
@PostMapping
|
||||
public R save(@RequestBody PmsTemperatureHumidity pmsTemperatureHumidity) {
|
||||
return R.ok(pmsTemperatureHumidityService.save(pmsTemperatureHumidity));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改温湿度仪表
|
||||
* @param pmsTemperatureHumidity 温湿度仪表
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改温湿度仪表", notes = "修改温湿度仪表")
|
||||
@SysLog("修改温湿度仪表")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody PmsTemperatureHumidity pmsTemperatureHumidity) {
|
||||
return R.ok(pmsTemperatureHumidityService.updateById(pmsTemperatureHumidity));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除温湿度仪表
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除温湿度仪表", notes = "通过id删除温湿度仪表")
|
||||
@SysLog("通过id删除温湿度仪表")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok(pmsTemperatureHumidityService.removeById(handle));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
* @param pmsTemperatureHumidity 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<PmsTemperatureHumidity> export(PmsTemperatureHumidity pmsTemperatureHumidity) {
|
||||
return pmsTemperatureHumidityService.list(Wrappers.query(pmsTemperatureHumidity));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,121 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.entity.Purchase;
|
||||
import com.foreverwin.mom.pms.service.PurchaseService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-30 15:55:43
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/purchase")
|
||||
@Api(value = "purchase", tags = "管理")
|
||||
public class PurchaseController {
|
||||
|
||||
private final PurchaseService purchaseService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param purchase
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getPurchasePage(Page page, Purchase purchase) {
|
||||
String[] split = new String[2];
|
||||
if (StrUtil.isNotBlank ( purchase.getExt1 () )) {
|
||||
split = purchase.getExt1 ().split ( "," );
|
||||
}
|
||||
return R.ok ( purchaseService.page ( page, new LambdaQueryWrapper<Purchase> ()
|
||||
.like ( StrUtil.isNotBlank ( purchase.getMaterialName () ), Purchase::getMaterialName, purchase.getMaterialName () )
|
||||
.like ( StrUtil.isNotBlank ( purchase.getSubmitter () ), Purchase::getSubmitter, purchase.getSubmitter () )
|
||||
.between ( StrUtil.isNotBlank ( purchase.getExt1 () ), Purchase::getSubmitDate, split[0], split[1] ) ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok ( purchaseService.getById ( handle ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param purchase
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@SysLog("新增")
|
||||
@PostMapping
|
||||
public R save(@RequestBody Purchase purchase) {
|
||||
return R.ok ( purchaseService.save ( purchase ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param purchase
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改", notes = "修改")
|
||||
@SysLog("修改")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody Purchase purchase) {
|
||||
return R.ok ( purchaseService.updateById ( purchase ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除", notes = "通过id删除")
|
||||
@SysLog("通过id删除")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok ( purchaseService.removeById ( handle ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param purchase 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@PostMapping("/export")
|
||||
public List<Purchase> export(@RequestBody List<Purchase> list) {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,187 @@
|
||||
package com.foreverwin.mom.pms.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
import com.foreverwin.mom.pms.dto.ErrorMsgDTO;
|
||||
import com.foreverwin.mom.pms.dto.ResrceExtDTO;
|
||||
import com.foreverwin.mom.pms.entity.ResrceExt;
|
||||
import com.foreverwin.mom.pms.service.ResrceExtService;
|
||||
import com.foreverwin.mom.common.core.util.R;
|
||||
import com.foreverwin.mom.common.excel.annotation.ResponseExcel;
|
||||
import com.foreverwin.mom.common.log.annotation.SysLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 资源主数据
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-07-30 15:47:18
|
||||
*/
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/resrceExt")
|
||||
@Api(value = "resrceExt", tags = "资源主数据管理")
|
||||
public class ResrceExtController {
|
||||
|
||||
private final ResrceExtService resrceExtService;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page 分页对象
|
||||
* @param resrce 资源主数据
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "分页查询", notes = "分页查询")
|
||||
@GetMapping("/page")
|
||||
public R getResrcePage(Page page, ResrceExtDTO resrce) {
|
||||
return R.ok ( resrceExtService.getPage ( page, resrce ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询资源主数据
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询")
|
||||
@GetMapping("/{handle}")
|
||||
public R getById(@PathVariable("handle") String handle) {
|
||||
return R.ok ( resrceExtService.getResrceExtByHandle ( handle ) );
|
||||
}
|
||||
|
||||
@ApiOperation(value = "所在工序开窗", notes = "所在工序开窗")
|
||||
@GetMapping("/getProcessPage")
|
||||
public R getProcessPage(Page page, String searchText) {
|
||||
return R.ok ( resrceExtService.getProcessPage ( page, searchText ) );
|
||||
}
|
||||
|
||||
@ApiOperation(value = "部门名称列表", notes = "部门名称列表")
|
||||
@GetMapping("/getDeptList")
|
||||
public R getDeptList() {
|
||||
return R.ok ( resrceExtService.getDeptList () );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资源主数据
|
||||
*
|
||||
* @param resrce 资源主数据
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "新增资源主数据", notes = "新增资源主数据")
|
||||
@SysLog("新增资源主数据")
|
||||
@PostMapping
|
||||
public R save(@RequestBody ResrceExt resrce) {
|
||||
return R.ok ( resrceExtService.saveResrceExt ( resrce ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改资源主数据
|
||||
*
|
||||
* @param resrce 资源主数据
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "修改资源主数据", notes = "修改资源主数据")
|
||||
@SysLog("修改资源主数据")
|
||||
@PutMapping
|
||||
public R updateById(@RequestBody ResrceExt resrce) {
|
||||
return R.ok ( resrceExtService.updateInfoById ( resrce ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除资源主数据
|
||||
*
|
||||
* @param handle id
|
||||
* @return R
|
||||
*/
|
||||
@ApiOperation(value = "通过id删除资源主数据", notes = "通过id删除资源主数据")
|
||||
@SysLog("通过id删除资源主数据")
|
||||
@DeleteMapping("/{handle}")
|
||||
public R removeById(@PathVariable String handle) {
|
||||
return R.ok ( resrceExtService.removeById ( handle ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据资源(工作中心/设备)获取工序
|
||||
*
|
||||
* @param resource 资源
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "根据资源(工作中心/设备)获取工序", notes = "根据资源(工作中心/设备)获取工序")
|
||||
@GetMapping("/getOperationByResource")
|
||||
public R getOperationByResource(String resource) {
|
||||
return R.ok ( resrceExtService.getOperationByResource ( resource ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel 表格
|
||||
*
|
||||
* @param resrce 查询条件
|
||||
* @return excel 文件流
|
||||
*/
|
||||
@ResponseExcel
|
||||
@GetMapping("/export")
|
||||
public List<ResrceExt> export(ResrceExt resrce) {
|
||||
return resrceExtService.list ( Wrappers.query ( resrce ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作文件附件上传
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/uploadFile")
|
||||
public R uploadFile(@RequestParam("file") MultipartFile file, String handle) {
|
||||
CommonAttachmentDTO commonAttachmentDTO = new CommonAttachmentDTO ();
|
||||
commonAttachmentDTO.setFile ( file );
|
||||
commonAttachmentDTO.setModelFunctionName ( "RESRCE_FILE" );
|
||||
String errorMsg = resrceExtService.uploadFile ( commonAttachmentDTO, handle );
|
||||
return R.ok ( errorMsg );
|
||||
}
|
||||
|
||||
@GetMapping("/downloadFile/{handle}")
|
||||
public R downloadFile(@PathVariable String handle) {
|
||||
return R.ok ( resrceExtService.downloadFile ( handle ) );
|
||||
}
|
||||
|
||||
@GetMapping("/downloadAttachment/{handle}")
|
||||
public void downloadAttachment(@PathVariable String handle, HttpServletResponse response) {
|
||||
resrceExtService.downloadAttachment ( handle, response );
|
||||
}
|
||||
|
||||
@GetMapping("/getPersonPage")
|
||||
public R getPersonPage(Page page, String name) {
|
||||
return R.ok ( resrceExtService.getPersonPage ( page, name ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 设备主数据导入
|
||||
* @param list
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "设备主数据导入", notes = "钢瓶台账导入")
|
||||
@PostMapping("/doImport")
|
||||
public R<List<ErrorMsgDTO>> doImport(@RequestBody List<ResrceExt> list){
|
||||
return R.ok(resrceExtService.doImport(list));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.entity.CheckOrder;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:45:47
|
||||
*/
|
||||
public interface CheckOrderService extends IService<CheckOrder> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
|
||||
import com.foreverwin.iep.common.file.domain.SmbFileInfo;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 通用文件上传服务-服务层
|
||||
*
|
||||
* @author huwei
|
||||
* @date 2023-10-17 09:30:02
|
||||
*/
|
||||
public interface CommonAttachmentService {
|
||||
|
||||
|
||||
/**
|
||||
* 文件上传
|
||||
*
|
||||
* @param commonAttachmentDTO 通用文件上传实体DTO
|
||||
* @return 返回上传成功后的文件实体信息
|
||||
*/
|
||||
CommonAttachmentDTO saveAttachment(CommonAttachmentDTO commonAttachmentDTO);
|
||||
|
||||
|
||||
/**
|
||||
* 文件删除
|
||||
*
|
||||
* @param remoteFileName 服务器端文件名称ID
|
||||
* @param modelFunctionName 功能模块名称(文件上传时以该名称为目录)
|
||||
*/
|
||||
void deleteAttachment(String remoteFileName, String modelFunctionName);
|
||||
|
||||
|
||||
/**
|
||||
* 文件下载
|
||||
*
|
||||
* @param remoteFileName 服务器端文件名称ID
|
||||
* @param modelFunctionName 功能模块名称(文件上传时以该名称为目录)
|
||||
* @return 返回对应base64
|
||||
*/
|
||||
CommonAttachmentDTO getAttachment(String remoteFileName, String modelFunctionName);
|
||||
|
||||
|
||||
/**
|
||||
* 获取文件上传服务配置信息
|
||||
* @param fileName 服务器端文件名称
|
||||
* @param modelFunctionName 对应文件存放目录名称
|
||||
* @return
|
||||
*/
|
||||
SmbFileInfo getSmbFileInfo(String fileName, String modelFunctionName);
|
||||
|
||||
|
||||
/**
|
||||
* 文件预览下载文件
|
||||
* @param modelFunctionName 对应文件存放目录名称
|
||||
* @param remoteFileName 服务器端文件名称
|
||||
* @param fileName 文件名称
|
||||
* @return
|
||||
*/
|
||||
void downloadAttachment(String modelFunctionName, String remoteFileName, String fileName, HttpServletResponse response);
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
|
||||
public interface DownloadService {
|
||||
CommonAttachmentDTO downloadFile(String model, String remoteFileName);
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrderDetail;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:46:17
|
||||
*/
|
||||
public interface InspectOrderDetailService extends IService<InspectOrderDetail> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.dto.CommonAttachmentDTO;
|
||||
import com.foreverwin.mom.pms.dto.InspectOrderDTO;
|
||||
import com.foreverwin.mom.pms.dto.InspectOrderExecuteDTO;
|
||||
import com.foreverwin.mom.pms.dto.PmsPatrolSheetExtDetallDTO;
|
||||
import com.foreverwin.mom.pms.entity.CheckOrder;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrder;
|
||||
import com.foreverwin.mom.pms.entity.PmsPatrolSheetExtDetall;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zyf
|
||||
* @date 2024-08-27 13:46:20
|
||||
*/
|
||||
public interface InspectOrderService extends IService<InspectOrder> {
|
||||
|
||||
IPage<InspectOrderDTO> getPage(Page page, InspectOrderDTO dto);
|
||||
|
||||
List<PmsPatrolSheetExtDetall> getDetailList(String handle);
|
||||
|
||||
Boolean executeOrder(InspectOrderExecuteDTO dto);
|
||||
|
||||
IPage<InspectOrderDTO> getCheckOrder(Page page, InspectOrderDTO dto);
|
||||
|
||||
List<PmsPatrolSheetExtDetallDTO> getCheckList(String handle);
|
||||
|
||||
CheckOrder getCheckOpinion(String handle);
|
||||
|
||||
IPage<InspectOrderDTO> getHistoryOrder(Page page, InspectOrderDTO dto);
|
||||
|
||||
List<InspectOrderDTO> exportHistoryOrder(InspectOrderDTO dto);
|
||||
|
||||
String uploadInspectImg(CommonAttachmentDTO commonAttachmentDTO);
|
||||
|
||||
Boolean checkList(List<InspectOrderDTO> list);
|
||||
|
||||
Boolean repairOrder(String handle);
|
||||
|
||||
String getRepairOrderStatus(String num);
|
||||
|
||||
IPage<InspectOrderDTO> getPageAndUpdate(Page page, InspectOrderDTO dto);
|
||||
|
||||
Boolean updateList(List<InspectOrderDTO> list);
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.entity.InspectOrderUpload;
|
||||
|
||||
/**
|
||||
* 点巡检完成附件上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:19:03
|
||||
*/
|
||||
public interface InspectOrderUploadService extends IService<InspectOrderUpload> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.entity.MaintenanceCheck;
|
||||
|
||||
/**
|
||||
* 保养工单工单验收表
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-23 13:59:58
|
||||
*/
|
||||
public interface MaintenanceCheckService extends IService<MaintenanceCheck> {
|
||||
|
||||
Boolean check(MaintenanceCheck maintenanceCheck);
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.entity.MeterSheet;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-08-29 13:53:38
|
||||
*/
|
||||
public interface MeterSheetService extends IService<MeterSheet> {
|
||||
|
||||
Boolean saveInfo(MeterSheet meterSheet);
|
||||
|
||||
Boolean startCheck(List<MeterSheet> list);
|
||||
|
||||
Boolean submitCheck(List<MeterSheet> list);
|
||||
|
||||
IPage<MeterSheet> getMeterSheetPage(Page page, MeterSheet meterSheet);
|
||||
|
||||
Boolean updateInfo(MeterSheet meterSheet);
|
||||
|
||||
// List<ErrorMsgDTO> doImport(List<MeterSheet> list);
|
||||
|
||||
Boolean removeInfoById(String handle);
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.foreverwin.mom.pms.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.foreverwin.mom.pms.entity.PmsEquipmentRepairUpload;
|
||||
|
||||
/**
|
||||
* 设备报修-附件上传
|
||||
*
|
||||
* @author zyf
|
||||
* @date 2024-11-26 15:18:36
|
||||
*/
|
||||
public interface PmsEquipmentRepairUploadService extends IService<PmsEquipmentRepairUpload> {
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user