Ver Fonte

退货单添加产品列表添加单位

hu há 2 anos atrás
pai
commit
65f6f2845e

+ 3 - 1
src/custom/restcontroller/webmanage/sale/aftersalesmag/SQL/商品列表查询.sql

@@ -2,9 +2,11 @@ SELECT
 	0 sa_orderitemsid,
 	0 sa_orderid,
 	1 qty,
-	t1.*
+	t1.*,
+	t2.unitname unit
 FROM
 	plm_item t1
+ left join plm_unit t2 on t1.unitid=t2.unitid and t1.siteid=t2.siteid
 WHERE
   t1.siteid = $siteid$
 	AND $where$