<select id="getZhAllCheckerConfigList" parameterClass="java.util.HashMap" resultClass="java.util.HashMap" remapResults="true"> <![CDATA[ select bb.* from ( select aa.*, rownum RR from ( select distinct t.APPLYFORM_ID , t.CONTRACT_NO , t.PO_NO , i.productline_id, (select e.item_name from sup_dict_item e where e.item_id = i.productline_id and e.nls_lang = #nls#) as PRODUCT_LINE_NAME, s.product_family as product_family, (select e.item_name from sup_dict_item e where e.item_id = s.product_family and e.nls_lang = #nls#) as PRODUCT_FAMILY_NAME, s.product, s.pp_product, i.po_product_name, i.po_version, t.CUSTOMER_ID, (select c.Namechn from sup_ent_company c where c.companyid=t.CUSTOMER_ID and rownum=1) as CUSTOMER, t.APPLICANT_REGION_ID, (select v.sChnDeptName from sup_v_tsd_region v where v.iDeptID=t.APPLICANT_REGION_ID and rownum=1) as APPLICANT_REGION , t.APPLICANT_OFFICE_ID, (select v.schndeptname from sup_v_tsd_region v where v.iDeptID=t.APPLICANT_OFFICE_ID and rownum=1)as APPLICANT_OFFICE, t.APPLYFORM_STATUS , (select d.item_name from sup_dict_item d where d.item_id = t.APPLYFORM_STATUS and d.nls_lang = #nls# ) as STATUS_NAME, t.TIME_ON_PLAN, t.GRANT2TIME, t.AUDITER , to_char(t.APPLY_TIME,'yyyy-mm-dd') APPLY_TIME, t.CREATOR, t.APPLICANT_ACCOUNT, t.applyform_name, to_char(t.LAST_MODIFIED_TIME,'yyyy-mm-dd') LAST_MODIFIED_TIME from sup_po_apply_form t inner join sup_po_sw_info i on t.CONTRACT_NO = i.CONTRACT_NO and t.pp_product = i.pp_product inner join sup_sc_family_info s on i.pp_product = s.pp_product where 1=1 ]]> <dynamic> <isNotEmpty property="APPLYFORM_STATUS" prepend="AND"> t.APPLYFORM_STATUS in ($APPLYFORM_STATUS$) </isNotEmpty> <isNotEmpty property="APPLY_TIME" prepend="AND"> TO_CHAR(t.APPLY_TIME, 'yyyy-mm-dd') = #APPLY_TIME# </isNotEmpty> <isNotEmpty property="CONTRACT_NO" prepend="AND"> Upper(t.CONTRACT_NO) like Upper('%'||#CONTRACT_NO#||'%') </isNotEmpty> <isNotEmpty property="PO_NO" prepend="AND"> Upper(t.PO_NO) like Upper('%'||#PO_NO#||'%') </isNotEmpty> <isNotEmpty property="APPLYFORM_ID" prepend="AND"> Upper(t.APPLYFORM_ID) like Upper('%'||#APPLYFORM_ID#||'%') </isNotEmpty> <isNotEmpty property="APPLICANT_ACCOUNT" prepend="AND"> Upper(t.APPLICANT_ACCOUNT) like Upper('%'||#APPLICANT_ACCOUNT#||'%') </isNotEmpty> <isNotEmpty property="AUDITER" prepend="AND"> Upper(t.AUDITER) like Upper('%'||#AUDITER#||'%') </isNotEmpty> <isNotEmpty property="CREATOR" prepend="AND"> Upper(t.CREATOR) like Upper('%'||#CREATOR#||'%') </isNotEmpty> <isNotEmpty property="productline_id" prepend="AND"> i.productline_id = #productline_id# </isNotEmpty> <isNotEmpty property="product_family" prepend="AND"> s.product_family = #product_family# </isNotEmpty> <isNotEmpty property="product" prepend="AND"> s.product = #product# </isNotEmpty> <![CDATA[ ) aa where rownum <= #ROWNUM_HIGH# ) bb where bb.RR >= #ROWNUM_LOW# ]]> </dynamic> </select>
详细解决方案
Ibatis 分页SqL的范例
热度:30 发布时间:2016-05-05 13:42:36.0
相关解决方案
- spring mvc +ibatis+db2连接数据库的配置如何写啊小弟我链接不下
- Ibatis sql地图执行
- ibatis sql地图 插入数据返回数据id有关问题
- Ibatis 查询话语selec count(*),getSqlMapClientTemplate().后面应该接什么
- struts2+spring+hibernater+ibatis 调整框架
- ibatis 怎么直接执行sql语句,待!100分
- ibatis 动态查询解决思路
- ibatis 中的Oracle语句中# #好像不生效,不能正确选择出数据(很急)解决思路
- 新手问:怎么在前台显示列表纪录?框架是用struts2+spring2.5+Ibatis
- ibatis+spring+struts 有时候抛出这个错误,有时没有,那个页面每次点击都很慢
- struts+iBatis+mysql,该如何解决
- Cause: java.sql.SQLException: 关闭的连接]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException解决思路
- ibatis 报语法异常
- 关键字条件查询分页有关问题<SpringMVC/ibatis>
- spring struts ibatis 架构 权限控制怎么做
- SSI框架 ibatis 中 queryforList查询不到数据,该怎么解决
- ibatis 里面写sql语句的xml怎么提示
- ibatis 在vs2010上provider.xsd应该放到哪个目录上
- ibatis 在vs2010下provider.xsd应该放到哪个目录下啊解决方法
- IBatis.Net框架连接oracle数据库,该怎么处理
- ibatis.net,该怎么解决
- ibatis mysql转换成Oracle,实施语句中# #好像不生效,不能正确选择出数据(很急)
- ibatis db2 sqlMapconfig.xml文件 sql语句的有关问题
- jsf+ibatis+spring讨论
- ibatis<[CDATA[]]> ,html table 列宽固定以及文本域有关问题
- ibatis,web开发,查询高性能实现思路
- IBATIS 日期格式的字符串照射DATE
- ibatis 二 and spring 例子
- Spring+Webwork+iBatis 结合
- Struts2+Spring2.5+ibatis+ExtJS3.1 基于注脚框架搭建(4)