湿料计划

highway
wws 1 year ago
parent ac62f12294
commit 82a6ce44f2

@ -2,17 +2,27 @@ package com.op.plan.domain;
// 订单-物料实体类 // 订单-物料实体类
public class BaseProduct { public class BaseProduct {
private String productId;
private String productCode; private String productCode;
private String productDescZh; private String productDescZh;
@Override @Override
public String toString() { public String toString() {
return "BaseProduct{" + return "BaseProduct{" +
"productCode='" + productCode + '\'' + "productId='" + productId + '\'' +
", productCode='" + productCode + '\'' +
", productDescZh='" + productDescZh + '\'' + ", productDescZh='" + productDescZh + '\'' +
'}'; '}';
} }
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductCode() { public String getProductCode() {
return productCode; return productCode;
} }
@ -29,11 +39,6 @@ public class BaseProduct {
this.productDescZh = productDescZh; this.productDescZh = productDescZh;
} }
public BaseProduct(String productCode, String productDescZh) {
this.productCode = productCode;
this.productDescZh = productDescZh;
}
public BaseProduct() { public BaseProduct() {
} }
} }

@ -6,12 +6,13 @@
<resultMap type="BaseProduct" id="BaseProductResult"> <resultMap type="BaseProduct" id="BaseProductResult">
<result property="productCode" column="product_code" /> <result property="productCode" column="product_code" />
<result property="productId" column="product_id" />
<result property="productDescZh" column="product_desc_zh" /> <result property="productDescZh" column="product_desc_zh" />
</resultMap> </resultMap>
<sql id="selectBaseProductVo"> <sql id="selectBaseProductVo">
select product_code, product_desc_zh from base_product select product_id,product_code, product_desc_zh from base_product
</sql> </sql>
<select id="selectBaseProductList" parameterType="BaseProduct" resultMap="BaseProductResult"> <select id="selectBaseProductList" parameterType="BaseProduct" resultMap="BaseProductResult">

Loading…
Cancel
Save