|
|
@@ -29,4 +29,7 @@ from plm_item t1
|
|
|
LEFT JOIN plm_unit t5 ON t5.unitid = t2.auxunitid AND t5.siteid = t2.siteid
|
|
|
WHERE t1.siteid = $siteid$
|
|
|
and t1.status = '审核'
|
|
|
- and $where$
|
|
|
+ and $where$
|
|
|
+ and t1.itemid in (SELECT t1.itemid
|
|
|
+ from plm_item_tradefield t1 WHERE t1.tradefield = $tradefield$
|
|
|
+ and t1.siteid = $siteid$)
|