"select t1.*,t2.itemno,t2.model,t2.itemname,t2.spec,t3.sonum from sa_workorder_node_items t1 " +
"select t1.*,t2.itemno,t2.model,t2.itemname,t2.spec,t3.sonum from sa_workorder_node_items t1 " +
"left join plm_item t2 on t1.itemid=t2.itemid and t1.siteid=t2.siteid " +
"left join plm_item t2 on t1.itemid=t2.itemid and t1.siteid=t2.siteid " +
- "left join sa_order t3 on t1.sourceid=t3.sa_orderid and t1.siteid=t3.siteid and t3.sourcetable='sa_order' where t1.sa_workorderid=" + sa_workorderid + " and ifnull(t1.isnew,0)=0 and t1.siteid='"
+ "left join sa_order t3 on t1.sourceid=t3.sa_orderid and t1.siteid=t3.siteid and t1.sourcetable='sa_order' where t1.sa_workorderid=" + sa_workorderid + " and ifnull(t1.isnew,0)=0 and t1.siteid='"