|
@@ -12,7 +12,7 @@ SELECT t2.itemno,
|
|
|
FROM plm_item t2
|
|
FROM plm_item t2
|
|
|
left join plm_unit t4 on t2.unitid=t4.unitid and t2.siteid=t4.siteid
|
|
left join plm_unit t4 on t2.unitid=t4.unitid and t2.siteid=t4.siteid
|
|
|
where t2.siteid = $siteid$
|
|
where t2.siteid = $siteid$
|
|
|
- and ($where$) and t2.status !='新建'
|
|
|
|
|
|
|
+ and ($where$)
|
|
|
group by t2.itemno,
|
|
group by t2.itemno,
|
|
|
t2.itemid,
|
|
t2.itemid,
|
|
|
t2.itemname,
|
|
t2.itemname,
|