diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java
index c203c4c5..b15d5932 100644
--- a/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java
+++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/BaseProduct.java
@@ -165,6 +165,10 @@ public class BaseProduct extends BaseEntity {
@Excel(name = "补料比例")
private String appendPercent;
+ /** 物料类型 */
+ @Excel(name = "物料类型")
+ private String mtart;
+
public void setProductId(String productId) {
this.productId = productId;
}
@@ -432,6 +436,13 @@ public class BaseProduct extends BaseEntity {
return appendPercent;
}
+ public void setMtart(String mtart) {
+ this.mtart = mtart;
+ }
+
+ public String getMtart() {
+ return mtart;
+ }
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -476,6 +487,7 @@ public class BaseProduct extends BaseEntity {
.append("convIssue", getConvIssue())
.append("appendFlag", getAppendFlag())
.append("appendPercent", getAppendPercent())
+ .append("mtart", getMtart())
.toString();
}
}
diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml
index ea713999..06c39ee5 100644
--- a/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml
+++ b/op-modules/op-wms/src/main/resources/mapper/wms/BaseProductMapper.xml
@@ -47,10 +47,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+
- select product_id, product_code, product_desc_zh, product_model,product_desc_en, rule_code, old_product_code, parts_product_code, sku_barcode, length, width, height, gross_weight, net_weight, tare_weight, volume, unit_price, product_group, product_group_name, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, create_by, create_time, update_by, update_time, factory_code, active_flag, sync_flag, primary_uom, del_flag, bstme, basic_order, conv_order, ausme, basic_issue, conv_issue, append_flag, append_percent from base_product
+ select product_id, product_code, product_desc_zh, product_model,product_desc_en, rule_code, old_product_code, parts_product_code, sku_barcode, length, width, height, gross_weight, net_weight, tare_weight, volume, unit_price, product_group, product_group_name, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, create_by, create_time, update_by, update_time, factory_code, active_flag, sync_flag, primary_uom, del_flag, bstme, basic_order, conv_order, ausme, basic_issue, conv_issue, append_flag, append_percent,mtart from base_product
@@ -145,6 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
conv_issue,
append_flag,
append_percent,
+ mtart,
#{productId},
@@ -189,6 +194,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{convIssue},
#{appendFlag},
#{appendPercent},
+ #{mtart},
@@ -227,7 +233,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
active_flag = #{activeFlag},
sync_flag = #{syncFlag},
primary_uom = #{primaryUom},
- del_flag = #{delFlag},
bstme = #{bstme},
basic_order = #{basicOrder},
conv_order = #{convOrder},
@@ -236,16 +241,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
conv_issue = #{convIssue},
append_flag = #{appendFlag},
append_percent = #{appendPercent},
+ mtart = #{mtart},
where product_id = #{productId}
-
- delete from base_product where product_id = #{productId}
-
+
+ update base_product
+ set del_flag = '1'
+ where product_id = #{productId}
+
- delete from base_product where product_id in
+ update base_product
+ set del_flag = '1'
+ where product_id in
#{productId}
@@ -255,12 +265,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select product_desc_zh
from base_product
where product_desc_zh = #{productDescZh}
+ and del_flag ='0'
\ No newline at end of file