env.sql.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE xml>
  3. <sqls biz="env">
  4. <!-- 省 > 市 > 县 -->
  5. <sql name="sheng" desc="省">
  6. <stmt><![CDATA[
  7. select DQM,MC from DQ where DQM like '__0000' order by dqm
  8. ]]></stmt>
  9. </sql>
  10. <sql name="shiBySheng" desc="市"> <!-- 原:shi -->
  11. <stmt><![CDATA[
  12. select DQM,MC from DQ where DQM like substr(:sheng,0,2)|| '__' ||'00' and dqm not like '__0000' order by dqm
  13. ]]></stmt>
  14. <parm name="sheng" type="int"/>
  15. </sql>
  16. <sql name="xianByShi" desc="县"> <!-- 原:xian -->
  17. <stmt><![CDATA[
  18. select DQM,MC from DQ where DQM like substr(:shi,0,4)|| '__' and dqm not like '____00' order by dqm
  19. ]]></stmt>
  20. <parm name="shi" type="int"/>
  21. </sql>
  22. <sql name="bpmtjgwid" desc="用于提交时选择岗位">
  23. <stmt><![CDATA[
  24. select gwid,mc from gw where gwid in( select gwid from jrgw where ryid=:sjryid and jlztm in(22,51))
  25. ]]></stmt>
  26. <parm name="sjryid" type="long" val="{sess:'ssUser.ryid'}"/>
  27. </sql>
  28. <!-- PC桌面模板 -->
  29. <sql name="pcGrsymb" desc="PC桌面模板">
  30. <stmt><![CDATA[
  31. select GRSYMBID,MC from GRSYMB where FWSBLBM=1
  32. ]]></stmt>
  33. </sql>
  34. <!-- 手机首页模板 -->
  35. <sql name="mpGrsymb" desc="手机首页模板">
  36. <stmt><![CDATA[
  37. select GRSYMBID,MC from GRSYMB where FWSBLBM=51
  38. ]]></stmt>
  39. </sql>
  40. <!-- PC捷径模板 -->
  41. <sql name="pcGrjjmb" desc="PC捷径模板">
  42. <stmt><![CDATA[
  43. select GRJJMBID,MC from GRJJMB where FWSBLBM=1
  44. ]]></stmt>
  45. </sql>
  46. <!-- 手机捷径模板 -->
  47. <sql name="mpGrjjmb" desc="手机捷径模板">
  48. <stmt><![CDATA[
  49. select GRJJMBID,MC from GRJJMB where FWSBLBM=51
  50. ]]></stmt>
  51. </sql>
  52. <!-- 个人统计 -->
  53. <sql name="fstTjzb" desc="一级统计指标"> <!-- "yjtjzb" -->
  54. <stmt><![CDATA[
  55. select tjzbm,mc from tjzb where sjtjzbm is null and nvl(dxm,'0')=:dxm
  56. ]]></stmt>
  57. <parm name="dxm"/>
  58. </sql>
  59. </sqls>