Explorar o código

发货单新增bug修复

hu %!s(int64=3) %!d(string=hai) anos
pai
achega
8b013dfba2

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

@@ -59,7 +59,7 @@ public class dispatch extends Controller {
         if (sa_dispatchid <= 0) {
             sa_dispatchid = createTableID(tableName);
             Rows rowsinfo = dbConnect
-                    .runSqlQuery("select rec_contactsid from sys_enterprise_contacts where workaddress=1 and sys_enterpriseid="
+                    .runSqlQuery("select contactsid from sys_enterprise_contacts where workaddress=1 and sys_enterpriseid="
                             + content.getLong("sys_enterpriseid"));
             if (rowsinfo.isEmpty()) {
                 //return getErrReturnObject().setErrMsg("该订单不存在").toString();
@@ -70,7 +70,7 @@ public class dispatch extends Controller {
             // 物流公司档案ID
             //sqlFactory.addParameter("sa_logiscompid", rowsinfo.get(0).getLong("sa_logiscompid"));
             // 合作企业联系人表ID(收货信息)
-            sqlFactory.addParameter("rec_contactsid", rowsinfo.get(0).getLong("rec_contactsid"));
+            sqlFactory.addParameter("rec_contactsid", rowsinfo.get(0).getLong("contactsid"));
             //运费状态
             sqlFactory.addParameter("freightstatus","");
             sqlFactory.addParameter("remarks",remarks);