|
@@ -30,7 +30,7 @@ SELECT t1.itemid,
|
|
|
t1.cheek,
|
|
t1.cheek,
|
|
|
t1.delistingstatus,
|
|
t1.delistingstatus,
|
|
|
t6.auxunitid,
|
|
t6.auxunitid,
|
|
|
- t6. unitgroupname,
|
|
|
|
|
|
|
+ t6.unitgroupname,
|
|
|
t7.unitname axunitname,
|
|
t7.unitname axunitname,
|
|
|
t8.caliber,
|
|
t8.caliber,
|
|
|
t8.pressure,
|
|
t8.pressure,
|
|
@@ -51,6 +51,6 @@ FROM plm_item t1
|
|
|
LEFT JOIN plm_unit t2 ON t2.unitid = t1.unitid AND t2.siteid = t1.siteid
|
|
LEFT JOIN plm_unit t2 ON t2.unitid = t1.unitid AND t2.siteid = t1.siteid
|
|
|
LEFT JOIN plm_unitgroup t6 ON t6.unitgroupid = t1.unitgroupid
|
|
LEFT JOIN plm_unitgroup t6 ON t6.unitgroupid = t1.unitgroupid
|
|
|
LEFT JOIN plm_unit t7 ON t7.unitid = t6.unitid AND t7.siteid = t6.siteid
|
|
LEFT JOIN plm_unit t7 ON t7.unitid = t6.unitid AND t7.siteid = t6.siteid
|
|
|
- LEFT JOIN plm_itemextend t8 ON t8.itemid= t1.itemid AND t8.siteid = t1.siteid
|
|
|
|
|
|
|
+ LEFT JOIN plm_itemextend t8 ON t8.itemid = t1.itemid AND t8.siteid = t1.siteid
|
|
|
WHERE t1.siteid = $siteid$
|
|
WHERE t1.siteid = $siteid$
|
|
|
and $where$
|
|
and $where$
|