浏览代码

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

hu 2 年之前
父节点
当前提交
65f6f2845e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/custom/restcontroller/webmanage/sale/aftersalesmag/SQL/商品列表查询.sql

+ 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$