Merge remote-tracking branch 'origin/master'

master
Yangwl 1 year ago
commit ef6c50041f

@ -1,5 +1,6 @@
package com.op.device.service.impl; package com.op.device.service.impl;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
@ -171,49 +172,49 @@ public class SparePartsLedgerServiceImpl implements ISparePartsLedgerService {
return error(500, "备品备件名称不能为空!信息导入失败!"); return error(500, "备品备件名称不能为空!信息导入失败!");
} }
// 所属设备编码 // 所属设备编码
if (table.getOwnEquipmentCode().isEmpty() || table.getOwnEquipmentCode() == null) { // if (table.getOwnEquipmentCode().isEmpty() || table.getOwnEquipmentCode() == null) {
return error(500, "所属设备编码不能为空!信息导入失败!"); // return error(500, "所属设备编码不能为空!信息导入失败!");
} // }
// 所属设备名称 // 所属设备名称
if (table.getOwnEquipmentName().isEmpty() || table.getOwnEquipmentName() == null) { // if (table.getOwnEquipmentName().isEmpty() || table.getOwnEquipmentName() == null) {
return error(500, "所属设备名称不能为空!信息导入失败!"); // return error(500, "所属设备名称不能为空!信息导入失败!");
} // }
// 设备厂家 // 设备厂家
if (table.getSpareSupplier().isEmpty() || table.getSpareSupplier() == null) { // if (table.getSpareSupplier().isEmpty() || table.getSpareSupplier() == null) {
return error(500, "设备厂家不能为空!信息导入失败!"); // return error(500, "设备厂家不能为空!信息导入失败!");
} // }
// 规格型号 // 规格型号
if (table.getSpareMode().isEmpty() || table.getSpareMode() == null) { // if (table.getSpareMode().isEmpty() || table.getSpareMode() == null) {
return error(500, "规格型号不能为空!信息导入失败!"); // return error(500, "规格型号不能为空!信息导入失败!");
} // }
// 单机装配数量 // 单机装配数量
if (table.getUnitQuantity().isEmpty() || table.getUnitQuantity() == null) { // if (table.getUnitQuantity().isEmpty() || table.getUnitQuantity() == null) {
return error(500, "单机装配数量不能为空!信息导入失败!"); // return error(500, "单机装配数量不能为空!信息导入失败!");
} // }
// 单价 // 单价
if (table.getUnitPrice().toString().isEmpty() || table.getUnitPrice() == null) { // if (table.getUnitPrice().toString().isEmpty() || table.getUnitPrice() == null) {
return error(500, "单价不能为空!信息导入失败!"); // return error(500, "单价不能为空!信息导入失败!");
} // }
// 安全库存 // 安全库存
if (table.getSafeStock().isEmpty() || table.getSafeStock() == null) { // if (table.getSafeStock().isEmpty() || table.getSafeStock() == null) {
return error(500, "安全库存不能为空!信息导入失败!"); // return error(500, "安全库存不能为空!信息导入失败!");
} // }
// 现有库存 // 现有库存
if (table.getAmount().toString().isEmpty() || table.getAmount() == null) { if (table.getAmount() == null || table.getAmount().compareTo(BigDecimal.ZERO) < 0) {
return error(500, "现有库存不能为空!信息导入失败!"); return error(500, "现有库存不能为空,或者小于0!信息导入失败!");
} }
// 采购方式 // 采购方式
if (table.getProcurementMethod().isEmpty() || table.getProcurementMethod() == null) { if (table.getProcurementMethod().isEmpty() || table.getProcurementMethod() == null) {
return error(500, "采购方式不能为空!信息导入失败!"); return error(500, "采购方式不能为空!信息导入失败!");
} }
// 更换周期(月) // 更换周期(月)
if (table.getSpareReplacementCycle().toString().isEmpty() || table.getSpareReplacementCycle() == null) { // if (table.getSpareReplacementCycle().toString().isEmpty() || table.getSpareReplacementCycle() == null) {
return error(500, "更换周期不能为空!信息导入失败!"); // return error(500, "更换周期不能为空!信息导入失败!");
} // }
// 采购周期(天) // 采购周期(天)
if (table.getProcurementCycle().toString().isEmpty() || table.getProcurementCycle() == null) { // if (table.getProcurementCycle().toString().isEmpty() || table.getProcurementCycle() == null) {
return error(500, "采购周期不能为空!信息导入失败!"); // return error(500, "采购周期不能为空!信息导入失败!");
} // }
} }
return success(); return success();
} }

@ -310,10 +310,10 @@
GROUP by t.source_id GROUP by t.source_id
</select> </select>
<select id="getDLTableTitle" resultType="com.op.quality.domain.QcStaticTable"> <select id="getDLTableTitle" resultType="com.op.quality.domain.QcStaticTable">
select t0.* ,bp.product_desc_zh materialName from(
SELECT SELECT
concat(q.material_code,'-',q.project_no,'-',CONVERT(varchar(10),q.ymdms, 120)) yearMonth, concat(q.material_code,'-',q.project_no,'-',CONVERT(varchar(10),q.ymdms, 120)) yearMonth,
material_code materialCode, material_code materialCode,
material_name materialName,
ymdms,rule_name ruleName, ymdms,rule_name ruleName,
project_no projectNo, project_no projectNo,
STUFF( STUFF(
@ -354,7 +354,7 @@
) quality ) quality
FROM ( FROM (
select select
qct.material_code,qct.material_name, qct.material_code,
CONVERT(varchar(10),qct.income_time, 120) ymdms, CONVERT(varchar(10),qct.income_time, 120) ymdms,
qctd.rule_name,qctd.project_no,qctd.actual_value qctd.rule_name,qctd.project_no,qctd.actual_value
from qc_check_task qct from qc_check_task qct
@ -382,7 +382,9 @@
and qct.supplier_code = #{supplierCode} and qct.supplier_code = #{supplierCode}
</if> </if>
) q ) q
GROUP BY q.material_code,q.material_name, q.ymdms,q.rule_name,q.project_no GROUP BY q.material_code, q.ymdms,q.rule_name,q.project_no
) t0 left join base_product bp on bp.product_code = t0.materialCode
where t0.quality is not null
</select> </select>
<select id="getProjectList" resultType="com.op.quality.domain.QcStaticTable"> <select id="getProjectList" resultType="com.op.quality.domain.QcStaticTable">
select qcp.id recordId, select qcp.id recordId,
@ -390,6 +392,6 @@
from qc_check_type_project qctp from qc_check_type_project qctp
left join qc_check_project qcp on qctp.project_id = qcp.id left join qc_check_project qcp on qctp.project_id = qcp.id
where qctp.type_id = #{checkType} and qctp.property_code = '1' where qctp.type_id = #{checkType} and qctp.property_code = '1'
and qctp.material_code is null and qctp.material_code is null and qcp.rule_name is not null
</select> </select>
</mapper> </mapper>

@ -351,6 +351,15 @@ public class BaseProduct extends BaseEntity {
*/ */
@Excel(name = "报工汇率") @Excel(name = "报工汇率")
private BigDecimal reportRate; private BigDecimal reportRate;
private String mvgr5Nm;
public String getMvgr5Nm() {
return mvgr5Nm;
}
public void setMvgr5Nm(String mvgr5Nm) {
this.mvgr5Nm = mvgr5Nm;
}
public void setCategory(String category) { public void setCategory(String category) {
this.category = category; this.category = category;

@ -1,16 +1,16 @@
package com.op.wms.domain; package com.op.wms.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.op.common.core.annotation.Excel;
import com.op.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; 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;
/** /**
* wms_ods_mate_storage_news *
* *
* @author Open Platform * @author Open Platform
* @date 2023-10-13 * @date 2023-10-13
@ -18,281 +18,298 @@ import java.util.Date;
public class WmsSparePartsLedger extends BaseEntity { public class WmsSparePartsLedger extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
*
*/
@Excel(name = "唯一序列") @Excel(name = "唯一序列")
private String storageId; private String storageId;
/** @Excel(name = "备品备件编码")
* //以前是物料编码
*/
@Excel(name = "仓库编码")
private String whCode;
/**
*
*/
@Excel(name = "区域编号")
private String regionCode;
/**
*
*/
@Excel(name = "库区编码")
private String waCode;
/**
* BC
*/
@Excel(name = "库存类型BC包材")
private String storageType;
/**
*
*/
@Excel(name = "库位编码")
private String wlCode;
/**
*
*/
@Excel(name = "物料号")
private String materialCode; private String materialCode;
/** @Excel(name = "备品备件名称")
* //以前是物料名称
*/
@Excel(name = "物料描述")
private String materialDesc; private String materialDesc;
/** @Excel(name = "所属设备编码")
* private String ownEquipmentCode;
*/
@Excel(name = "总数量")
private BigDecimal amount;
/** @Excel(name = "所属设备名称")
* private String ownEquipmentName;
*/
@Excel(name = "冻结数量", readConverterExp = "预=留")
private BigDecimal storageAmount;
/** @Excel(name = "设备厂家")
* //以前是供应商
*/ private String spareSupplier;
@Excel(name = "占用数量")
private BigDecimal occupyAmount;
/** @Excel(name = "规格型号")
* LPN private String spareMode;
*/
@Excel(name = "LPN", readConverterExp = "预=留")
private String lpn;
/** @Excel(name = "单机装配数量")
* private String unitQuantity;
*/
@Excel(name = "入库批次号", readConverterExp = "预=留")
private String productBatch;
/** @Excel(name = "单价")
* x private BigDecimal unitPrice;
*/
@Excel(name = "入库时间x", readConverterExp = "预=留")
private Date receiveDate;
/**
*
*/
@Excel(name = "生产时间", readConverterExp = "预=留")
private Date productDate;
/**
*
*/
@Excel(name = "单位") @Excel(name = "单位")
private String userDefined1; private String userDefined1;
/** @Excel(name = "代用件")
* SAP private String substituteParts;
*/
@Excel(name = "SAP库位")
private String userDefined2;
/** @Excel(name = "安全库存")
* 3 private String safeStock;
*/
@Excel(name = "备用3")
private String userDefined3;
/** @Excel(name = "现有库存")
* 4 //以前是总数量
*/ private BigDecimal amount;
@Excel(name = "备用4")
private String userDefined4;
/** @Excel(name = "采购方式")
* 5 private String procurementMethod;
*/
@Excel(name = "备用5")
private String userDefined5;
/** @Excel(name = "更换周期(月)")
* 6 private String spareReplacementCycle;
*/
@Excel(name = "备用6")
private String userDefined6;
/** @Excel(name = "采购周期(天)")
* 7 private String procurementCycle;
*/
@Excel(name = "备用7")
private String userDefined7;
/** @Excel(name = "期初结存")
* 8 private String openingBalance;
*/
@Excel(name = "备用8")
private String userDefined8;
/** @Excel(name = "出库记录")
* 9 private String outputRecords;
*/
@Excel(name = "备用9")
private String userDefined9;
/** @Excel(name = "入库记录")
* 10 private String inputRecords;
*/
@Excel(name = "备用10") @Excel(name = "期末盘点")
private String userDefined10; private String endInventory;
@Excel(name = "期末金额")
private BigDecimal endMoney;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date gmtCreate; private Date gmtCreate;
/**
*
*/
@Excel(name = "最后更新人") @Excel(name = "最后更新人")
private String lastModifiedBy; private String lastModifiedBy;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date gmtModified; private Date gmtModified;
/**
*
*/
@Excel(name = "有效标记") @Excel(name = "有效标记")
private String activeFlag; private String activeFlag;
/**
*
*/
@Excel(name = "工厂号") @Excel(name = "工厂号")
private String factoryCode; private String factoryCode;
/** private String delFlag;
* SAP
*/ ///////////////////////////////////////暂时不用字段
@Excel(name = "仓库编码")
private String whCode;
@Excel(name = "区域编号")
private String regionCode;
@Excel(name = "库区编码")
private String waCode;
@Excel(name = "库存类型BC包材")
private String storageType;
@Excel(name = "库位编码")
private String wlCode;
@Excel(name = "冻结数量", readConverterExp = "预=留")
private BigDecimal storageAmount;
//虚拟字段
/** 库存可用数量 */
// @Excel(name = "库存可用数量")
// private BigDecimal availableQuantity;
@Excel(name = "占用数量")
private BigDecimal occupyAmount;
@Excel(name = "LPN", readConverterExp = "预=留")
private String lpn;
@Excel(name = "入库批次号", readConverterExp = "预=留")
private String productBatch;
@Excel(name = "入库时间x", readConverterExp = "预=留")
private Date receiveDate;
@Excel(name = "生产时间", readConverterExp = "预=留")
private Date productDate;
@Excel(name = "SAP库位")
private String userDefined2;
@Excel(name = "备用3")
private String userDefined3;
@Excel(name = "备用4")
private String userDefined4;
@Excel(name = "备用5")
private String userDefined5;
@Excel(name = "备用6")
private String userDefined6;
@Excel(name = "备用7")
private String userDefined7;
@Excel(name = "备用8")
private String userDefined8;
@Excel(name = "备用9")
private String userDefined9;
@Excel(name = "备用10")
private String userDefined10;
@Excel(name = "SAP工厂号") @Excel(name = "SAP工厂号")
private String sapFactoryCode; private String sapFactoryCode;
/**
*
*/
@Excel(name = "库位名称") @Excel(name = "库位名称")
private String wlName; private String wlName;
/** @Excel(name = "使用寿命")
* 0
*/
private String delFlag;
/**
* 使寿
*/
@Excel(name = "使用寿命", readConverterExp = "备=件用")
private String spareUseLife; private String spareUseLife;
/** @Excel(name = "备件名称")
*
*/
@Excel(name = "备件名称", readConverterExp = "备=件用")
private String spareName; private String spareName;
/** @Excel(name = "生产厂商")
*
*/
@Excel(name = "规格型号", readConverterExp = "备=件用")
private String spareMode;
/**
*
*/
@Excel(name = "生产厂商", readConverterExp = "备=件用")
private String spareManufacturer; private String spareManufacturer;
/** @Excel(name = "计量单位")
*
*/
@Excel(name = "供应商", readConverterExp = "备=件用")
private String spareSupplier;
/**
*
*/
@Excel(name = "循环周期", readConverterExp = "备=件用")
private String spareReplacementCycle;
/**
*
*/
@Excel(name = "计量单位", readConverterExp = "备=件用")
private String spareMeasurementUnit; private String spareMeasurementUnit;
/** @Excel(name = "换算单位")
*
*/
@Excel(name = "换算单位", readConverterExp = "备=件用")
private String spareConversionUnit; private String spareConversionUnit;
/** @Excel(name = "换算比例")
*
*/
@Excel(name = "换算比例", readConverterExp = "备=件用")
private String spareConversionRatio; private String spareConversionRatio;
/** @Excel(name = "库存上限")
*
*/
@Excel(name = "库存上限", readConverterExp = "备=件用")
private String spareInventoryFloor; private String spareInventoryFloor;
/** @Excel(name = "库存下限")
*
*/
@Excel(name = "库存下限", readConverterExp = "备=件用")
private String spareInventoryUpper; private String spareInventoryUpper;
/** @Excel(name = "备件类型")
*
*/
@Excel(name = "备件类型", readConverterExp = "备=件用")
private String spareType; private String spareType;
//////////////////////////////////////////////////////////附属表
public void setOwnEquipmentName(String ownEquipmentName) {
this.ownEquipmentName = ownEquipmentName;
}
public String getOwnEquipmentName() {
return ownEquipmentName;
}
public void setUnitQuantity(String unitQuantity) {
this.unitQuantity = unitQuantity;
}
public String getUnitQuantity() {
return unitQuantity;
}
public void setSafeStock(String safeStock) {
this.safeStock = safeStock;
}
public String getSafeStock() {
return safeStock;
}
public void setUnitPrice(BigDecimal unitPrice) {
this.unitPrice = unitPrice;
}
public BigDecimal getUnitPrice() {
return unitPrice;
}
public void setProcurementMethod(String procurementMethod) {
this.procurementMethod = procurementMethod;
}
public String getProcurementMethod() {
return procurementMethod;
}
public void setProcurementCycle(String procurementCycle) {
this.procurementCycle = procurementCycle;
}
public String getProcurementCycle() {
return procurementCycle;
}
public void setOpeningBalance(String openingBalance) {
this.openingBalance = openingBalance;
}
public String getOpeningBalance() {
return openingBalance;
}
public void setOutputRecords(String outputRecords) {
this.outputRecords = outputRecords;
}
public String getOutputRecords() {
return outputRecords;
}
public void setInputRecords(String inputRecords) {
this.inputRecords = inputRecords;
}
public String getInputRecords() {
return inputRecords;
}
public void setEndInventory(String endInventory) {
this.endInventory = endInventory;
}
public String getEndInventory() {
return endInventory;
}
public void setEndMoney(BigDecimal endMoney) {
this.endMoney = endMoney;
}
public BigDecimal getEndMoney() {
return endMoney;
}
public void setSubstituteParts(String substituteParts) {
this.substituteParts = substituteParts;
}
public String getSubstituteParts() {
return substituteParts;
}
public void setOwnEquipmentCode(String ownEquipmentCode) {
this.ownEquipmentCode = ownEquipmentCode;
}
public String getOwnEquipmentCode() {
return ownEquipmentCode;
}
// 领用数量-保养备件领用使用
private BigDecimal applyNum;
public BigDecimal getApplyNum() {
return applyNum;
}
public void setApplyNum(BigDecimal applyNum) {
this.applyNum = applyNum;
}
public void setSpareType(String spareType) { public void setSpareType(String spareType) {
this.spareType = spareType; this.spareType = spareType;
} }
public String getSpareType() { public String getSpareType() {
return spareType; return spareType;
} }
@ -300,7 +317,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setStorageId(String storageId) { public void setStorageId(String storageId) {
this.storageId = storageId; this.storageId = storageId;
} }
public String getStorageId() { public String getStorageId() {
return storageId; return storageId;
} }
@ -308,7 +324,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setWhCode(String whCode) { public void setWhCode(String whCode) {
this.whCode = whCode; this.whCode = whCode;
} }
public String getWhCode() { public String getWhCode() {
return whCode; return whCode;
} }
@ -316,7 +331,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setRegionCode(String regionCode) { public void setRegionCode(String regionCode) {
this.regionCode = regionCode; this.regionCode = regionCode;
} }
public String getRegionCode() { public String getRegionCode() {
return regionCode; return regionCode;
} }
@ -324,7 +338,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setWaCode(String waCode) { public void setWaCode(String waCode) {
this.waCode = waCode; this.waCode = waCode;
} }
public String getWaCode() { public String getWaCode() {
return waCode; return waCode;
} }
@ -332,7 +345,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setStorageType(String storageType) { public void setStorageType(String storageType) {
this.storageType = storageType; this.storageType = storageType;
} }
public String getStorageType() { public String getStorageType() {
return storageType; return storageType;
} }
@ -340,7 +352,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setWlCode(String wlCode) { public void setWlCode(String wlCode) {
this.wlCode = wlCode; this.wlCode = wlCode;
} }
public String getWlCode() { public String getWlCode() {
return wlCode; return wlCode;
} }
@ -348,7 +359,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setMaterialCode(String materialCode) { public void setMaterialCode(String materialCode) {
this.materialCode = materialCode; this.materialCode = materialCode;
} }
public String getMaterialCode() { public String getMaterialCode() {
return materialCode; return materialCode;
} }
@ -356,7 +366,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setMaterialDesc(String materialDesc) { public void setMaterialDesc(String materialDesc) {
this.materialDesc = materialDesc; this.materialDesc = materialDesc;
} }
public String getMaterialDesc() { public String getMaterialDesc() {
return materialDesc; return materialDesc;
} }
@ -364,7 +373,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setAmount(BigDecimal amount) { public void setAmount(BigDecimal amount) {
this.amount = amount; this.amount = amount;
} }
public BigDecimal getAmount() { public BigDecimal getAmount() {
return amount; return amount;
} }
@ -372,15 +380,21 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setStorageAmount(BigDecimal storageAmount) { public void setStorageAmount(BigDecimal storageAmount) {
this.storageAmount = storageAmount; this.storageAmount = storageAmount;
} }
public BigDecimal getStorageAmount() { public BigDecimal getStorageAmount() {
return storageAmount; return storageAmount;
} }
//库存可用数量 虚拟字段
// public void setAvailableQuantity(BigDecimal availableQuantity) {
// this.availableQuantity = availableQuantity;
// }
// public BigDecimal getAvailableQuantity() {
// return availableQuantity;
// }
public void setOccupyAmount(BigDecimal occupyAmount) { public void setOccupyAmount(BigDecimal occupyAmount) {
this.occupyAmount = occupyAmount; this.occupyAmount = occupyAmount;
} }
public BigDecimal getOccupyAmount() { public BigDecimal getOccupyAmount() {
return occupyAmount; return occupyAmount;
} }
@ -388,7 +402,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setLpn(String lpn) { public void setLpn(String lpn) {
this.lpn = lpn; this.lpn = lpn;
} }
public String getLpn() { public String getLpn() {
return lpn; return lpn;
} }
@ -396,7 +409,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setProductBatch(String productBatch) { public void setProductBatch(String productBatch) {
this.productBatch = productBatch; this.productBatch = productBatch;
} }
public String getProductBatch() { public String getProductBatch() {
return productBatch; return productBatch;
} }
@ -404,7 +416,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setReceiveDate(Date receiveDate) { public void setReceiveDate(Date receiveDate) {
this.receiveDate = receiveDate; this.receiveDate = receiveDate;
} }
public Date getReceiveDate() { public Date getReceiveDate() {
return receiveDate; return receiveDate;
} }
@ -412,7 +423,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setProductDate(Date productDate) { public void setProductDate(Date productDate) {
this.productDate = productDate; this.productDate = productDate;
} }
public Date getProductDate() { public Date getProductDate() {
return productDate; return productDate;
} }
@ -420,7 +430,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined1(String userDefined1) { public void setUserDefined1(String userDefined1) {
this.userDefined1 = userDefined1; this.userDefined1 = userDefined1;
} }
public String getUserDefined1() { public String getUserDefined1() {
return userDefined1; return userDefined1;
} }
@ -428,7 +437,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined2(String userDefined2) { public void setUserDefined2(String userDefined2) {
this.userDefined2 = userDefined2; this.userDefined2 = userDefined2;
} }
public String getUserDefined2() { public String getUserDefined2() {
return userDefined2; return userDefined2;
} }
@ -436,7 +444,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined3(String userDefined3) { public void setUserDefined3(String userDefined3) {
this.userDefined3 = userDefined3; this.userDefined3 = userDefined3;
} }
public String getUserDefined3() { public String getUserDefined3() {
return userDefined3; return userDefined3;
} }
@ -444,7 +451,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined4(String userDefined4) { public void setUserDefined4(String userDefined4) {
this.userDefined4 = userDefined4; this.userDefined4 = userDefined4;
} }
public String getUserDefined4() { public String getUserDefined4() {
return userDefined4; return userDefined4;
} }
@ -452,7 +458,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined5(String userDefined5) { public void setUserDefined5(String userDefined5) {
this.userDefined5 = userDefined5; this.userDefined5 = userDefined5;
} }
public String getUserDefined5() { public String getUserDefined5() {
return userDefined5; return userDefined5;
} }
@ -460,7 +465,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined6(String userDefined6) { public void setUserDefined6(String userDefined6) {
this.userDefined6 = userDefined6; this.userDefined6 = userDefined6;
} }
public String getUserDefined6() { public String getUserDefined6() {
return userDefined6; return userDefined6;
} }
@ -468,7 +472,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined7(String userDefined7) { public void setUserDefined7(String userDefined7) {
this.userDefined7 = userDefined7; this.userDefined7 = userDefined7;
} }
public String getUserDefined7() { public String getUserDefined7() {
return userDefined7; return userDefined7;
} }
@ -476,7 +479,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined8(String userDefined8) { public void setUserDefined8(String userDefined8) {
this.userDefined8 = userDefined8; this.userDefined8 = userDefined8;
} }
public String getUserDefined8() { public String getUserDefined8() {
return userDefined8; return userDefined8;
} }
@ -484,7 +486,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined9(String userDefined9) { public void setUserDefined9(String userDefined9) {
this.userDefined9 = userDefined9; this.userDefined9 = userDefined9;
} }
public String getUserDefined9() { public String getUserDefined9() {
return userDefined9; return userDefined9;
} }
@ -492,7 +493,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setUserDefined10(String userDefined10) { public void setUserDefined10(String userDefined10) {
this.userDefined10 = userDefined10; this.userDefined10 = userDefined10;
} }
public String getUserDefined10() { public String getUserDefined10() {
return userDefined10; return userDefined10;
} }
@ -500,7 +500,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setGmtCreate(Date gmtCreate) { public void setGmtCreate(Date gmtCreate) {
this.gmtCreate = gmtCreate; this.gmtCreate = gmtCreate;
} }
public Date getGmtCreate() { public Date getGmtCreate() {
return gmtCreate; return gmtCreate;
} }
@ -508,7 +507,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setLastModifiedBy(String lastModifiedBy) { public void setLastModifiedBy(String lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy; this.lastModifiedBy = lastModifiedBy;
} }
public String getLastModifiedBy() { public String getLastModifiedBy() {
return lastModifiedBy; return lastModifiedBy;
} }
@ -516,7 +514,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setGmtModified(Date gmtModified) { public void setGmtModified(Date gmtModified) {
this.gmtModified = gmtModified; this.gmtModified = gmtModified;
} }
public Date getGmtModified() { public Date getGmtModified() {
return gmtModified; return gmtModified;
} }
@ -524,7 +521,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setActiveFlag(String activeFlag) { public void setActiveFlag(String activeFlag) {
this.activeFlag = activeFlag; this.activeFlag = activeFlag;
} }
public String getActiveFlag() { public String getActiveFlag() {
return activeFlag; return activeFlag;
} }
@ -532,7 +528,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setFactoryCode(String factoryCode) { public void setFactoryCode(String factoryCode) {
this.factoryCode = factoryCode; this.factoryCode = factoryCode;
} }
public String getFactoryCode() { public String getFactoryCode() {
return factoryCode; return factoryCode;
} }
@ -540,7 +535,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSapFactoryCode(String sapFactoryCode) { public void setSapFactoryCode(String sapFactoryCode) {
this.sapFactoryCode = sapFactoryCode; this.sapFactoryCode = sapFactoryCode;
} }
public String getSapFactoryCode() { public String getSapFactoryCode() {
return sapFactoryCode; return sapFactoryCode;
} }
@ -548,7 +542,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setWlName(String wlName) { public void setWlName(String wlName) {
this.wlName = wlName; this.wlName = wlName;
} }
public String getWlName() { public String getWlName() {
return wlName; return wlName;
} }
@ -556,7 +549,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setDelFlag(String delFlag) { public void setDelFlag(String delFlag) {
this.delFlag = delFlag; this.delFlag = delFlag;
} }
public String getDelFlag() { public String getDelFlag() {
return delFlag; return delFlag;
} }
@ -564,7 +556,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareUseLife(String spareUseLife) { public void setSpareUseLife(String spareUseLife) {
this.spareUseLife = spareUseLife; this.spareUseLife = spareUseLife;
} }
public String getSpareUseLife() { public String getSpareUseLife() {
return spareUseLife; return spareUseLife;
} }
@ -572,7 +563,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareName(String spareName) { public void setSpareName(String spareName) {
this.spareName = spareName; this.spareName = spareName;
} }
public String getSpareName() { public String getSpareName() {
return spareName; return spareName;
} }
@ -580,7 +570,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareMode(String spareMode) { public void setSpareMode(String spareMode) {
this.spareMode = spareMode; this.spareMode = spareMode;
} }
public String getSpareMode() { public String getSpareMode() {
return spareMode; return spareMode;
} }
@ -588,7 +577,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareManufacturer(String spareManufacturer) { public void setSpareManufacturer(String spareManufacturer) {
this.spareManufacturer = spareManufacturer; this.spareManufacturer = spareManufacturer;
} }
public String getSpareManufacturer() { public String getSpareManufacturer() {
return spareManufacturer; return spareManufacturer;
} }
@ -596,7 +584,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareSupplier(String spareSupplier) { public void setSpareSupplier(String spareSupplier) {
this.spareSupplier = spareSupplier; this.spareSupplier = spareSupplier;
} }
public String getSpareSupplier() { public String getSpareSupplier() {
return spareSupplier; return spareSupplier;
} }
@ -604,7 +591,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareReplacementCycle(String spareReplacementCycle) { public void setSpareReplacementCycle(String spareReplacementCycle) {
this.spareReplacementCycle = spareReplacementCycle; this.spareReplacementCycle = spareReplacementCycle;
} }
public String getSpareReplacementCycle() { public String getSpareReplacementCycle() {
return spareReplacementCycle; return spareReplacementCycle;
} }
@ -612,7 +598,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareMeasurementUnit(String spareMeasurementUnit) { public void setSpareMeasurementUnit(String spareMeasurementUnit) {
this.spareMeasurementUnit = spareMeasurementUnit; this.spareMeasurementUnit = spareMeasurementUnit;
} }
public String getSpareMeasurementUnit() { public String getSpareMeasurementUnit() {
return spareMeasurementUnit; return spareMeasurementUnit;
} }
@ -620,7 +605,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareConversionUnit(String spareConversionUnit) { public void setSpareConversionUnit(String spareConversionUnit) {
this.spareConversionUnit = spareConversionUnit; this.spareConversionUnit = spareConversionUnit;
} }
public String getSpareConversionUnit() { public String getSpareConversionUnit() {
return spareConversionUnit; return spareConversionUnit;
} }
@ -628,7 +612,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareConversionRatio(String spareConversionRatio) { public void setSpareConversionRatio(String spareConversionRatio) {
this.spareConversionRatio = spareConversionRatio; this.spareConversionRatio = spareConversionRatio;
} }
public String getSpareConversionRatio() { public String getSpareConversionRatio() {
return spareConversionRatio; return spareConversionRatio;
} }
@ -636,7 +619,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareInventoryFloor(String spareInventoryFloor) { public void setSpareInventoryFloor(String spareInventoryFloor) {
this.spareInventoryFloor = spareInventoryFloor; this.spareInventoryFloor = spareInventoryFloor;
} }
public String getSpareInventoryFloor() { public String getSpareInventoryFloor() {
return spareInventoryFloor; return spareInventoryFloor;
} }
@ -644,7 +626,6 @@ public class WmsSparePartsLedger extends BaseEntity {
public void setSpareInventoryUpper(String spareInventoryUpper) { public void setSpareInventoryUpper(String spareInventoryUpper) {
this.spareInventoryUpper = spareInventoryUpper; this.spareInventoryUpper = spareInventoryUpper;
} }
public String getSpareInventoryUpper() { public String getSpareInventoryUpper() {
return spareInventoryUpper; return spareInventoryUpper;
} }

@ -59,33 +59,6 @@
<result property="factoryWorkshop" column="factory_workshop"/> <result property="factoryWorkshop" column="factory_workshop"/>
</resultMap> </resultMap>
<resultMap type="WmsSparePartsLedger" id="WmsSparePartsLedgerResult">
<result property="materialCode" column="material_code"/>
<result property="materialDesc" column="material_desc"/>
<result property="amount" column="amount"/>
<result property="storageType" column="storage_type"/>
<result property="spareUseLife" column="spare_use_life"/>
<result property="spareName" column="spare_name"/>
<result property="spareMode" column="spare_mode"/>
<result property="spareManufacturer" column="spare_manufacturer"/>
<result property="spareSupplier" column="spare_supplier"/>
<result property="spareReplacementCycle" column="spare_replacement_cycle"/>
<result property="spareMeasurementUnit" column="spare_measurement_unit"/>
<result property="spareConversionUnit" column="spare_conversion_unit"/>
<result property="spareConversionRatio" column="spare_conversion_ratio"/>
<result property="spareInventoryFloor" column="spare_inventory_floor"/>
<result property="spareInventoryUpper" column="spare_inventory_upper"/>
<result property="spareType" column="spare_type"/>
<result property="createBy" column="create_by"/>
<result property="gmtCreate" column="gmt_create"/>
<result property="lastModifiedBy" column="last_modified_by"/>
<result property="gmtModified" column="gmt_modified"/>
<result property="activeFlag" column="active_flag"/>
<result property="factoryCode" column="factory_code"/>
<result property="sapFactoryCode" column="sap_factory_code"/>
<result property="delFlag" column="del_flag"/>
</resultMap>
<resultMap type="EquSpareEquipment" id="EquSpareEquipmentResult"> <resultMap type="EquSpareEquipment" id="EquSpareEquipmentResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="spareCode" column="spare_code"/> <result property="spareCode" column="spare_code"/>
@ -471,9 +444,14 @@
group by equipment_type_code,equipment_type_name group by equipment_type_code,equipment_type_name
</select> </select>
<select id="getSparePartsList" parameterType="WmsSparePartsLedger" resultMap="WmsSparePartsLedgerResult"> <select id="getSparePartsList" resultType="WmsSparePartsLedger">
select * select
from wms_ods_mate_storage_news storage_id AS storageId,
storage_type AS storageType,
material_code AS materialCode,
material_desc AS materialDesc,
amount AS amount
from equ_spareparts_ledger
where del_flag = '0' where del_flag = '0'
</select> </select>

@ -65,6 +65,8 @@
<result property="supportPlate" column="support_plate"/> <result property="supportPlate" column="support_plate"/>
<result property="other" column="other"/> <result property="other" column="other"/>
<result property="reportRate" column="report_rate"/> <result property="reportRate" column="report_rate"/>
<result property="mvgr5Nm" column="mvgr5_nm"/>
<!--附属属性--> <!--附属属性-->
<result property="id" column="id"/> <result property="id" column="id"/>
</resultMap> </resultMap>
@ -164,7 +166,7 @@
bp.append_flag, bp.append_flag,
bp.append_percent, bp.append_percent,
bp.mtart, bp.mtart,
bp.report_rate, bp.report_rate,bp.mvgr5_nm,
bpa.id, bpa.id,
bpa.category, bpa.category,
bpa.pc, bpa.pc,
@ -235,6 +237,7 @@
<if test="appendFlag != null">append_flag,</if> <if test="appendFlag != null">append_flag,</if>
<if test="appendPercent != null">append_percent,</if> <if test="appendPercent != null">append_percent,</if>
<if test="mtart != null">mtart,</if> <if test="mtart != null">mtart,</if>
<if test="mvgr5Nm != null">mvgr5_nm,</if>
report_rate, report_rate,
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
@ -281,6 +284,7 @@
<if test="appendFlag != null">#{appendFlag},</if> <if test="appendFlag != null">#{appendFlag},</if>
<if test="appendPercent != null">#{appendPercent},</if> <if test="appendPercent != null">#{appendPercent},</if>
<if test="mtart != null">#{mtart},</if> <if test="mtart != null">#{mtart},</if>
<if test="mvgr5Nm != null">#{mvgr5Nm},</if>
#{reportRate}, #{reportRate},
</trim> </trim>
</insert> </insert>
@ -329,6 +333,8 @@
<if test="appendFlag != null">append_flag = #{appendFlag},</if> <if test="appendFlag != null">append_flag = #{appendFlag},</if>
<if test="appendPercent != null">append_percent = #{appendPercent},</if> <if test="appendPercent != null">append_percent = #{appendPercent},</if>
<if test="mtart != null and mtart != ''">mtart = #{mtart},</if> <if test="mtart != null and mtart != ''">mtart = #{mtart},</if>
<if test="mvgr5Nm != null and mvgr5Nm != ''">mvgr5_nm = #{mvgr5Nm},</if>
report_rate = #{reportRate}, report_rate = #{reportRate},
</trim> </trim>
where product_id = #{productId} where product_id = #{productId}

Loading…
Cancel
Save