基于配置文件的查询,xml文件sample <?xml version="1.0" encoding="GB2312"?> <query title="箱量查询"> <statements> <statement name="querysdsmpf" database="DB2"> <titles> <title>代码</title> <title>20f</title> </titles> </statement> <content> <![CDATA[select smcode,20f from sdflib.sdsmpf where smcode=@smcode and smdate>=@fromdate and smdate<=@todate ]]> </content> </statements> <conditions> <condition name="smcode" title="代码类型" type="String" length=3 pairtype="None"/> <condition name="fromdate" title="起始日期" type="Interger" length=8 pairtype="OneMonth"/> <condition name="todate" title="结束日期" type="Interger" length=8 pairtype="OneMonth"/> </conditions> </query>