web_sys_post_list.xml 850 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <select>
  3. <selectstr>
  4. SELECT u_sys_post.postid
  5. ,u_sys_post.scid
  6. ,u_sys_post.deptid
  7. ,u_sys_post.empid
  8. ,u_sys_post.sdate
  9. ,u_sys_post.edate
  10. ,u_sys_post.dscrp
  11. ,u_sys_post.opemp
  12. ,u_sys_post.opdate
  13. ,u_sys_post.level
  14. ,u_sys_post.type
  15. ,CASE WHEN u_sys_post.empid = -1 THEN '全部用户' ELSE u_user_jlhprice.username END AS username
  16. FROM u_sys_post
  17. LEFT OUTER JOIN u_user_jlhprice ON u_sys_post.empid = u_user_jlhprice.empid
  18. </selectstr>
  19. <where>
  20. <when notnull="@type">
  21. u_sys_post.type = @type
  22. </when>
  23. <when notnull="@empid">
  24. u_sys_post.empid = -1 OR @empid = 0 OR u_sys_post.empid = @empid
  25. </when>
  26. <when>
  27. getdate() >= u_sys_post.sdate AND getdate() <= u_sys_post.edate
  28. </when>
  29. </where>
  30. <orderstr>
  31. opdate DESC
  32. </orderstr>
  33. <displayfields>
  34. </displayfields>
  35. </select>