801.temp支持时序.mql 887 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. MATCH (staff:/mingdao1/staff)
  2. -[:is_member_of_project*1..1]->
  3. (project:/mingdao1/project WHERE attr1 = 'CN002859P')
  4. RETURN staff.attr0 AS "员工工号", staff.attr1 AS "员工姓名", staff.staff_perf as "工时", project.id as "项目"
  5. into temp1;
  6. select "项目", "员工工号", "员工姓名"
  7. from temp1
  8. /**
  9. output()
  10. **/
  11. ;
  12. select id, staff_perf,attr1 from /mingdao1/staff where attr0='UN0193'
  13. /**
  14. timeout(3m)
  15. output()
  16. **/
  17. ;
  18. select "项目", "员工工号", "员工姓名", 工时
  19. from temp1
  20. where 员工工号='UN0193'
  21. /**
  22. output()
  23. **/
  24. ;
  25. select "项目", "员工工号", "员工姓名", 工时.time('2023-06-01 00:00:00','2023-06-10 23:59:59').find(name='CN002859P')
  26. from temp1
  27. /**
  28. output()
  29. **/
  30. ;
  31. select "项目", "员工工号", "员工姓名", 工时.time('2023-06-01 00:00:00','2023-06-10 23:59:59').find(name='CN002859P').unit('sum', '1d')
  32. from temp1
  33. /**
  34. output()
  35. **/
  36. ;