巡检计划
parent
8e4a8bb12b
commit
54715aaf0b
@ -0,0 +1,11 @@
|
||||
#for test only!
|
||||
#Tue Oct 17 09:57:19 CST 2023
|
||||
jco.destination.pool_capacity=true
|
||||
jco.client.lang=zh
|
||||
jco.client.ashost=192.168.0.53
|
||||
jco.client.saprouter=
|
||||
jco.client.user=MES
|
||||
jco.client.sysnr=0
|
||||
jco.destination.peak_limit=20
|
||||
jco.client.passwd=123456
|
||||
jco.client.client=800
|
@ -0,0 +1,448 @@
|
||||
package com.op.device.domain;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备管理对象 base_equipment
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public class BaseEquipment extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备ID */
|
||||
private Long equipmentId;
|
||||
|
||||
/** 设备编码 */
|
||||
@Excel(name = "设备编码")
|
||||
private String equipmentCode;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
/** 品牌 */
|
||||
@Excel(name = "品牌")
|
||||
private String equipmentBrand;
|
||||
|
||||
/** 规格型号 */
|
||||
@Excel(name = "规格型号")
|
||||
private String equipmentSpec;
|
||||
|
||||
/** 设备类型ID */
|
||||
@Excel(name = "设备类型ID")
|
||||
private Long equipmentTypeId;
|
||||
|
||||
/** 设备类型编码 */
|
||||
@Excel(name = "设备类型编码")
|
||||
private String equipmentTypeCode;
|
||||
|
||||
/** 设备类型名称 */
|
||||
@Excel(name = "设备类型名称")
|
||||
private String equipmentTypeName;
|
||||
|
||||
/** 所属车间ID */
|
||||
@Excel(name = "所属车间ID")
|
||||
private Long workshopId;
|
||||
|
||||
/** 所属工作中心编码 */
|
||||
@Excel(name = "所属工作中心编码")
|
||||
private String workshopCode;
|
||||
|
||||
/** 所属工作中心名称 */
|
||||
@Excel(name = "所属工作中心名称")
|
||||
private String workshopName;
|
||||
|
||||
/** 设备状态,0异常 */
|
||||
@Excel(name = "设备状态,0异常")
|
||||
private String status;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private Long attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private Long attr4;
|
||||
|
||||
/** 工段 */
|
||||
@Excel(name = "工段")
|
||||
private String workshopSection;
|
||||
|
||||
/** 设备位置 */
|
||||
@Excel(name = "设备位置")
|
||||
private String equipmentLocation;
|
||||
|
||||
/** 工时单价 */
|
||||
@Excel(name = "工时单价")
|
||||
private Long hourlyUnitPrice;
|
||||
|
||||
/** 设备条码 */
|
||||
@Excel(name = "设备条码")
|
||||
private String equipmentBarcode;
|
||||
|
||||
/** 设备条码图片 */
|
||||
@Excel(name = "设备条码图片")
|
||||
private String equipmentBarcodeImage;
|
||||
|
||||
/** 生产厂商 */
|
||||
@Excel(name = "生产厂商")
|
||||
private String manufacturer;
|
||||
|
||||
/** 供应商 */
|
||||
@Excel(name = "供应商")
|
||||
private String supplier;
|
||||
|
||||
/** 使用寿命 */
|
||||
@Excel(name = "使用寿命")
|
||||
private String useLife;
|
||||
|
||||
/** 购买时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date buyTime;
|
||||
|
||||
/** 资产原值 */
|
||||
@Excel(name = "资产原值")
|
||||
private String assetOriginalValue;
|
||||
|
||||
/** 资产净值 */
|
||||
@Excel(name = "资产净值")
|
||||
private String netAssetValue;
|
||||
|
||||
/** 资产负责人 */
|
||||
@Excel(name = "资产负责人")
|
||||
private String assetHead;
|
||||
|
||||
/** 固定资产编码 */
|
||||
@Excel(name = "固定资产编码")
|
||||
private String fixedAssetCode;
|
||||
|
||||
/** 部门 */
|
||||
@Excel(name = "部门")
|
||||
private String department;
|
||||
|
||||
/** 单台能力工时 */
|
||||
@Excel(name = "单台能力工时")
|
||||
private String unitWorkingHours;
|
||||
|
||||
/** PLCIP */
|
||||
@Excel(name = "PLCIP")
|
||||
private String plcIp;
|
||||
|
||||
/** PLC端口 */
|
||||
@Excel(name = "PLC端口")
|
||||
private Long plcPort;
|
||||
|
||||
/** 删除标志1删除,0正常 */
|
||||
private String delFlag;
|
||||
|
||||
/** SAP资产号 */
|
||||
@Excel(name = "SAP资产号")
|
||||
private String sapAsset;
|
||||
|
||||
public void setEquipmentId(Long equipmentId) {
|
||||
this.equipmentId = equipmentId;
|
||||
}
|
||||
|
||||
public Long getEquipmentId() {
|
||||
return equipmentId;
|
||||
}
|
||||
public void setEquipmentCode(String equipmentCode) {
|
||||
this.equipmentCode = equipmentCode;
|
||||
}
|
||||
|
||||
public String getEquipmentCode() {
|
||||
return equipmentCode;
|
||||
}
|
||||
public void setEquipmentName(String equipmentName) {
|
||||
this.equipmentName = equipmentName;
|
||||
}
|
||||
|
||||
public String getEquipmentName() {
|
||||
return equipmentName;
|
||||
}
|
||||
public void setEquipmentBrand(String equipmentBrand) {
|
||||
this.equipmentBrand = equipmentBrand;
|
||||
}
|
||||
|
||||
public String getEquipmentBrand() {
|
||||
return equipmentBrand;
|
||||
}
|
||||
public void setEquipmentSpec(String equipmentSpec) {
|
||||
this.equipmentSpec = equipmentSpec;
|
||||
}
|
||||
|
||||
public String getEquipmentSpec() {
|
||||
return equipmentSpec;
|
||||
}
|
||||
public void setEquipmentTypeId(Long equipmentTypeId) {
|
||||
this.equipmentTypeId = equipmentTypeId;
|
||||
}
|
||||
|
||||
public Long getEquipmentTypeId() {
|
||||
return equipmentTypeId;
|
||||
}
|
||||
public void setEquipmentTypeCode(String equipmentTypeCode) {
|
||||
this.equipmentTypeCode = equipmentTypeCode;
|
||||
}
|
||||
|
||||
public String getEquipmentTypeCode() {
|
||||
return equipmentTypeCode;
|
||||
}
|
||||
public void setEquipmentTypeName(String equipmentTypeName) {
|
||||
this.equipmentTypeName = equipmentTypeName;
|
||||
}
|
||||
|
||||
public String getEquipmentTypeName() {
|
||||
return equipmentTypeName;
|
||||
}
|
||||
public void setWorkshopId(Long workshopId) {
|
||||
this.workshopId = workshopId;
|
||||
}
|
||||
|
||||
public Long getWorkshopId() {
|
||||
return workshopId;
|
||||
}
|
||||
public void setWorkshopCode(String workshopCode) {
|
||||
this.workshopCode = workshopCode;
|
||||
}
|
||||
|
||||
public String getWorkshopCode() {
|
||||
return workshopCode;
|
||||
}
|
||||
public void setWorkshopName(String workshopName) {
|
||||
this.workshopName = workshopName;
|
||||
}
|
||||
|
||||
public String getWorkshopName() {
|
||||
return workshopName;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(Long attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public Long getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(Long attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public Long getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setWorkshopSection(String workshopSection) {
|
||||
this.workshopSection = workshopSection;
|
||||
}
|
||||
|
||||
public String getWorkshopSection() {
|
||||
return workshopSection;
|
||||
}
|
||||
public void setEquipmentLocation(String equipmentLocation) {
|
||||
this.equipmentLocation = equipmentLocation;
|
||||
}
|
||||
|
||||
public String getEquipmentLocation() {
|
||||
return equipmentLocation;
|
||||
}
|
||||
public void setHourlyUnitPrice(Long hourlyUnitPrice) {
|
||||
this.hourlyUnitPrice = hourlyUnitPrice;
|
||||
}
|
||||
|
||||
public Long getHourlyUnitPrice() {
|
||||
return hourlyUnitPrice;
|
||||
}
|
||||
public void setEquipmentBarcode(String equipmentBarcode) {
|
||||
this.equipmentBarcode = equipmentBarcode;
|
||||
}
|
||||
|
||||
public String getEquipmentBarcode() {
|
||||
return equipmentBarcode;
|
||||
}
|
||||
public void setEquipmentBarcodeImage(String equipmentBarcodeImage) {
|
||||
this.equipmentBarcodeImage = equipmentBarcodeImage;
|
||||
}
|
||||
|
||||
public String getEquipmentBarcodeImage() {
|
||||
return equipmentBarcodeImage;
|
||||
}
|
||||
public void setManufacturer(String manufacturer) {
|
||||
this.manufacturer = manufacturer;
|
||||
}
|
||||
|
||||
public String getManufacturer() {
|
||||
return manufacturer;
|
||||
}
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
public void setUseLife(String useLife) {
|
||||
this.useLife = useLife;
|
||||
}
|
||||
|
||||
public String getUseLife() {
|
||||
return useLife;
|
||||
}
|
||||
public void setBuyTime(Date buyTime) {
|
||||
this.buyTime = buyTime;
|
||||
}
|
||||
|
||||
public Date getBuyTime() {
|
||||
return buyTime;
|
||||
}
|
||||
public void setAssetOriginalValue(String assetOriginalValue) {
|
||||
this.assetOriginalValue = assetOriginalValue;
|
||||
}
|
||||
|
||||
public String getAssetOriginalValue() {
|
||||
return assetOriginalValue;
|
||||
}
|
||||
public void setNetAssetValue(String netAssetValue) {
|
||||
this.netAssetValue = netAssetValue;
|
||||
}
|
||||
|
||||
public String getNetAssetValue() {
|
||||
return netAssetValue;
|
||||
}
|
||||
public void setAssetHead(String assetHead) {
|
||||
this.assetHead = assetHead;
|
||||
}
|
||||
|
||||
public String getAssetHead() {
|
||||
return assetHead;
|
||||
}
|
||||
public void setFixedAssetCode(String fixedAssetCode) {
|
||||
this.fixedAssetCode = fixedAssetCode;
|
||||
}
|
||||
|
||||
public String getFixedAssetCode() {
|
||||
return fixedAssetCode;
|
||||
}
|
||||
public void setDepartment(String department) {
|
||||
this.department = department;
|
||||
}
|
||||
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
public void setUnitWorkingHours(String unitWorkingHours) {
|
||||
this.unitWorkingHours = unitWorkingHours;
|
||||
}
|
||||
|
||||
public String getUnitWorkingHours() {
|
||||
return unitWorkingHours;
|
||||
}
|
||||
public void setPlcIp(String plcIp) {
|
||||
this.plcIp = plcIp;
|
||||
}
|
||||
|
||||
public String getPlcIp() {
|
||||
return plcIp;
|
||||
}
|
||||
public void setPlcPort(Long plcPort) {
|
||||
this.plcPort = plcPort;
|
||||
}
|
||||
|
||||
public Long getPlcPort() {
|
||||
return plcPort;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
public void setSapAsset(String sapAsset) {
|
||||
this.sapAsset = sapAsset;
|
||||
}
|
||||
|
||||
public String getSapAsset() {
|
||||
return sapAsset;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("equipmentId", getEquipmentId())
|
||||
.append("equipmentCode", getEquipmentCode())
|
||||
.append("equipmentName", getEquipmentName())
|
||||
.append("equipmentBrand", getEquipmentBrand())
|
||||
.append("equipmentSpec", getEquipmentSpec())
|
||||
.append("equipmentTypeId", getEquipmentTypeId())
|
||||
.append("equipmentTypeCode", getEquipmentTypeCode())
|
||||
.append("equipmentTypeName", getEquipmentTypeName())
|
||||
.append("workshopId", getWorkshopId())
|
||||
.append("workshopCode", getWorkshopCode())
|
||||
.append("workshopName", getWorkshopName())
|
||||
.append("status", getStatus())
|
||||
.append("remark", getRemark())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("workshopSection", getWorkshopSection())
|
||||
.append("equipmentLocation", getEquipmentLocation())
|
||||
.append("hourlyUnitPrice", getHourlyUnitPrice())
|
||||
.append("equipmentBarcode", getEquipmentBarcode())
|
||||
.append("equipmentBarcodeImage", getEquipmentBarcodeImage())
|
||||
.append("manufacturer", getManufacturer())
|
||||
.append("supplier", getSupplier())
|
||||
.append("useLife", getUseLife())
|
||||
.append("buyTime", getBuyTime())
|
||||
.append("assetOriginalValue", getAssetOriginalValue())
|
||||
.append("netAssetValue", getNetAssetValue())
|
||||
.append("assetHead", getAssetHead())
|
||||
.append("fixedAssetCode", getFixedAssetCode())
|
||||
.append("department", getDepartment())
|
||||
.append("unitWorkingHours", getUnitWorkingHours())
|
||||
.append("plcIp", getPlcIp())
|
||||
.append("plcPort", getPlcPort())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("sapAsset", getSapAsset())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,218 @@
|
||||
package com.op.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计划详情-检查项信息对象 equ_plan_detail
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public class EquPlanDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 详情编码 */
|
||||
@Excel(name = "详情编码")
|
||||
private String code;
|
||||
|
||||
/** 计划id */
|
||||
@Excel(name = "计划id")
|
||||
private String planId;
|
||||
|
||||
/** 关联上级表单 */
|
||||
@Excel(name = "关联上级表单")
|
||||
private String parentCode;
|
||||
|
||||
/** 检查项编码 */
|
||||
@Excel(name = "检查项编码")
|
||||
private String itemCode;
|
||||
|
||||
/** 检查项名称 */
|
||||
@Excel(name = "检查项名称")
|
||||
private String itemName;
|
||||
|
||||
/** 检查项方法/工具 */
|
||||
@Excel(name = "检查项方法/工具")
|
||||
private String itemMethod;
|
||||
|
||||
/** 维护类型编码 */
|
||||
@Excel(name = "维护类型编码")
|
||||
private String itemType;
|
||||
|
||||
/** 维护类型名称 */
|
||||
@Excel(name = "维护类型名称")
|
||||
private String itemTypeName;
|
||||
|
||||
/** 检查项备注 */
|
||||
@Excel(name = "检查项备注")
|
||||
private String itemRemark;
|
||||
|
||||
/** 工厂 */
|
||||
@Excel(name = "工厂")
|
||||
private String factoryCode;
|
||||
|
||||
/** 备用字段1 */
|
||||
@Excel(name = "备用字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 备用字段2 */
|
||||
@Excel(name = "备用字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 备用字段3 */
|
||||
@Excel(name = "备用字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
// 关联-检查项->检查详情list
|
||||
private List<EquPlanStandard> equPlanStandardList;
|
||||
|
||||
public List<EquPlanStandard> getEquPlanStandardList() {
|
||||
return equPlanStandardList;
|
||||
}
|
||||
|
||||
public void setEquPlanStandardList(List<EquPlanStandard> equPlanStandardList) {
|
||||
this.equPlanStandardList = equPlanStandardList;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
public void setPlanId(String planId) {
|
||||
this.planId = planId;
|
||||
}
|
||||
|
||||
public String getPlanId() {
|
||||
return planId;
|
||||
}
|
||||
public void setParentCode(String parentCode) {
|
||||
this.parentCode = parentCode;
|
||||
}
|
||||
|
||||
public String getParentCode() {
|
||||
return parentCode;
|
||||
}
|
||||
public void setItemCode(String itemCode) {
|
||||
this.itemCode = itemCode;
|
||||
}
|
||||
|
||||
public String getItemCode() {
|
||||
return itemCode;
|
||||
}
|
||||
public void setItemName(String itemName) {
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
public void setItemMethod(String itemMethod) {
|
||||
this.itemMethod = itemMethod;
|
||||
}
|
||||
|
||||
public String getItemMethod() {
|
||||
return itemMethod;
|
||||
}
|
||||
public void setItemType(String itemType) {
|
||||
this.itemType = itemType;
|
||||
}
|
||||
|
||||
public String getItemType() {
|
||||
return itemType;
|
||||
}
|
||||
public void setItemTypeName(String itemTypeName) {
|
||||
this.itemTypeName = itemTypeName;
|
||||
}
|
||||
|
||||
public String getItemTypeName() {
|
||||
return itemTypeName;
|
||||
}
|
||||
public void setItemRemark(String itemRemark) {
|
||||
this.itemRemark = itemRemark;
|
||||
}
|
||||
|
||||
public String getItemRemark() {
|
||||
return itemRemark;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("planId", getPlanId())
|
||||
.append("parentCode", getParentCode())
|
||||
.append("itemCode", getItemCode())
|
||||
.append("itemName", getItemName())
|
||||
.append("itemMethod", getItemMethod())
|
||||
.append("itemType", getItemType())
|
||||
.append("itemTypeName", getItemTypeName())
|
||||
.append("itemRemark", getItemRemark())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,158 @@
|
||||
package com.op.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计划详情-设备对象 equ_plan_equ
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public class EquPlanEqu extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 计划详情-设备编码 */
|
||||
@Excel(name = "计划详情-设备编码")
|
||||
private String code;
|
||||
|
||||
/** 关联上级表单 */
|
||||
@Excel(name = "关联上级表单")
|
||||
private String parentCode;
|
||||
|
||||
/** 设备编码 */
|
||||
@Excel(name = "设备编码")
|
||||
private String equipmentCode;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
/** 工厂 */
|
||||
@Excel(name = "工厂")
|
||||
private String factoryCode;
|
||||
|
||||
/** 备用字段1 */
|
||||
@Excel(name = "备用字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 备用字段2 */
|
||||
@Excel(name = "备用字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 备用字段3 */
|
||||
@Excel(name = "备用字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 删除标识 */
|
||||
private String delFlag;
|
||||
|
||||
// 关联-设备->检查项list
|
||||
private List<EquPlanDetail> equPlanDetailList;
|
||||
|
||||
public List<EquPlanDetail> getEquPlanDetailList() {
|
||||
return equPlanDetailList;
|
||||
}
|
||||
|
||||
public void setEquPlanDetailList(List<EquPlanDetail> equPlanDetailList) {
|
||||
this.equPlanDetailList = equPlanDetailList;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
public void setParentCode(String parentCode) {
|
||||
this.parentCode = parentCode;
|
||||
}
|
||||
|
||||
public String getParentCode() {
|
||||
return parentCode;
|
||||
}
|
||||
public void setEquipmentCode(String equipmentCode) {
|
||||
this.equipmentCode = equipmentCode;
|
||||
}
|
||||
|
||||
public String getEquipmentCode() {
|
||||
return equipmentCode;
|
||||
}
|
||||
public void setEquipmentName(String equipmentName) {
|
||||
this.equipmentName = equipmentName;
|
||||
}
|
||||
|
||||
public String getEquipmentName() {
|
||||
return equipmentName;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("parentCode", getParentCode())
|
||||
.append("equipmentCode", getEquipmentCode())
|
||||
.append("equipmentName", getEquipmentName())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,194 @@
|
||||
package com.op.device.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 计划详情-标准信息对象 equ_plan_standard
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public class EquPlanStandard extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
private String code;
|
||||
|
||||
/** 关联上级表单 */
|
||||
@Excel(name = "关联上级表单")
|
||||
private String parentCode;
|
||||
|
||||
/** 检查项编码 */
|
||||
@Excel(name = "检查项编码")
|
||||
private String detailCode;
|
||||
|
||||
/** 标准类型 */
|
||||
@Excel(name = "标准类型")
|
||||
private String standardType;
|
||||
|
||||
/** 标准名称 */
|
||||
@Excel(name = "标准名称")
|
||||
private String standardName;
|
||||
|
||||
/** 上限 */
|
||||
@Excel(name = "上限")
|
||||
private BigDecimal detailUpLimit;
|
||||
|
||||
/** 下限 */
|
||||
@Excel(name = "下限")
|
||||
private BigDecimal detailDownLimit;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String detailUnit;
|
||||
|
||||
/** 工厂 */
|
||||
@Excel(name = "工厂")
|
||||
private String factoryCode;
|
||||
|
||||
/** 备用字段1 */
|
||||
@Excel(name = "备用字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 备用字段2 */
|
||||
@Excel(name = "备用字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 备用字段3 */
|
||||
@Excel(name = "备用字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 删除标识 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
public void setParentCode(String parentCode) {
|
||||
this.parentCode = parentCode;
|
||||
}
|
||||
|
||||
public String getParentCode() {
|
||||
return parentCode;
|
||||
}
|
||||
public void setDetailCode(String detailCode) {
|
||||
this.detailCode = detailCode;
|
||||
}
|
||||
|
||||
public String getDetailCode() {
|
||||
return detailCode;
|
||||
}
|
||||
public void setStandardType(String standardType) {
|
||||
this.standardType = standardType;
|
||||
}
|
||||
|
||||
public String getStandardType() {
|
||||
return standardType;
|
||||
}
|
||||
public void setStandardName(String standardName) {
|
||||
this.standardName = standardName;
|
||||
}
|
||||
|
||||
public String getStandardName() {
|
||||
return standardName;
|
||||
}
|
||||
public void setDetailUpLimit(BigDecimal detailUpLimit) {
|
||||
this.detailUpLimit = detailUpLimit;
|
||||
}
|
||||
|
||||
public BigDecimal getDetailUpLimit() {
|
||||
return detailUpLimit;
|
||||
}
|
||||
public void setDetailDownLimit(BigDecimal detailDownLimit) {
|
||||
this.detailDownLimit = detailDownLimit;
|
||||
}
|
||||
|
||||
public BigDecimal getDetailDownLimit() {
|
||||
return detailDownLimit;
|
||||
}
|
||||
public void setDetailUnit(String detailUnit) {
|
||||
this.detailUnit = detailUnit;
|
||||
}
|
||||
|
||||
public String getDetailUnit() {
|
||||
return detailUnit;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("code", getCode())
|
||||
.append("parentCode", getParentCode())
|
||||
.append("detailCode", getDetailCode())
|
||||
.append("standardType", getStandardType())
|
||||
.append("standardName", getStandardName())
|
||||
.append("detailUpLimit", getDetailUpLimit())
|
||||
.append("detailDownLimit", getDetailDownLimit())
|
||||
.append("detailUnit", getDetailUnit())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,319 @@
|
||||
package com.op.device.domain.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
// 巡检计划DTO
|
||||
public class InspectionPlanDTO {
|
||||
/** 主键 */
|
||||
private String planId;
|
||||
|
||||
/** 计划编码 */
|
||||
private String planCode;
|
||||
|
||||
/** 计划名称 */
|
||||
private String planName;
|
||||
|
||||
/** 车间 */
|
||||
private String planWorkshop;
|
||||
|
||||
/** 产线 */
|
||||
private String planProdLine;
|
||||
|
||||
/** 设备名称 */
|
||||
private String equipmentName;
|
||||
|
||||
/** 设备编码 */
|
||||
private String equipmentCode;
|
||||
|
||||
/** 循环周期 */
|
||||
private String planLoop;
|
||||
|
||||
/** 循环周期类型 */
|
||||
private String planLoopType;
|
||||
|
||||
/** 循环执行时间开始 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date planLoopStart;
|
||||
|
||||
/** 循环执行时间结束 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date planLoopEnd;
|
||||
|
||||
/** 巡检人员 */
|
||||
private String planPerson;
|
||||
|
||||
/** 计划状态 */
|
||||
private String planStatus;
|
||||
|
||||
/** 是否可生产-限制 */
|
||||
private String planRestrict;
|
||||
|
||||
/** 维护类型 */
|
||||
private String planType;
|
||||
|
||||
/** 是否委外 */
|
||||
private String planOutsource;
|
||||
|
||||
/** 委外工单编码 */
|
||||
private String workCode;
|
||||
|
||||
/** 工厂 */
|
||||
private String factoryCode;
|
||||
|
||||
/** 备用字段1 */
|
||||
private String attr1;
|
||||
|
||||
/** 备用字段2 */
|
||||
private String attr2;
|
||||
|
||||
/** 备用字段3 */
|
||||
private String attr3;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
// 创建日期范围list
|
||||
private List<Date> createTimeArray;
|
||||
|
||||
// 更新日期范围list
|
||||
private List<Date> updateTimeArray;
|
||||
|
||||
// 更新日期开始
|
||||
private String updateTimeStart;
|
||||
|
||||
// 更新日期结束
|
||||
private String updateTimeEnd;
|
||||
|
||||
// 创建日期开始
|
||||
private String createTimeStart;
|
||||
|
||||
// 创建日期结束
|
||||
private String createTimeEnd;
|
||||
|
||||
public String getPlanId() {
|
||||
return planId;
|
||||
}
|
||||
|
||||
public void setPlanId(String planId) {
|
||||
this.planId = planId;
|
||||
}
|
||||
|
||||
public String getPlanCode() {
|
||||
return planCode;
|
||||
}
|
||||
|
||||
public void setPlanCode(String planCode) {
|
||||
this.planCode = planCode;
|
||||
}
|
||||
|
||||
public String getPlanName() {
|
||||
return planName;
|
||||
}
|
||||
|
||||
public void setPlanName(String planName) {
|
||||
this.planName = planName;
|
||||
}
|
||||
|
||||
public String getPlanWorkshop() {
|
||||
return planWorkshop;
|
||||
}
|
||||
|
||||
public void setPlanWorkshop(String planWorkshop) {
|
||||
this.planWorkshop = planWorkshop;
|
||||
}
|
||||
|
||||
public String getPlanProdLine() {
|
||||
return planProdLine;
|
||||
}
|
||||
|
||||
public void setPlanProdLine(String planProdLine) {
|
||||
this.planProdLine = planProdLine;
|
||||
}
|
||||
|
||||
public String getEquipmentName() {
|
||||
return equipmentName;
|
||||
}
|
||||
|
||||
public void setEquipmentName(String equipmentName) {
|
||||
this.equipmentName = equipmentName;
|
||||
}
|
||||
|
||||
public String getEquipmentCode() {
|
||||
return equipmentCode;
|
||||
}
|
||||
|
||||
public void setEquipmentCode(String equipmentCode) {
|
||||
this.equipmentCode = equipmentCode;
|
||||
}
|
||||
|
||||
public String getPlanLoop() {
|
||||
return planLoop;
|
||||
}
|
||||
|
||||
public void setPlanLoop(String planLoop) {
|
||||
this.planLoop = planLoop;
|
||||
}
|
||||
|
||||
public String getPlanLoopType() {
|
||||
return planLoopType;
|
||||
}
|
||||
|
||||
public void setPlanLoopType(String planLoopType) {
|
||||
this.planLoopType = planLoopType;
|
||||
}
|
||||
|
||||
public Date getPlanLoopStart() {
|
||||
return planLoopStart;
|
||||
}
|
||||
|
||||
public void setPlanLoopStart(Date planLoopStart) {
|
||||
this.planLoopStart = planLoopStart;
|
||||
}
|
||||
|
||||
public Date getPlanLoopEnd() {
|
||||
return planLoopEnd;
|
||||
}
|
||||
|
||||
public void setPlanLoopEnd(Date planLoopEnd) {
|
||||
this.planLoopEnd = planLoopEnd;
|
||||
}
|
||||
|
||||
public String getPlanPerson() {
|
||||
return planPerson;
|
||||
}
|
||||
|
||||
public void setPlanPerson(String planPerson) {
|
||||
this.planPerson = planPerson;
|
||||
}
|
||||
|
||||
public String getPlanStatus() {
|
||||
return planStatus;
|
||||
}
|
||||
|
||||
public void setPlanStatus(String planStatus) {
|
||||
this.planStatus = planStatus;
|
||||
}
|
||||
|
||||
public String getPlanRestrict() {
|
||||
return planRestrict;
|
||||
}
|
||||
|
||||
public void setPlanRestrict(String planRestrict) {
|
||||
this.planRestrict = planRestrict;
|
||||
}
|
||||
|
||||
public String getPlanType() {
|
||||
return planType;
|
||||
}
|
||||
|
||||
public void setPlanType(String planType) {
|
||||
this.planType = planType;
|
||||
}
|
||||
|
||||
public String getPlanOutsource() {
|
||||
return planOutsource;
|
||||
}
|
||||
|
||||
public void setPlanOutsource(String planOutsource) {
|
||||
this.planOutsource = planOutsource;
|
||||
}
|
||||
|
||||
public String getWorkCode() {
|
||||
return workCode;
|
||||
}
|
||||
|
||||
public void setWorkCode(String workCode) {
|
||||
this.workCode = workCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public List<Date> getCreateTimeArray() {
|
||||
return createTimeArray;
|
||||
}
|
||||
|
||||
public void setCreateTimeArray(List<Date> createTimeArray) {
|
||||
this.createTimeArray = createTimeArray;
|
||||
}
|
||||
|
||||
public List<Date> getUpdateTimeArray() {
|
||||
return updateTimeArray;
|
||||
}
|
||||
|
||||
public void setUpdateTimeArray(List<Date> updateTimeArray) {
|
||||
this.updateTimeArray = updateTimeArray;
|
||||
}
|
||||
|
||||
public String getUpdateTimeStart() {
|
||||
return updateTimeStart;
|
||||
}
|
||||
|
||||
public void setUpdateTimeStart(String updateTimeStart) {
|
||||
this.updateTimeStart = updateTimeStart;
|
||||
}
|
||||
|
||||
public String getUpdateTimeEnd() {
|
||||
return updateTimeEnd;
|
||||
}
|
||||
|
||||
public void setUpdateTimeEnd(String updateTimeEnd) {
|
||||
this.updateTimeEnd = updateTimeEnd;
|
||||
}
|
||||
|
||||
public String getCreateTimeStart() {
|
||||
return createTimeStart;
|
||||
}
|
||||
|
||||
public void setCreateTimeStart(String createTimeStart) {
|
||||
this.createTimeStart = createTimeStart;
|
||||
}
|
||||
|
||||
public String getCreateTimeEnd() {
|
||||
return createTimeEnd;
|
||||
}
|
||||
|
||||
public void setCreateTimeEnd(String createTimeEnd) {
|
||||
this.createTimeEnd = createTimeEnd;
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.op.device.domain.vo;
|
||||
|
||||
// 巡检计划VO
|
||||
public class InspectionPlanVO {
|
||||
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import com.op.device.domain.BaseEquipment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public interface BaseEquipmentMapper {
|
||||
/**
|
||||
* 查询设备管理
|
||||
*
|
||||
* @param equipmentId 设备管理主键
|
||||
* @return 设备管理
|
||||
*/
|
||||
public BaseEquipment selectBaseEquipmentByEquipmentId(Long equipmentId);
|
||||
|
||||
/**
|
||||
* 查询设备管理列表
|
||||
*
|
||||
* @param baseEquipment 设备管理
|
||||
* @return 设备管理集合
|
||||
*/
|
||||
public List<BaseEquipment> selectBaseEquipmentList(BaseEquipment baseEquipment);
|
||||
|
||||
/**
|
||||
* 新增设备管理
|
||||
*
|
||||
* @param baseEquipment 设备管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseEquipment(BaseEquipment baseEquipment);
|
||||
|
||||
/**
|
||||
* 修改设备管理
|
||||
*
|
||||
* @param baseEquipment 设备管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseEquipment(BaseEquipment baseEquipment);
|
||||
|
||||
/**
|
||||
* 删除设备管理
|
||||
*
|
||||
* @param equipmentId 设备管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseEquipmentByEquipmentId(Long equipmentId);
|
||||
|
||||
/**
|
||||
* 批量删除设备管理
|
||||
*
|
||||
* @param equipmentIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseEquipmentByEquipmentIds(Long[] equipmentIds);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquPlanDetail;
|
||||
|
||||
/**
|
||||
* 计划详情-检查项信息Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public interface EquPlanDetailMapper {
|
||||
/**
|
||||
* 查询计划详情-检查项信息
|
||||
*
|
||||
* @param id 计划详情-检查项信息主键
|
||||
* @return 计划详情-检查项信息
|
||||
*/
|
||||
public EquPlanDetail selectEquPlanDetailById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划详情-检查项信息列表
|
||||
*
|
||||
* @param equPlanDetail 计划详情-检查项信息
|
||||
* @return 计划详情-检查项信息集合
|
||||
*/
|
||||
public List<EquPlanDetail> selectEquPlanDetailList(EquPlanDetail equPlanDetail);
|
||||
|
||||
/**
|
||||
* 新增计划详情-检查项信息
|
||||
*
|
||||
* @param equPlanDetail 计划详情-检查项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquPlanDetail(EquPlanDetail equPlanDetail);
|
||||
|
||||
/**
|
||||
* 修改计划详情-检查项信息
|
||||
*
|
||||
* @param equPlanDetail 计划详情-检查项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquPlanDetail(EquPlanDetail equPlanDetail);
|
||||
|
||||
/**
|
||||
* 删除计划详情-检查项信息
|
||||
*
|
||||
* @param id 计划详情-检查项信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquPlanDetailById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划详情-检查项信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquPlanDetailByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquPlanEqu;
|
||||
|
||||
/**
|
||||
* 计划详情-设备Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public interface EquPlanEquMapper {
|
||||
/**
|
||||
* 查询计划详情-设备
|
||||
*
|
||||
* @param id 计划详情-设备主键
|
||||
* @return 计划详情-设备
|
||||
*/
|
||||
public EquPlanEqu selectEquPlanEquById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划详情-设备列表
|
||||
*
|
||||
* @param equPlanEqu 计划详情-设备
|
||||
* @return 计划详情-设备集合
|
||||
*/
|
||||
public List<EquPlanEqu> selectEquPlanEquList(EquPlanEqu equPlanEqu);
|
||||
|
||||
/**
|
||||
* 新增计划详情-设备
|
||||
*
|
||||
* @param equPlanEqu 计划详情-设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquPlanEqu(EquPlanEqu equPlanEqu);
|
||||
|
||||
/**
|
||||
* 修改计划详情-设备
|
||||
*
|
||||
* @param equPlanEqu 计划详情-设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquPlanEqu(EquPlanEqu equPlanEqu);
|
||||
|
||||
/**
|
||||
* 删除计划详情-设备
|
||||
*
|
||||
* @param id 计划详情-设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquPlanEquById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划详情-设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquPlanEquByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquPlanStandard;
|
||||
|
||||
/**
|
||||
* 计划详情-标准信息Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-17
|
||||
*/
|
||||
public interface EquPlanStandardMapper {
|
||||
/**
|
||||
* 查询计划详情-标准信息
|
||||
*
|
||||
* @param id 计划详情-标准信息主键
|
||||
* @return 计划详情-标准信息
|
||||
*/
|
||||
public EquPlanStandard selectEquPlanStandardById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划详情-标准信息列表
|
||||
*
|
||||
* @param equPlanStandard 计划详情-标准信息
|
||||
* @return 计划详情-标准信息集合
|
||||
*/
|
||||
public List<EquPlanStandard> selectEquPlanStandardList(EquPlanStandard equPlanStandard);
|
||||
|
||||
/**
|
||||
* 新增计划详情-标准信息
|
||||
*
|
||||
* @param equPlanStandard 计划详情-标准信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquPlanStandard(EquPlanStandard equPlanStandard);
|
||||
|
||||
/**
|
||||
* 修改计划详情-标准信息
|
||||
*
|
||||
* @param equPlanStandard 计划详情-标准信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquPlanStandard(EquPlanStandard equPlanStandard);
|
||||
|
||||
/**
|
||||
* 删除计划详情-标准信息
|
||||
*
|
||||
* @param id 计划详情-标准信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquPlanStandardById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划详情-标准信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquPlanStandardByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,242 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.device.mapper.BaseEquipmentMapper">
|
||||
|
||||
<resultMap type="BaseEquipment" id="BaseEquipmentResult">
|
||||
<result property="equipmentId" column="equipment_id" />
|
||||
<result property="equipmentCode" column="equipment_code" />
|
||||
<result property="equipmentName" column="equipment_name" />
|
||||
<result property="equipmentBrand" column="equipment_brand" />
|
||||
<result property="equipmentSpec" column="equipment_spec" />
|
||||
<result property="equipmentTypeId" column="equipment_type_id" />
|
||||
<result property="equipmentTypeCode" column="equipment_type_code" />
|
||||
<result property="equipmentTypeName" column="equipment_type_name" />
|
||||
<result property="workshopId" column="workshop_id" />
|
||||
<result property="workshopCode" column="workshop_code" />
|
||||
<result property="workshopName" column="workshop_name" />
|
||||
<result property="status" column="status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="workshopSection" column="workshop_section" />
|
||||
<result property="equipmentLocation" column="equipment_location" />
|
||||
<result property="hourlyUnitPrice" column="hourly_unit_price" />
|
||||
<result property="equipmentBarcode" column="equipment_barcode" />
|
||||
<result property="equipmentBarcodeImage" column="equipment_barcode_image" />
|
||||
<result property="manufacturer" column="manufacturer" />
|
||||
<result property="supplier" column="supplier" />
|
||||
<result property="useLife" column="use_life" />
|
||||
<result property="buyTime" column="buy_time" />
|
||||
<result property="assetOriginalValue" column="asset_original_value" />
|
||||
<result property="netAssetValue" column="net_asset_value" />
|
||||
<result property="assetHead" column="asset_head" />
|
||||
<result property="fixedAssetCode" column="fixed_asset_code" />
|
||||
<result property="department" column="department" />
|
||||
<result property="unitWorkingHours" column="unit_working_hours" />
|
||||
<result property="plcIp" column="plc_ip" />
|
||||
<result property="plcPort" column="plc_port" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="sapAsset" column="sap_asset" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseEquipmentVo">
|
||||
select equipment_id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_id, workshop_code, workshop_name, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, workshop_section, equipment_location, hourly_unit_price, equipment_barcode, equipment_barcode_image, manufacturer, supplier, use_life, buy_time, asset_original_value, net_asset_value, asset_head, fixed_asset_code, department, unit_working_hours, plc_ip, plc_port, del_flag, sap_asset from base_equipment
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseEquipmentList" parameterType="BaseEquipment" resultMap="BaseEquipmentResult">
|
||||
<include refid="selectBaseEquipmentVo"/>
|
||||
<where>
|
||||
<if test="equipmentCode != null and equipmentCode != ''"> and equipment_code like concat('%', #{equipmentCode}, '%')</if>
|
||||
<if test="equipmentName != null and equipmentName != ''"> and equipment_name like concat('%', #{equipmentName}, '%')</if>
|
||||
<if test="equipmentBrand != null and equipmentBrand != ''"> and equipment_brand = #{equipmentBrand}</if>
|
||||
<if test="equipmentSpec != null and equipmentSpec != ''"> and equipment_spec = #{equipmentSpec}</if>
|
||||
<if test="equipmentTypeId != null "> and equipment_type_id = #{equipmentTypeId}</if>
|
||||
<if test="equipmentTypeCode != null and equipmentTypeCode != ''"> and equipment_type_code = #{equipmentTypeCode}</if>
|
||||
<if test="equipmentTypeName != null and equipmentTypeName != ''"> and equipment_type_name like concat('%', #{equipmentTypeName}, '%')</if>
|
||||
<if test="workshopId != null "> and workshop_id = #{workshopId}</if>
|
||||
<if test="workshopCode != null and workshopCode != ''"> and workshop_code = #{workshopCode}</if>
|
||||
<if test="workshopName != null and workshopName != ''"> and workshop_name like concat('%', #{workshopName}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null "> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null "> and attr4 = #{attr4}</if>
|
||||
<if test="workshopSection != null and workshopSection != ''"> and workshop_section = #{workshopSection}</if>
|
||||
<if test="equipmentLocation != null and equipmentLocation != ''"> and equipment_location = #{equipmentLocation}</if>
|
||||
<if test="hourlyUnitPrice != null "> and hourly_unit_price = #{hourlyUnitPrice}</if>
|
||||
<if test="equipmentBarcode != null and equipmentBarcode != ''"> and equipment_barcode = #{equipmentBarcode}</if>
|
||||
<if test="equipmentBarcodeImage != null and equipmentBarcodeImage != ''"> and equipment_barcode_image = #{equipmentBarcodeImage}</if>
|
||||
<if test="manufacturer != null and manufacturer != ''"> and manufacturer = #{manufacturer}</if>
|
||||
<if test="supplier != null and supplier != ''"> and supplier = #{supplier}</if>
|
||||
<if test="useLife != null and useLife != ''"> and use_life = #{useLife}</if>
|
||||
<if test="buyTime != null "> and buy_time = #{buyTime}</if>
|
||||
<if test="assetOriginalValue != null and assetOriginalValue != ''"> and asset_original_value = #{assetOriginalValue}</if>
|
||||
<if test="netAssetValue != null and netAssetValue != ''"> and net_asset_value = #{netAssetValue}</if>
|
||||
<if test="assetHead != null and assetHead != ''"> and asset_head = #{assetHead}</if>
|
||||
<if test="fixedAssetCode != null and fixedAssetCode != ''"> and fixed_asset_code = #{fixedAssetCode}</if>
|
||||
<if test="department != null and department != ''"> and department = #{department}</if>
|
||||
<if test="unitWorkingHours != null and unitWorkingHours != ''"> and unit_working_hours = #{unitWorkingHours}</if>
|
||||
<if test="plcIp != null and plcIp != ''"> and plc_ip = #{plcIp}</if>
|
||||
<if test="plcPort != null "> and plc_port = #{plcPort}</if>
|
||||
<if test="sapAsset != null and sapAsset != ''"> and sap_asset = #{sapAsset}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseEquipmentByEquipmentId" parameterType="Long" resultMap="BaseEquipmentResult">
|
||||
<include refid="selectBaseEquipmentVo"/>
|
||||
where equipment_id = #{equipmentId}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseEquipment" parameterType="BaseEquipment">
|
||||
insert into base_equipment
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="equipmentId != null">equipment_id,</if>
|
||||
<if test="equipmentCode != null">equipment_code,</if>
|
||||
<if test="equipmentName != null">equipment_name,</if>
|
||||
<if test="equipmentBrand != null">equipment_brand,</if>
|
||||
<if test="equipmentSpec != null">equipment_spec,</if>
|
||||
<if test="equipmentTypeId != null">equipment_type_id,</if>
|
||||
<if test="equipmentTypeCode != null">equipment_type_code,</if>
|
||||
<if test="equipmentTypeName != null">equipment_type_name,</if>
|
||||
<if test="workshopId != null">workshop_id,</if>
|
||||
<if test="workshopCode != null">workshop_code,</if>
|
||||
<if test="workshopName != null">workshop_name,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="workshopSection != null">workshop_section,</if>
|
||||
<if test="equipmentLocation != null">equipment_location,</if>
|
||||
<if test="hourlyUnitPrice != null">hourly_unit_price,</if>
|
||||
<if test="equipmentBarcode != null">equipment_barcode,</if>
|
||||
<if test="equipmentBarcodeImage != null">equipment_barcode_image,</if>
|
||||
<if test="manufacturer != null">manufacturer,</if>
|
||||
<if test="supplier != null">supplier,</if>
|
||||
<if test="useLife != null">use_life,</if>
|
||||
<if test="buyTime != null">buy_time,</if>
|
||||
<if test="assetOriginalValue != null">asset_original_value,</if>
|
||||
<if test="netAssetValue != null">net_asset_value,</if>
|
||||
<if test="assetHead != null">asset_head,</if>
|
||||
<if test="fixedAssetCode != null">fixed_asset_code,</if>
|
||||
<if test="department != null">department,</if>
|
||||
<if test="unitWorkingHours != null">unit_working_hours,</if>
|
||||
<if test="plcIp != null">plc_ip,</if>
|
||||
<if test="plcPort != null">plc_port,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="sapAsset != null">sap_asset,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="equipmentId != null">#{equipmentId},</if>
|
||||
<if test="equipmentCode != null">#{equipmentCode},</if>
|
||||
<if test="equipmentName != null">#{equipmentName},</if>
|
||||
<if test="equipmentBrand != null">#{equipmentBrand},</if>
|
||||
<if test="equipmentSpec != null">#{equipmentSpec},</if>
|
||||
<if test="equipmentTypeId != null">#{equipmentTypeId},</if>
|
||||
<if test="equipmentTypeCode != null">#{equipmentTypeCode},</if>
|
||||
<if test="equipmentTypeName != null">#{equipmentTypeName},</if>
|
||||
<if test="workshopId != null">#{workshopId},</if>
|
||||
<if test="workshopCode != null">#{workshopCode},</if>
|
||||
<if test="workshopName != null">#{workshopName},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="workshopSection != null">#{workshopSection},</if>
|
||||
<if test="equipmentLocation != null">#{equipmentLocation},</if>
|
||||
<if test="hourlyUnitPrice != null">#{hourlyUnitPrice},</if>
|
||||
<if test="equipmentBarcode != null">#{equipmentBarcode},</if>
|
||||
<if test="equipmentBarcodeImage != null">#{equipmentBarcodeImage},</if>
|
||||
<if test="manufacturer != null">#{manufacturer},</if>
|
||||
<if test="supplier != null">#{supplier},</if>
|
||||
<if test="useLife != null">#{useLife},</if>
|
||||
<if test="buyTime != null">#{buyTime},</if>
|
||||
<if test="assetOriginalValue != null">#{assetOriginalValue},</if>
|
||||
<if test="netAssetValue != null">#{netAssetValue},</if>
|
||||
<if test="assetHead != null">#{assetHead},</if>
|
||||
<if test="fixedAssetCode != null">#{fixedAssetCode},</if>
|
||||
<if test="department != null">#{department},</if>
|
||||
<if test="unitWorkingHours != null">#{unitWorkingHours},</if>
|
||||
<if test="plcIp != null">#{plcIp},</if>
|
||||
<if test="plcPort != null">#{plcPort},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="sapAsset != null">#{sapAsset},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseEquipment" parameterType="BaseEquipment">
|
||||
update base_equipment
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="equipmentCode != null">equipment_code = #{equipmentCode},</if>
|
||||
<if test="equipmentName != null">equipment_name = #{equipmentName},</if>
|
||||
<if test="equipmentBrand != null">equipment_brand = #{equipmentBrand},</if>
|
||||
<if test="equipmentSpec != null">equipment_spec = #{equipmentSpec},</if>
|
||||
<if test="equipmentTypeId != null">equipment_type_id = #{equipmentTypeId},</if>
|
||||
<if test="equipmentTypeCode != null">equipment_type_code = #{equipmentTypeCode},</if>
|
||||
<if test="equipmentTypeName != null">equipment_type_name = #{equipmentTypeName},</if>
|
||||
<if test="workshopId != null">workshop_id = #{workshopId},</if>
|
||||
<if test="workshopCode != null">workshop_code = #{workshopCode},</if>
|
||||
<if test="workshopName != null">workshop_name = #{workshopName},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="workshopSection != null">workshop_section = #{workshopSection},</if>
|
||||
<if test="equipmentLocation != null">equipment_location = #{equipmentLocation},</if>
|
||||
<if test="hourlyUnitPrice != null">hourly_unit_price = #{hourlyUnitPrice},</if>
|
||||
<if test="equipmentBarcode != null">equipment_barcode = #{equipmentBarcode},</if>
|
||||
<if test="equipmentBarcodeImage != null">equipment_barcode_image = #{equipmentBarcodeImage},</if>
|
||||
<if test="manufacturer != null">manufacturer = #{manufacturer},</if>
|
||||
<if test="supplier != null">supplier = #{supplier},</if>
|
||||
<if test="useLife != null">use_life = #{useLife},</if>
|
||||
<if test="buyTime != null">buy_time = #{buyTime},</if>
|
||||
<if test="assetOriginalValue != null">asset_original_value = #{assetOriginalValue},</if>
|
||||
<if test="netAssetValue != null">net_asset_value = #{netAssetValue},</if>
|
||||
<if test="assetHead != null">asset_head = #{assetHead},</if>
|
||||
<if test="fixedAssetCode != null">fixed_asset_code = #{fixedAssetCode},</if>
|
||||
<if test="department != null">department = #{department},</if>
|
||||
<if test="unitWorkingHours != null">unit_working_hours = #{unitWorkingHours},</if>
|
||||
<if test="plcIp != null">plc_ip = #{plcIp},</if>
|
||||
<if test="plcPort != null">plc_port = #{plcPort},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="sapAsset != null">sap_asset = #{sapAsset},</if>
|
||||
</trim>
|
||||
where equipment_id = #{equipmentId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseEquipmentByEquipmentId" parameterType="Long">
|
||||
delete from base_equipment where equipment_id = #{equipmentId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseEquipmentByEquipmentIds" parameterType="String">
|
||||
delete from base_equipment where equipment_id in
|
||||
<foreach item="equipmentId" collection="array" open="(" separator="," close=")">
|
||||
#{equipmentId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.device.mapper.EquPlanDetailMapper">
|
||||
|
||||
<resultMap type="EquPlanDetail" id="EquPlanDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="planId" column="plan_id" />
|
||||
<result property="parentCode" column="parent_code" />
|
||||
<result property="itemCode" column="item_code" />
|
||||
<result property="itemName" column="item_name" />
|
||||
<result property="itemMethod" column="item_method" />
|
||||
<result property="itemType" column="item_type" />
|
||||
<result property="itemTypeName" column="item_type_name" />
|
||||
<result property="itemRemark" column="item_remark" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEquPlanDetailVo">
|
||||
select id, code, plan_id, parent_code, item_code, item_name, item_method, item_type, item_type_name, item_remark, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_plan_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectEquPlanDetailList" parameterType="EquPlanDetail" resultMap="EquPlanDetailResult">
|
||||
<include refid="selectEquPlanDetailVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="planId != null and planId != ''"> and plan_id = #{planId}</if>
|
||||
<if test="parentCode != null and parentCode != ''"> and parent_code = #{parentCode}</if>
|
||||
<if test="itemCode != null and itemCode != ''"> and item_code = #{itemCode}</if>
|
||||
<if test="itemName != null and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
|
||||
<if test="itemMethod != null and itemMethod != ''"> and item_method = #{itemMethod}</if>
|
||||
<if test="itemType != null and itemType != ''"> and item_type = #{itemType}</if>
|
||||
<if test="itemTypeName != null and itemTypeName != ''"> and item_type_name like concat('%', #{itemTypeName}, '%')</if>
|
||||
<if test="itemRemark != null and itemRemark != ''"> and item_remark = #{itemRemark}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEquPlanDetailById" parameterType="String" resultMap="EquPlanDetailResult">
|
||||
<include refid="selectEquPlanDetailVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquPlanDetail" parameterType="EquPlanDetail">
|
||||
insert into equ_plan_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="code != null">code,</if>
|
||||
<if test="planId != null">plan_id,</if>
|
||||
<if test="parentCode != null">parent_code,</if>
|
||||
<if test="itemCode != null">item_code,</if>
|
||||
<if test="itemName != null">item_name,</if>
|
||||
<if test="itemMethod != null">item_method,</if>
|
||||
<if test="itemType != null">item_type,</if>
|
||||
<if test="itemTypeName != null">item_type_name,</if>
|
||||
<if test="itemRemark != null">item_remark,</if>
|
||||
<if test="factoryCode != null">factory_code,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="planId != null">#{planId},</if>
|
||||
<if test="parentCode != null">#{parentCode},</if>
|
||||
<if test="itemCode != null">#{itemCode},</if>
|
||||
<if test="itemName != null">#{itemName},</if>
|
||||
<if test="itemMethod != null">#{itemMethod},</if>
|
||||
<if test="itemType != null">#{itemType},</if>
|
||||
<if test="itemTypeName != null">#{itemTypeName},</if>
|
||||
<if test="itemRemark != null">#{itemRemark},</if>
|
||||
<if test="factoryCode != null">#{factoryCode},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEquPlanDetail" parameterType="EquPlanDetail">
|
||||
update equ_plan_detail
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null">code = #{code},</if>
|
||||
<if test="planId != null">plan_id = #{planId},</if>
|
||||
<if test="parentCode != null">parent_code = #{parentCode},</if>
|
||||
<if test="itemCode != null">item_code = #{itemCode},</if>
|
||||
<if test="itemName != null">item_name = #{itemName},</if>
|
||||
<if test="itemMethod != null">item_method = #{itemMethod},</if>
|
||||
<if test="itemType != null">item_type = #{itemType},</if>
|
||||
<if test="itemTypeName != null">item_type_name = #{itemTypeName},</if>
|
||||
<if test="itemRemark != null">item_remark = #{itemRemark},</if>
|
||||
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEquPlanDetailById" parameterType="String">
|
||||
delete from equ_plan_detail where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquPlanDetailByIds" parameterType="String">
|
||||
delete from equ_plan_detail where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.device.mapper.EquPlanEquMapper">
|
||||
|
||||
<resultMap type="EquPlanEqu" id="EquPlanEquResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="parentCode" column="parent_code" />
|
||||
<result property="equipmentCode" column="equipment_code" />
|
||||
<result property="equipmentName" column="equipment_name" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEquPlanEquVo">
|
||||
select id, code, parent_code, equipment_code, equipment_name, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_plan_equ
|
||||
</sql>
|
||||
|
||||
<select id="selectEquPlanEquList" parameterType="EquPlanEqu" resultMap="EquPlanEquResult">
|
||||
<include refid="selectEquPlanEquVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="parentCode != null and parentCode != ''"> and parent_code = #{parentCode}</if>
|
||||
<if test="equipmentCode != null and equipmentCode != ''"> and equipment_code = #{equipmentCode}</if>
|
||||
<if test="equipmentName != null and equipmentName != ''"> and equipment_name like concat('%', #{equipmentName}, '%')</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEquPlanEquById" parameterType="String" resultMap="EquPlanEquResult">
|
||||
<include refid="selectEquPlanEquVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquPlanEqu" parameterType="EquPlanEqu">
|
||||
insert into equ_plan_equ
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="code != null and code != ''">code,</if>
|
||||
<if test="parentCode != null and parentCode != ''">parent_code,</if>
|
||||
<if test="equipmentCode != null and equipmentCode != ''">equipment_code,</if>
|
||||
<if test="equipmentName != null and equipmentName != ''">equipment_name,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="code != null and code != ''">#{code},</if>
|
||||
<if test="parentCode != null and parentCode != ''">#{parentCode},</if>
|
||||
<if test="equipmentCode != null and equipmentCode != ''">#{equipmentCode},</if>
|
||||
<if test="equipmentName != null and equipmentName != ''">#{equipmentName},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">#{factoryCode},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEquPlanEqu" parameterType="EquPlanEqu">
|
||||
update equ_plan_equ
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null and code != ''">code = #{code},</if>
|
||||
<if test="parentCode != null and parentCode != ''">parent_code = #{parentCode},</if>
|
||||
<if test="equipmentCode != null and equipmentCode != ''">equipment_code = #{equipmentCode},</if>
|
||||
<if test="equipmentName != null and equipmentName != ''">equipment_name = #{equipmentName},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEquPlanEquById" parameterType="String">
|
||||
delete from equ_plan_equ where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquPlanEquByIds" parameterType="String">
|
||||
delete from equ_plan_equ where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,133 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.op.device.mapper.EquPlanStandardMapper">
|
||||
|
||||
<resultMap type="EquPlanStandard" id="EquPlanStandardResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="parentCode" column="parent_code" />
|
||||
<result property="detailCode" column="detail_code" />
|
||||
<result property="standardType" column="standard_type" />
|
||||
<result property="standardName" column="standard_name" />
|
||||
<result property="detailUpLimit" column="detail_up_limit" />
|
||||
<result property="detailDownLimit" column="detail_down_limit" />
|
||||
<result property="detailUnit" column="detail_unit" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEquPlanStandardVo">
|
||||
select id, code, parent_code, detail_code, standard_type, standard_name, detail_up_limit, detail_down_limit, detail_unit, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_plan_standard
|
||||
</sql>
|
||||
|
||||
<select id="selectEquPlanStandardList" parameterType="EquPlanStandard" resultMap="EquPlanStandardResult">
|
||||
<include refid="selectEquPlanStandardVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="parentCode != null and parentCode != ''"> and parent_code = #{parentCode}</if>
|
||||
<if test="detailCode != null and detailCode != ''"> and detail_code = #{detailCode}</if>
|
||||
<if test="standardType != null and standardType != ''"> and standard_type = #{standardType}</if>
|
||||
<if test="standardName != null and standardName != ''"> and standard_name like concat('%', #{standardName}, '%')</if>
|
||||
<if test="detailUpLimit != null "> and detail_up_limit = #{detailUpLimit}</if>
|
||||
<if test="detailDownLimit != null "> and detail_down_limit = #{detailDownLimit}</if>
|
||||
<if test="detailUnit != null and detailUnit != ''"> and detail_unit = #{detailUnit}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEquPlanStandardById" parameterType="String" resultMap="EquPlanStandardResult">
|
||||
<include refid="selectEquPlanStandardVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquPlanStandard" parameterType="EquPlanStandard">
|
||||
insert into equ_plan_standard
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="code != null">code,</if>
|
||||
<if test="parentCode != null">parent_code,</if>
|
||||
<if test="detailCode != null">detail_code,</if>
|
||||
<if test="standardType != null">standard_type,</if>
|
||||
<if test="standardName != null">standard_name,</if>
|
||||
<if test="detailUpLimit != null">detail_up_limit,</if>
|
||||
<if test="detailDownLimit != null">detail_down_limit,</if>
|
||||
<if test="detailUnit != null">detail_unit,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="parentCode != null">#{parentCode},</if>
|
||||
<if test="detailCode != null">#{detailCode},</if>
|
||||
<if test="standardType != null">#{standardType},</if>
|
||||
<if test="standardName != null">#{standardName},</if>
|
||||
<if test="detailUpLimit != null">#{detailUpLimit},</if>
|
||||
<if test="detailDownLimit != null">#{detailDownLimit},</if>
|
||||
<if test="detailUnit != null">#{detailUnit},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">#{factoryCode},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEquPlanStandard" parameterType="EquPlanStandard">
|
||||
update equ_plan_standard
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null">code = #{code},</if>
|
||||
<if test="parentCode != null">parent_code = #{parentCode},</if>
|
||||
<if test="detailCode != null">detail_code = #{detailCode},</if>
|
||||
<if test="standardType != null">standard_type = #{standardType},</if>
|
||||
<if test="standardName != null">standard_name = #{standardName},</if>
|
||||
<if test="detailUpLimit != null">detail_up_limit = #{detailUpLimit},</if>
|
||||
<if test="detailDownLimit != null">detail_down_limit = #{detailDownLimit},</if>
|
||||
<if test="detailUnit != null">detail_unit = #{detailUnit},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEquPlanStandardById" parameterType="String">
|
||||
delete from equ_plan_standard where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquPlanStandardByIds" parameterType="String">
|
||||
delete from equ_plan_standard where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue