찾다

 >  Q&A  >  본문

시간과 분이 00,05,10...일 때 출력 표시를 수정하는 방법

db.getCollection("vocsdatas").aggregate([

{$match:{devname:{$regex:'공원 북쪽(Lvyi 변전소)'}}},

{$group:{_id: "$sendtime",devname:{$max:"$devname"},qyname:{$max:"$qyname"},no:{$max:"$no"},no2:{$max:"$ no2 "},nox:{$max:"$nox"},nh3:{$max:"$nh3"},wendu:{$max:"$wendu"},shidu:{$max:"$shidu" } ,fengsu:{$max:"$fengsu"},fengxiang:{$max:"$fengxiang"},ben:{$max:"$ben"},jiaben:{$max:"$jiaben"}, yiben :{$max:"$yiben"},yiererjiaben:{$max:"$yiererjiaben"},jianduierjiaben:{$max:"$jianduierjiaben"},jiawan:{$max:"$jiawan"},feijiawanzongting: { $max:"$feijiawanzongting"},so2:{$max:"$so2"},h2s:{$max:"$h2s"}}},

{$project:{_id:0,sendtime:" $ _id",devname:1,qyname:1,no:1,no2:1,nox:1,nh3:1,wendu:1,shidu:1,fengsu:1,fengxiang:1,ben:1,jiaben: 1 ,yiben:1,yiererjiaben:1,jianduierjiaben:1,jiawan:1,feijiawanzongting:1,so2:1,h2s:1}},

{$sort:{sendtime:-1}},

{$ 건너뛰기 :20},

{$한도:10}

]

)


夏末~夏末~2042일 전983

모든 응답(0)나는 대답할 것이다

답장 없음
  • 취소회신하다