select a.did,a.dname,a.dtel,a.detailed,(select replace(WMSYS.WM_CONCAT(b.ocode),',',',') from tdc_order b where b.dtel='15919941706' and b.ostate in(0,1)) ocode from tdc_diners a where a.dtel='15919941706'