소스 검색

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

hu 2 년 전
부모
커밋
f0f14b6d69
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/custom/restcontroller/webmanage/sale/dispatch/dispatch.java

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