WxFwtzMapper.xml 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.tofly.feesapi.wxgl.wechatbasicmgt.mapper.WxFwtzMapper">
  4. <select id="SelectChargeMaxCode" resultType="int">
  5. select nvl(max(id), 0) id
  6. from WX_FWTZ
  7. </select>
  8. <select id="selectWxFwNoticePage" resultType="com.tofly.feesapi.wxgl.wechatbasicmgt.entity.WxFwtz">
  9. select id,EDIT_DATE editDate,EDIT_CODE editCode,EDIT_NAME editName,
  10. TITLE title,STATE state,AREA area,REASON reason,
  11. TZSJ noticeTime,REMARK remark,shbz auditFlag,shjg auditResult,
  12. shfybm auditCode,shfyxm auditName ,shrq auditDate,shreason auditRemark,
  13. dycs printTimes
  14. from WX_FWTZ where 1=1
  15. <!--模糊查询 -->
  16. <if test="searchText != null and searchText != ''">
  17. and (AREA like '%${searchText}%' or EDIT_NAME like '%${searchText}%' or TITLE like
  18. '%${searchText}%' or REMARK like '%${searchText}%' )
  19. </if>
  20. <!--String state,String editDate_start,String editDate_end -->
  21. <if test="state != null and state != '' and state!='all'">
  22. and state=#{state}
  23. </if>
  24. <if test="editDateStart != null and editDateEnd != null and editDateStart != '' and editDateEnd !=''">
  25. and EDIT_DATE between to_date( #{editDateStart},'yyyy-mm-dd hh24:mi:ss') and
  26. to_date( #{editDateEnd},'yyyy-mm-dd hh24:mi:ss')
  27. </if>
  28. </select>
  29. </mapper>