|
@@ -1,5 +1,6 @@
|
|
|
package service;
|
|
package service;
|
|
|
|
|
|
|
|
|
|
+import beans.period.Period;
|
|
|
import beans.stockbill.Stockbill;
|
|
import beans.stockbill.Stockbill;
|
|
|
import common.ServiceController;
|
|
import common.ServiceController;
|
|
|
import common.YosException;
|
|
import common.YosException;
|
|
@@ -113,6 +114,7 @@ public class GetStockBillFromTQWms extends ServiceController {
|
|
|
stStockbill.setValue("billno", billno);
|
|
stStockbill.setValue("billno", billno);
|
|
|
stStockbill.setValue("siteid", "MD");
|
|
stStockbill.setValue("siteid", "MD");
|
|
|
stStockbill.setDateValue("billdate");
|
|
stStockbill.setDateValue("billdate");
|
|
|
|
|
+ stStockbill.setValue("period", Period.get(dbConnect, "MD", getDate()));
|
|
|
stStockbill.setValue("stockid", stockid);
|
|
stStockbill.setValue("stockid", stockid);
|
|
|
stStockbill.setValue("remarks", "谈桥立仓入库生成");
|
|
stStockbill.setValue("remarks", "谈桥立仓入库生成");
|
|
|
stStockbill.setValue("createby", "wms");
|
|
stStockbill.setValue("createby", "wms");
|
|
@@ -255,6 +257,7 @@ public class GetStockBillFromTQWms extends ServiceController {
|
|
|
stStockbill.setValue("departmentid", depRowsMap.get("101").get(0).getLong("departmentid"));
|
|
stStockbill.setValue("departmentid", depRowsMap.get("101").get(0).getLong("departmentid"));
|
|
|
stStockbill.setValue("sa_supplierid", suppRowsMap.get("MDCXP-013").get(0).getLong("sa_supplierid"));
|
|
stStockbill.setValue("sa_supplierid", suppRowsMap.get("MDCXP-013").get(0).getLong("sa_supplierid"));
|
|
|
stStockbill.setValue("billdate", createdate);
|
|
stStockbill.setValue("billdate", createdate);
|
|
|
|
|
+ stStockbill.setValue("period", Period.get(dbConnect, "MD", createdate));
|
|
|
stStockbill.setValue("stockid", stockid);
|
|
stStockbill.setValue("stockid", stockid);
|
|
|
stStockbill.setValue("remarks", "wms入库");
|
|
stStockbill.setValue("remarks", "wms入库");
|
|
|
stStockbill.setValue("createby", "wms");
|
|
stStockbill.setValue("createby", "wms");
|