zy.sql.xml 918 B

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE xml>
  3. <sqls biz="jw">
  4. <!-- <sql name="sjzy" desc="上级专业">-->
  5. <!-- <stmt><![CDATA[-->
  6. <!-- select * from (select zyid,mc,Nvl(sjzyid, 1) sjzyid from dc.zy where jlztm in (22,51) and sjzyid is null)-->
  7. <!-- where zyid <> Nvl(:sjzyid,0)-->
  8. <!-- ]]></stmt>-->
  9. <!-- <parm name="sjzyid" type="long"/>-->
  10. <!-- <where name="mcWhere">-->
  11. <!-- <stmt>-->
  12. <!-- <![CDATA[and mc like '%'||:mc||'%']]></stmt>-->
  13. <!-- <parm name="mc"/>-->
  14. <!-- </where>-->
  15. <!-- </sql>-->
  16. <sql name="zy" desc="产品">
  17. <stmt><![CDATA[
  18. select ZYID,MC from ZY where JLZTM in(22,25,51)
  19. ]]></stmt>
  20. <where name="keyword"> <!-- ="mcWhere">。解决有 <objp.ss filterField= 时,没有拼上 "xmWhere"、"mcWhere" 等 <where 子句。Lin -->
  21. <stmt><![CDATA[and mc like '%'||:mc||'%' ]]></stmt>
  22. <parm name="mc"/>
  23. </where>
  24. </sql>
  25. </sqls>