Bläddra i källkod

订单明细sql查询更改

hu 4 år sedan
förälder
incheckning
1de10fc535

+ 1 - 4
src/rest/openapi/restcontroller/wechatapp/saorder/SQL/订单发货明细列表查询.sql

@@ -8,13 +8,10 @@ select convert(varchar(10), t1.recheckdate, 120) fdate,
        t2.fspec,
        t2.fmodel,
        t2.fqty,
-       t4.frateprice,
-       t4.frateamount ,
-       t2.famount 
+       t3.fprojectnotes
 from sainvoice t1
          inner join sainvoicedetail t2 on t1.siteid = t2.siteid and t1.sainvoiceid = t2.fparentid
          inner join saorder t3 on t1.siteid = t3.siteid and t1.fsonum = t3.fsonum
-         inner join saorderdetail t4 on t4.siteid = t2.siteid and t4.saorderdetailid = t2.fsourceid
 where t1.fstatus in ('¸´ºË', '¹Ø±Õ')
   and t3.ftype != '¹¤¾ß½è³öµ¥'
   and t1.siteid =$siteid$

+ 1 - 0
src/rest/openapi/restcontroller/wechatapp/saorder/SQL/订单明细列表查询.sql

@@ -26,6 +26,7 @@ select t1.fsonum,
        t2.fsaler,
        t4.displayname fsalername ,--ÇøÓò¾­ÀíÃû³Æ
        t2.fagentnum,
+       t2.fprojectnotes,
        t2.fagentshortname
 from saorderdetail t1
        inner join saorder t2 on t1.fparentid = t2.saorderid