lf.sql.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE xml>
  3. <sqls biz="xw">
  4. <!-- 用到再弄。Lin
  5. <sql name="jfry" type="select">
  6. <statement>
  7. <![CDATA[
  8. select ryid,xm from ry where jlztm in (22,25,51)
  9. ]]>
  10. </statement>
  11. <where name="jfryWhere">
  12. <statement>
  13. <![CDATA[
  14. and xm like '%' || :xm || '%'
  15. ]]>
  16. </statement>
  17. <param name="xm" type="char" scope="request" nullable="false"/>
  18. </where>
  19. </sql>
  20. -->
  21. <sql name="jfbj" desc="接访班级">
  22. <stmt><![CDATA[
  23. select BJID,MC from BJ where JLZTM in(22,25,51)
  24. ]]></stmt>
  25. <where name="jfbjWhere">
  26. <stmt><![CDATA[
  27. and MC like '%' || :mc || '%'
  28. ]]></stmt>
  29. <parm name="mc"/>
  30. </where>
  31. </sql>
  32. <sql name="jfbm" desc="接访部门">
  33. <stmt><![CDATA[
  34. select BMID,MC from BM where JLZTM in(22,25,51)
  35. ]]></stmt>
  36. <where name="jfbmWhere">
  37. <stmt><![CDATA[
  38. and MC like '%' || :mc || '%'
  39. ]]></stmt>
  40. <parm name="mc"/>
  41. </where>
  42. </sql>
  43. <sql name="lfsy" desc="来访事由">
  44. <stmt><![CDATA[
  45. select YYID,YY from YY where JLZTM in(22,25,51) and DXM='lf'
  46. ]]></stmt>
  47. <where name="lfsyWhere">
  48. <stmt><![CDATA[
  49. and yy like '%' || :yy || '%'
  50. ]]></stmt>
  51. <parm name="yy"/>
  52. </where>
  53. <order field="sycs" asc="false"/>
  54. </sql>
  55. </sqls>