Преглед изворни кода

u8对接开启及测试(单条)

hxh пре 4 месеци
родитељ
комит
979f5a114b

+ 1 - 1
src/custom/restcontroller/webmanage/sale/u8/SQL/销售出库U8上传单据查询.sql

@@ -2,7 +2,7 @@ select t1.address,t1.sys_enterpriseid,t1.billno,t1.name,t1.billdate,t1.remarks,t
        case when t1.typemx='正品入库'then'红'else rb end rb,t1.sourceid,t1.sourceobject,t1.st_stockbillid,t2.u8id,t1.status,t1.type,t1.typemx,t1.outplace  from st_stockbill t1
                                                                                                                                                                  inner join (
     select distinct st_stockbillid,inserted.u8id,inserted.entity from u8billcodes
-        inner join u8 inserted on u8billcodes.u8id=inserted.u8id where inserted.u8id=$u8id$
+        inner join u8 inserted on u8billcodes.u8id=inserted.u8id where inserted.u8id=$u8id$ and st_stockbillid=4876674
 ) t2 on t1.st_stockbillid=t2.st_stockbillid
                                                                                                                                                                  inner join sa_agents t3 on t1.sys_enterpriseid=t3.sys_enterpriseid and t2.entity=t3.entity
 		

+ 2 - 2
src/custom/restcontroller/webmanage/sale/u8/SQL/销售出库U8上传序列号查询.sql

@@ -156,6 +156,6 @@ WHERE t4.type = '电商'
   AND t5.topclassnum = '集成灶'
     )
 -- 最终结果
-SELECT * FROM main_query
+SELECT * FROM main_query where st_stockbillid=4876674
 UNION ALL
-SELECT * FROM ecommerce_query;
+SELECT * FROM ecommerce_query where st_stockbillid=4876674;

+ 6 - 5
src/custom/restcontroller/webmanage/sale/u8/u8.java

@@ -786,9 +786,10 @@ public class u8 extends Controller {
         }
         content.put("detail", detail);
         object.put("content", content);
-        // U8Rest rest = new U8Rest();
+        U8Rest rest = new U8Rest();
 
-        // String a = rest.post(object.toString());
+        String a = rest.post(object.toString());
+        System.err.println(a);
         return getSucReturnObject().toString();
     }
 
@@ -857,9 +858,9 @@ public class u8 extends Controller {
         object.put("content", content);
         U8Rest rest = new U8Rest();
 
-        // String a = rest.post(object.toString());
-        //System.err.println(a);
-        // ((PaoSet) getThisPaoSet()).addWarning(new P2AppException("", a));
+        String a = rest.post(object.toString());
+        System.err.println(a);
+//        ((PaoSet) getThisPaoSet()).addWarning(new P2AppException("", a));
         return getSucReturnObject().toString();
     }