|
|
@@ -16,7 +16,8 @@ import com.uas.platform.core.model.Status;
|
|
|
*/
|
|
|
public class PurchaseNotify {
|
|
|
|
|
|
- private String pn_code;
|
|
|
+ private long pn_id;
|
|
|
+ private long ve_uu;
|
|
|
private Date pn_indate;
|
|
|
private Double pn_qty;
|
|
|
private Date pn_delivery;
|
|
|
@@ -25,12 +26,12 @@ public class PurchaseNotify {
|
|
|
private String pn_remark;
|
|
|
private Double pn_endqty;
|
|
|
|
|
|
- public String getPn_code() {
|
|
|
- return pn_code;
|
|
|
+ public long getPn_id() {
|
|
|
+ return pn_id;
|
|
|
}
|
|
|
|
|
|
- public void setPn_code(String pn_code) {
|
|
|
- this.pn_code = pn_code;
|
|
|
+ public void setPn_id(long pn_id) {
|
|
|
+ this.pn_id = pn_id;
|
|
|
}
|
|
|
|
|
|
public Date getPn_indate() {
|
|
|
@@ -89,6 +90,14 @@ public class PurchaseNotify {
|
|
|
this.pn_endqty = pn_endqty;
|
|
|
}
|
|
|
|
|
|
+ public long getVe_uu() {
|
|
|
+ return ve_uu;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVe_uu(long ve_uu) {
|
|
|
+ this.ve_uu = ve_uu;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 转为平台的客户送货提醒
|
|
|
*
|
|
|
@@ -96,13 +105,14 @@ public class PurchaseNotify {
|
|
|
*/
|
|
|
public PurchaseNotice convert() {
|
|
|
PurchaseNotice notice = new PurchaseNotice();
|
|
|
- notice.setCode(pn_code);
|
|
|
+ notice.setSourceId(pn_id);
|
|
|
notice.setDate(pn_indate);
|
|
|
notice.setDelivery(pn_delivery);
|
|
|
notice.setEndQty(pn_endqty);
|
|
|
notice.setEnUU(SystemSession.getUser().getEnterprise().getUu());
|
|
|
notice.setQty(pn_qty);
|
|
|
notice.setRemark(pn_remark);
|
|
|
+ notice.setVendUU(ve_uu);
|
|
|
PurchaseOrder order = new PurchaseOrder();
|
|
|
order.setCode(pn_ordercode);
|
|
|
PurchaseOrderItem orderItem = new PurchaseOrderItem();
|