command.executesql("select a.* , (select wm_concat(domain||FOLDER||'/'||PATH||'$'||NAME) from photos b where a.id=b.areaid ) src,(select wm_concat(url) from area_monitor c ,monitor d where a.id=c.areaid and c.monitorid=d.id )monitor from area a where typeid in("+req.params.id+") order by cjsj ",(result)=>{
letsqlstr="select b.*, (select wm_concat(domain||FOLDER||'/'||PATH||'$'||NAME) from photos a where a.areaid=b.id ) src from "+extenddata+" b where b.id in (select id from area where typeid='"+id+"')";