|
|
@@ -42,6 +42,10 @@ public class LSALogistics extends Controller {
|
|
|
Long sys_enterpriseid = content.getLong("sys_enterpriseid");
|
|
|
//出入库表货品明细
|
|
|
JSONArray items = content.getJSONArray("items");
|
|
|
+ String billdate = content.getStringValue("billdate");
|
|
|
+ if(billdate.equals("")){
|
|
|
+ return getErrReturnObject().setErrMsg("单据日期不能为空").toString();
|
|
|
+ }
|
|
|
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
if (sys_enterpriseid <= 0 || isEnterpriseEmpty(this)) {
|
|
|
@@ -153,7 +157,7 @@ public class LSALogistics extends Controller {
|
|
|
querySQL.setTableAlias("t1");
|
|
|
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "st_stockbill_items", "t2", "t2.st_stockbill_itemsid=t1.st_stockbill_itemsid and t2.siteid=t1.siteid",
|
|
|
- "rowno","itemid", "itemno", "itemname", "model", "unit", "price", "amount", "remarks");
|
|
|
+ "rowno", "itemid", "itemno", "itemname", "model", "unit", "price", "amount", "remarks");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "st_stockbill", "t3", "t3.st_stockbillid =t2.st_stockbillid and t3.siteid=t2.siteid",
|
|
|
"billno");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "plm_item", "t4", "t4.itemid =t2.itemid and t4.siteid=t2.siteid",
|