巡检工单填写记录V1
parent
aedd7d6052
commit
dcbde38d27
@ -0,0 +1,205 @@
|
||||
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_order_detail
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public class EquOrderDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 检查项编码 */
|
||||
@Excel(name = "检查项编码")
|
||||
private String code;
|
||||
|
||||
/** 工单编码 */
|
||||
@Excel(name = "工单编码")
|
||||
private String orderCode;
|
||||
|
||||
/** 关联上级表单 */
|
||||
@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 factroyCode;
|
||||
|
||||
/** 备用字段1 */
|
||||
@Excel(name = "备用字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 备用字段2 */
|
||||
@Excel(name = "备用字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 备用字段3 */
|
||||
@Excel(name = "备用字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
private List<EquOrderStandard> standardList;
|
||||
|
||||
public List<EquOrderStandard> getStandardList() {
|
||||
return standardList;
|
||||
}
|
||||
|
||||
public void setStandardList(List<EquOrderStandard> standardList) {
|
||||
this.standardList = standardList;
|
||||
}
|
||||
|
||||
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 setOrderCode(String orderCode) {
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode() {
|
||||
return orderCode;
|
||||
}
|
||||
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 setFactroyCode(String factroyCode) {
|
||||
this.factroyCode = factroyCode;
|
||||
}
|
||||
|
||||
public String getFactroyCode() {
|
||||
return factroyCode;
|
||||
}
|
||||
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("orderCode", getOrderCode())
|
||||
.append("parentCode", getParentCode())
|
||||
.append("itemCode", getItemCode())
|
||||
.append("itemName", getItemName())
|
||||
.append("itemMethod", getItemMethod())
|
||||
.append("itemType", getItemType())
|
||||
.append("itemTypeName", getItemTypeName())
|
||||
.append("factroyCode", getFactroyCode())
|
||||
.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,169 @@
|
||||
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_order_equ
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public class EquOrderEqu extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 计划详情-设备编码 */
|
||||
@Excel(name = "计划详情-设备编码")
|
||||
private String code;
|
||||
|
||||
/** 关联上级表单 */
|
||||
@Excel(name = "关联上级表单")
|
||||
private String parentCode;
|
||||
|
||||
/** 工单code */
|
||||
@Excel(name = "工单code")
|
||||
private String orderCode;
|
||||
|
||||
/** 设备编码 */
|
||||
@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;
|
||||
|
||||
private List<EquOrderDetail> detailList;
|
||||
|
||||
public List<EquOrderDetail> getDetailList() {
|
||||
return detailList;
|
||||
}
|
||||
|
||||
public void setDetailList(List<EquOrderDetail> detailList) {
|
||||
this.detailList = detailList;
|
||||
}
|
||||
|
||||
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 setOrderCode(String orderCode) {
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode() {
|
||||
return orderCode;
|
||||
}
|
||||
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("orderCode", getOrderCode())
|
||||
.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,133 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* 计划工单-人员对象 equ_order_person
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public class EquOrderPerson extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 工单编码 */
|
||||
@Excel(name = "工单编码")
|
||||
private String orderCode;
|
||||
|
||||
/** 用户id */
|
||||
@Excel(name = "用户id")
|
||||
private Long userId;
|
||||
|
||||
/** 账号 */
|
||||
@Excel(name = "账号")
|
||||
private String userName;
|
||||
|
||||
/** 工厂 */
|
||||
@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 setOrderCode(String orderCode) {
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode() {
|
||||
return orderCode;
|
||||
}
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
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("orderCode", getOrderCode())
|
||||
.append("userId", getUserId())
|
||||
.append("userName", getUserName())
|
||||
.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,230 @@
|
||||
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_order_standard
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public class EquOrderStandard 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 orderCode;
|
||||
|
||||
/** 标准类型 */
|
||||
@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 detailReach;
|
||||
|
||||
/** 实际值 */
|
||||
@Excel(name = "实际值")
|
||||
private BigDecimal actualValue;
|
||||
|
||||
/** 是否异常 */
|
||||
@Excel(name = "是否异常")
|
||||
private String detailError;
|
||||
|
||||
/** 工厂 */
|
||||
@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 setOrderCode(String orderCode) {
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode() {
|
||||
return orderCode;
|
||||
}
|
||||
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 setDetailReach(String detailReach) {
|
||||
this.detailReach = detailReach;
|
||||
}
|
||||
|
||||
public String getDetailReach() {
|
||||
return detailReach;
|
||||
}
|
||||
public void setActualValue(BigDecimal actualValue) {
|
||||
this.actualValue = actualValue;
|
||||
}
|
||||
|
||||
public BigDecimal getActualValue() {
|
||||
return actualValue;
|
||||
}
|
||||
public void setDetailError(String detailError) {
|
||||
this.detailError = detailError;
|
||||
}
|
||||
|
||||
public String getDetailError() {
|
||||
return detailError;
|
||||
}
|
||||
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("orderCode", getOrderCode())
|
||||
.append("standardType", getStandardType())
|
||||
.append("standardName", getStandardName())
|
||||
.append("detailUpLimit", getDetailUpLimit())
|
||||
.append("detailDownLimit", getDetailDownLimit())
|
||||
.append("detailUnit", getDetailUnit())
|
||||
.append("detailReach", getDetailReach())
|
||||
.append("actualValue", getActualValue())
|
||||
.append("detailError", getDetailError())
|
||||
.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,68 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquOrderDetail;
|
||||
|
||||
/**
|
||||
* 计划工单详情-检查项信息Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public interface EquOrderDetailMapper {
|
||||
/**
|
||||
* 查询计划工单详情-检查项信息
|
||||
*
|
||||
* @param id 计划工单详情-检查项信息主键
|
||||
* @return 计划工单详情-检查项信息
|
||||
*/
|
||||
public EquOrderDetail selectEquOrderDetailById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划工单详情-检查项信息列表
|
||||
*
|
||||
* @param equOrderDetail 计划工单详情-检查项信息
|
||||
* @return 计划工单详情-检查项信息集合
|
||||
*/
|
||||
public List<EquOrderDetail> selectEquOrderDetailList(EquOrderDetail equOrderDetail);
|
||||
|
||||
/**
|
||||
* 新增计划工单详情-检查项信息
|
||||
*
|
||||
* @param equOrderDetail 计划工单详情-检查项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquOrderDetail(EquOrderDetail equOrderDetail);
|
||||
|
||||
/**
|
||||
* 修改计划工单详情-检查项信息
|
||||
*
|
||||
* @param equOrderDetail 计划工单详情-检查项信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquOrderDetail(EquOrderDetail equOrderDetail);
|
||||
|
||||
/**
|
||||
* 删除计划工单详情-检查项信息
|
||||
*
|
||||
* @param id 计划工单详情-检查项信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderDetailById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划工单详情-检查项信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderDetailByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 通过parentCode查询信息
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
List<EquOrderDetail> selectEquOrderDetailByParentCode(String code);
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquOrderEqu;
|
||||
|
||||
/**
|
||||
* 计划工单-设备Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public interface EquOrderEquMapper {
|
||||
/**
|
||||
* 查询计划工单-设备
|
||||
*
|
||||
* @param id 计划工单-设备主键
|
||||
* @return 计划工单-设备
|
||||
*/
|
||||
public EquOrderEqu selectEquOrderEquById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划工单-设备列表
|
||||
*
|
||||
* @param equOrderEqu 计划工单-设备
|
||||
* @return 计划工单-设备集合
|
||||
*/
|
||||
public List<EquOrderEqu> selectEquOrderEquList(EquOrderEqu equOrderEqu);
|
||||
|
||||
/**
|
||||
* 新增计划工单-设备
|
||||
*
|
||||
* @param equOrderEqu 计划工单-设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquOrderEqu(EquOrderEqu equOrderEqu);
|
||||
|
||||
/**
|
||||
* 修改计划工单-设备
|
||||
*
|
||||
* @param equOrderEqu 计划工单-设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquOrderEqu(EquOrderEqu equOrderEqu);
|
||||
|
||||
/**
|
||||
* 删除计划工单-设备
|
||||
*
|
||||
* @param id 计划工单-设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderEquById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划工单-设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderEquByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 通过parentCode查询list
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
List<EquOrderEqu> selectEquOrderEquListByParentCode(String orderCode);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquOrderPerson;
|
||||
|
||||
/**
|
||||
* 计划工单-人员Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public interface EquOrderPersonMapper {
|
||||
/**
|
||||
* 查询计划工单-人员
|
||||
*
|
||||
* @param id 计划工单-人员主键
|
||||
* @return 计划工单-人员
|
||||
*/
|
||||
public EquOrderPerson selectEquOrderPersonById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划工单-人员列表
|
||||
*
|
||||
* @param equOrderPerson 计划工单-人员
|
||||
* @return 计划工单-人员集合
|
||||
*/
|
||||
public List<EquOrderPerson> selectEquOrderPersonList(EquOrderPerson equOrderPerson);
|
||||
|
||||
/**
|
||||
* 新增计划工单-人员
|
||||
*
|
||||
* @param equOrderPerson 计划工单-人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquOrderPerson(EquOrderPerson equOrderPerson);
|
||||
|
||||
/**
|
||||
* 修改计划工单-人员
|
||||
*
|
||||
* @param equOrderPerson 计划工单-人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquOrderPerson(EquOrderPerson equOrderPerson);
|
||||
|
||||
/**
|
||||
* 删除计划工单-人员
|
||||
*
|
||||
* @param id 计划工单-人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderPersonById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划工单-人员
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderPersonByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.device.domain.EquOrderStandard;
|
||||
|
||||
/**
|
||||
* 计划工单-标准Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-23
|
||||
*/
|
||||
public interface EquOrderStandardMapper {
|
||||
/**
|
||||
* 查询计划工单-标准
|
||||
*
|
||||
* @param id 计划工单-标准主键
|
||||
* @return 计划工单-标准
|
||||
*/
|
||||
public EquOrderStandard selectEquOrderStandardById(String id);
|
||||
|
||||
/**
|
||||
* 查询计划工单-标准列表
|
||||
*
|
||||
* @param equOrderStandard 计划工单-标准
|
||||
* @return 计划工单-标准集合
|
||||
*/
|
||||
public List<EquOrderStandard> selectEquOrderStandardList(EquOrderStandard equOrderStandard);
|
||||
|
||||
/**
|
||||
* 新增计划工单-标准
|
||||
*
|
||||
* @param equOrderStandard 计划工单-标准
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquOrderStandard(EquOrderStandard equOrderStandard);
|
||||
|
||||
/**
|
||||
* 修改计划工单-标准
|
||||
*
|
||||
* @param equOrderStandard 计划工单-标准
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquOrderStandard(EquOrderStandard equOrderStandard);
|
||||
|
||||
/**
|
||||
* 删除计划工单-标准
|
||||
*
|
||||
* @param id 计划工单-标准主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderStandardById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除计划工单-标准
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquOrderStandardByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 通过parentCode查询信息
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
List<EquOrderStandard> selectEquOrderStandardByParentCode(String code);
|
||||
}
|
@ -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.EquOrderDetailMapper">
|
||||
|
||||
<resultMap type="EquOrderDetail" id="EquOrderDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
<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="factroyCode" column="factroy_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="selectEquOrderDetailVo">
|
||||
select id, code, order_code, parent_code, item_code, item_name, item_method, item_type, item_type_name, factroy_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_order_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectEquOrderDetailList" parameterType="EquOrderDetail" resultMap="EquOrderDetailResult">
|
||||
<include refid="selectEquOrderDetailVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="orderCode != null and orderCode != ''"> and order_code = #{orderCode}</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="factroyCode != null and factroyCode != ''"> and factroy_code = #{factroyCode}</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="selectEquOrderDetailById" parameterType="String" resultMap="EquOrderDetailResult">
|
||||
<include refid="selectEquOrderDetailVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectEquOrderDetailByParentCode" parameterType="String" resultMap="EquOrderDetailResult">
|
||||
<include refid="selectEquOrderDetailVo"/>
|
||||
where parent_code = #{parentCode}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquOrderDetail" parameterType="EquOrderDetail">
|
||||
insert into equ_order_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="code != null">code,</if>
|
||||
<if test="orderCode != null">order_code,</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="factroyCode != null and factroyCode != ''">factroy_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="orderCode != null">#{orderCode},</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="factroyCode != null and factroyCode != ''">#{factroyCode},</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="updateEquOrderDetail" parameterType="EquOrderDetail">
|
||||
update equ_order_detail
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null">code = #{code},</if>
|
||||
<if test="orderCode != null">order_code = #{orderCode},</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="factroyCode != null and factroyCode != ''">factroy_code = #{factroyCode},</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="deleteEquOrderDetailById" parameterType="String">
|
||||
delete from equ_order_detail where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquOrderDetailByIds" parameterType="String">
|
||||
delete from equ_order_detail where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,123 @@
|
||||
<?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.EquOrderEquMapper">
|
||||
|
||||
<resultMap type="EquOrderEqu" id="EquOrderEquResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="parentCode" column="parent_code" />
|
||||
<result property="orderCode" column="order_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="selectEquOrderEquVo">
|
||||
select id, code, parent_code, order_code, equipment_code, equipment_name, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_order_equ
|
||||
</sql>
|
||||
|
||||
<select id="selectEquOrderEquList" parameterType="EquOrderEqu" resultMap="EquOrderEquResult">
|
||||
<include refid="selectEquOrderEquVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="parentCode != null and parentCode != ''"> and parent_code = #{parentCode}</if>
|
||||
<if test="orderCode != null and orderCode != ''"> and order_code = #{orderCode}</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="selectEquOrderEquById" parameterType="String" resultMap="EquOrderEquResult">
|
||||
<include refid="selectEquOrderEquVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectEquOrderEquListByParentCode" parameterType="String" resultMap="EquOrderEquResult">
|
||||
<include refid="selectEquOrderEquVo"/>
|
||||
where parent_code = #{parentCode}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquOrderEqu" parameterType="EquOrderEqu">
|
||||
insert into equ_order_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="orderCode != null and orderCode != ''">order_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="orderCode != null and orderCode != ''">#{orderCode},</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="updateEquOrderEqu" parameterType="EquOrderEqu">
|
||||
update equ_order_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="orderCode != null and orderCode != ''">order_code = #{orderCode},</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="deleteEquOrderEquById" parameterType="String">
|
||||
delete from equ_order_equ where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquOrderEquByIds" parameterType="String">
|
||||
delete from equ_order_equ where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,108 @@
|
||||
<?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.EquOrderPersonMapper">
|
||||
|
||||
<resultMap type="EquOrderPerson" id="EquOrderPersonResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderCode" column="order_code" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_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="selectEquOrderPersonVo">
|
||||
select id, order_code, user_id, user_name, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_order_person
|
||||
</sql>
|
||||
|
||||
<select id="selectEquOrderPersonList" parameterType="EquOrderPerson" resultMap="EquOrderPersonResult">
|
||||
<include refid="selectEquOrderPersonVo"/>
|
||||
<where>
|
||||
<if test="orderCode != null and orderCode != ''"> and order_code = #{orderCode}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</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="selectEquOrderPersonById" parameterType="String" resultMap="EquOrderPersonResult">
|
||||
<include refid="selectEquOrderPersonVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquOrderPerson" parameterType="EquOrderPerson">
|
||||
insert into equ_order_person
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="orderCode != null">order_code,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="userName != null">user_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="orderCode != null">#{orderCode},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="userName != null">#{userName},</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="updateEquOrderPerson" parameterType="EquOrderPerson">
|
||||
update equ_order_person
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderCode != null">order_code = #{orderCode},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="userName != null">user_name = #{userName},</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="deleteEquOrderPersonById" parameterType="String">
|
||||
delete from equ_order_person where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquOrderPersonByIds" parameterType="String">
|
||||
delete from equ_order_person where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,153 @@
|
||||
<?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.EquOrderStandardMapper">
|
||||
|
||||
<resultMap type="EquOrderStandard" id="EquOrderStandardResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="parentCode" column="parent_code" />
|
||||
<result property="orderCode" column="order_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="detailReach" column="detail_reach" />
|
||||
<result property="actualValue" column="actual_value" />
|
||||
<result property="detailError" column="detail_error" />
|
||||
<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="selectEquOrderStandardVo">
|
||||
select id, code, parent_code, order_code, standard_type, standard_name, detail_up_limit, detail_down_limit, detail_unit, detail_reach, actual_value, detail_error, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_order_standard
|
||||
</sql>
|
||||
|
||||
<select id="selectEquOrderStandardList" parameterType="EquOrderStandard" resultMap="EquOrderStandardResult">
|
||||
<include refid="selectEquOrderStandardVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code = #{code}</if>
|
||||
<if test="parentCode != null and parentCode != ''"> and parent_code = #{parentCode}</if>
|
||||
<if test="orderCode != null and orderCode != ''"> and order_code = #{orderCode}</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="detailReach != null and detailReach != ''"> and detail_reach = #{detailReach}</if>
|
||||
<if test="actualValue != null "> and actual_value = #{actualValue}</if>
|
||||
<if test="detailError != null and detailError != ''"> and detail_error = #{detailError}</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="selectEquOrderStandardById" parameterType="String" resultMap="EquOrderStandardResult">
|
||||
<include refid="selectEquOrderStandardVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectEquOrderStandardByParentCode" parameterType="String" resultMap="EquOrderStandardResult">
|
||||
<include refid="selectEquOrderStandardVo"/>
|
||||
where parent_code = #{parentCode}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquOrderStandard" parameterType="EquOrderStandard">
|
||||
insert into equ_order_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="orderCode != null">order_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="detailReach != null">detail_reach,</if>
|
||||
<if test="actualValue != null">actual_value,</if>
|
||||
<if test="detailError != null">detail_error,</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="orderCode != null">#{orderCode},</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="detailReach != null">#{detailReach},</if>
|
||||
<if test="actualValue != null">#{actualValue},</if>
|
||||
<if test="detailError != null">#{detailError},</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="updateEquOrderStandard" parameterType="EquOrderStandard">
|
||||
update equ_order_standard
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null">code = #{code},</if>
|
||||
<if test="parentCode != null">parent_code = #{parentCode},</if>
|
||||
<if test="orderCode != null">order_code = #{orderCode},</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="detailReach != null">detail_reach = #{detailReach},</if>
|
||||
<if test="actualValue != null">actual_value = #{actualValue},</if>
|
||||
<if test="detailError != null">detail_error = #{detailError},</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="deleteEquOrderStandardById" parameterType="String">
|
||||
delete from equ_order_standard where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquOrderStandardByIds" parameterType="String">
|
||||
delete from equ_order_standard where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue