|
|
@@ -488,7 +488,7 @@ public class dispatch extends Controller {
|
|
|
Rows rows = dbConnect.runSqlQuery("select sa_dispatchid,status,billno,sa_orderid from sa_dispatch where sa_dispatchid ='"
|
|
|
+ sa_dispatchid + "' and siteid='" + siteid + "'");
|
|
|
|
|
|
- Rows rowsdetail = dbConnect.runSqlQuery("select sa_dispatch_itemsid from sa_dispatch_items where sa_dispatchid ='"
|
|
|
+ Rows rowsdetail = dbConnect.runSqlQuery("select cast(sa_dispatch_itemsid AS CHAR) as sa_dispatch_itemsid from sa_dispatch_items where sa_dispatchid ='"
|
|
|
+ sa_dispatchid + "' and siteid='" + siteid + "'");
|
|
|
if (rows.isEmpty()) {
|
|
|
return getErrReturnObject().setErrMsg("该发货单不存在")
|
|
|
@@ -506,6 +506,7 @@ public class dispatch extends Controller {
|
|
|
object.put("method", "getIcstockbillMsg");
|
|
|
|
|
|
JSONObject content = new JSONObject();
|
|
|
+
|
|
|
content.put("sa_dispatch_itemsids", rowsdetail.toJsonArray("sa_dispatch_itemsid"));
|
|
|
object.put("content", content);
|
|
|
|