YhKhjbxxLogMapper.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.yhgl.mapper.YhKhjbxxLogMapper">
  4. <resultMap id="yhKhjbxxLogMap" type="com.tofly.feesapi.yhgl.entity.YhKhjbxxLog">
  5. <id property="logId" column="LOG_ID"/>
  6. <result property="logLsh" column="LOG_LSH"/>
  7. <result property="logCzrybm" column="LOG_CZRYBM"/>
  8. <result property="logCzryxm" column="LOG_CZRYXM"/>
  9. <result property="logCzsj" column="LOG_CZSJ"/>
  10. <result property="logCzlx" column="LOG_CZLX"/>
  11. <result property="logCllx" column="LOG_CLLX"/>
  12. <result property="logBz" column="LOG_BZ"/>
  13. <result property="yhbh" column="YHBH"/>
  14. <result property="ykhbh" column="YKHBH"/>
  15. <result property="ssgs" column="SSGS"/>
  16. <result property="sscbpq" column="SSCBPQ"/>
  17. <result property="sscbb" column="SSCBB"/>
  18. <result property="sqrq" column="SQRQ"/>
  19. <result property="yhxm" column="YHXM"/>
  20. <result property="yhdz" column="YHDZ"/>
  21. <result property="lxdh" column="LXDH"/>
  22. <result property="rks" column="RKS"/>
  23. <result property="xb" column="XB"/>
  24. <result property="sj" column="SJ"/>
  25. <result property="zzdh" column="ZZDH"/>
  26. <result property="gzdw" column="GZDW"/>
  27. <result property="bgdh" column="BGDH"/>
  28. <result property="dzyx" column="DZYX"/>
  29. <result property="zjlb" column="ZJLB"/>
  30. <result property="zjhm" column="ZJHM"/>
  31. <result property="hzgx" column="HZGX"/>
  32. <result property="yhzt" column="YHZT"/>
  33. <result property="zsjb" column="ZSJB"/>
  34. <result property="jdrq" column="JDRQ"/>
  35. <result property="tsbz" column="TSBZ"/>
  36. <result property="tsrq" column="TSRQ"/>
  37. <result property="htqd" column="HTQD"/>
  38. <result property="htqdrq" column="HTQDRQ"/>
  39. <result property="htbh" column="HTBH"/>
  40. <result property="bz" column="BZ"/>
  41. <result property="bzGcbh" column="BZ_GCBH"/>
  42. <result property="bzPcxlh" column="BZ_PCXLH"/>
  43. <result property="czrybm" column="CZRYBM"/>
  44. <result property="czryxm" column="CZRYXM"/>
  45. <result property="czsj" column="CZSJ"/>
  46. <result property="psfz" column="PSFZ"/>
  47. <result property="pht" column="PHT"/>
  48. <result property="pgszz" column="PGSZZ"/>
  49. <result property="pfcz" column="PFCZ"/>
  50. <result property="pyyzz" column="PYYZZ"/>
  51. <result property="pyxzj" column="PYXZJ"/>
  52. <result property="xydj" column="XYDJ"/>
  53. <result property="tkhbz" column="TKHBZ"/>
  54. <result property="zw" column="ZW"/>
  55. <result property="jdrybm" column="JDRYBM"/>
  56. <result property="jdryxm" column="JDRYXM"/>
  57. <result property="jdpcxlh" column="JDPCXLH"/>
  58. <result property="fplx" column="FPLX"/>
  59. <result property="sfqz" column="SFQZ"/>
  60. <result property="cbryxm" column="CBRYXM"/>
  61. <result property="xh" column="XH"/>
  62. <result property="ssregion" column="SSREGION"/>
  63. <result property="xgrybm" column="XGRYBM"/>
  64. <result property="fpName" column="FP_NAME"/>
  65. <result property="fpNsrsbh" column="FP_NSRSBH"/>
  66. <result property="fpDz" column="FP_DZ"/>
  67. <result property="fpLxdh" column="FP_LXDH"/>
  68. <result property="fpBankname" column="FP_BANKNAME"/>
  69. <result property="fpBankcode" column="FP_BANKCODE"/>
  70. <result property="fpBz" column="FP_BZ"/>
  71. <result property="fffs" column="FFFS"/>
  72. <result property="jtzqljl" column="JTZQLJL"/>
  73. <result property="khlb" column="KHLB"/>
  74. <result property="pyjm" column="PYJM"/>
  75. <result property="yljl" column="YLJL"/>
  76. <result property="sbsl" column="SBSL"/>
  77. </resultMap>
  78. <select id="getLogPage" resultType="com.tofly.feesapi.yhgl.entity.YhKhjbxxLog">
  79. <include refid="querySql"/>
  80. </select>
  81. <sql id="querySql">
  82. SELECT
  83. a.*,
  84. b.cbpqmc cbpq ,
  85. c.cbbmc cbb
  86. FROM
  87. yh_khjbxx_log a
  88. LEFT JOIN
  89. bm_cbpq b on a.sscbpq =b.cbpqbm
  90. LEFT JOIN
  91. bm_cbb c on a.sscbb = c.cbbbm
  92. WHERE
  93. 1=1
  94. <if test="filter.searchText != null and filter.searchText != ''">
  95. and (a.yhxm like '%${filter.searchText}%'
  96. or a.yhdz like '%${filter.searchText}%'
  97. or a.zjhm like '%${filter.searchText}%'
  98. or a.lxdh like '%${filter.searchText}%'
  99. or a.yhbh like '%${filter.searchText}%'
  100. )
  101. </if>
  102. <if test="filter.ssgs != null and filter.ssgs != ''">
  103. and a.ssgs=#{filter.ssgs}
  104. </if>
  105. <if test="filter.sscbpq != null and filter.sscbpq != ''">
  106. and a.sscbpq=#{filter.sscbpq}
  107. </if>
  108. <if test="filter.sscbb != null and filter.sscbb != ''">
  109. and a.sscbb=#{filter.sscbb}
  110. </if>
  111. <if test="filter.qyfzr!=null">
  112. and a.sscbb in(select cbbbm from bm_cbb where qyfzr=#{filter.qyfzr})
  113. </if>
  114. <if test="filter.ksrq!=null and filter.jsrq!=null">
  115. and a.log_czsj between to_date(#{filter.ksrq},'yyyy-MM-dd hh24:mi:ss') and
  116. to_date(#{filter.jsrq},'yyyy-MM-dd hh24:mi:ss')
  117. </if>
  118. <if test="filter.czry!=null and filter.czry!=''">
  119. and a.czrybm=#{filter.czry!=}
  120. </if>
  121. </sql>
  122. </mapper>