Selaa lähdekoodia

发货单手工关闭对接k3时表体id改为string类型

hu 2 vuotta sitten
vanhempi
commit
f0f14b6d69

+ 2 - 1
src/custom/restcontroller/webmanage/sale/dispatch/dispatch.java

@@ -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);