订单创建加版本号2

master
zhaoxiaolin 11 months ago
parent c3125ca18b
commit 3a03b61959

@ -174,7 +174,7 @@ public class ProOrderWorkorder extends TreeEntity {
* 2
*/
private String attr2;
private String atrr2;
/**
* 3
*/
@ -376,6 +376,14 @@ public class ProOrderWorkorder extends TreeEntity {
this.bucketCode = bucketCode;
}
public String getAtrr2() {
return atrr2;
}
public void setAtrr2(String atrr2) {
this.atrr2 = atrr2;
}
public Integer getMaterialId() {
return materialId;
}

@ -376,7 +376,7 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
SapCreateOrder sap = new SapCreateOrder();
sap.setWerks(whiteOrder.getFactoryCode());//工厂编码
sap.setAufpar("LJ01");//订单类型
sap.setVerid(whiteOrder.getAttr2());//生产版本
sap.setVerid(whiteOrder.getAtrr2());//生产版本
sap.setMatnr(whiteOrder.getProductCode());//物料编号
sap.setQuantity(whiteOrder.getQuantitySplit() + "");//数量
sap.setDates(DateUtils.parseDateToStr("yyyy-MM-dd", whiteOrder.getProductDate()));//开始时间

@ -27,6 +27,8 @@
<result property="remark" column="remark"/>
<result property="attr1" column="attr1"/>
<result property="attr2" column="attr2"/>
<result property="atrr2" column="atrr2"/>
<result property="attr3" column="attr3"/>
<result property="attr4" column="attr4"/>
<result property="createBy" column="create_by"/>
@ -193,10 +195,10 @@
pow.product_code, pow.product_name,
pow.product_spc, pow.unit, pow.quantity_produced, pow.quantity_split, pow.route_code, pow.prod_line_code,
pow.product_date,
pow.shift_id, pow.parent_order, pow.ancestors, pow.status, pow.remark, pow.attr1,
pow.shift_id, pow.parent_order, pow.ancestors, pow.status, pow.remark, pow.attr1, pow.attr2,
pow.attr3, pow.attr4, pow.create_by, pow.create_time,
pow.update_by, pow.update_time, pow.prod_type, pow.factory_code , pow.end_flag , pow.car_num,
pow.sort_no,pow.workorder_code_sap, po.atrr2 attr2
pow.sort_no,pow.workorder_code_sap, po.atrr2
from pro_order_workorder pow
left join pro_order po on pow.order_code = po.order_code
where (pow.workorder_code = #{workorderId} or pow.workorder_id = #{workorderId})

Loading…
Cancel
Save