YhCbkxxLogMapper.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.bjgl.mapper.YhCbkxxLogMapper">
  4. <resultMap id="yhCbkxxLogMap" type="com.tofly.feesapi.bjgl.entity.YhCbkxxLog">
  5. <id property="ljfbz" column="LJFBZ"/>
  6. <result property="ickno" column="ICKNO"/>
  7. <result property="logId" column="LOG_ID"/>
  8. <result property="logLsh" column="LOG_LSH"/>
  9. <result property="logCzrybm" column="LOG_CZRYBM"/>
  10. <result property="logCzryxm" column="LOG_CZRYXM"/>
  11. <result property="logCzsj" column="LOG_CZSJ"/>
  12. <result property="logCzlx" column="LOG_CZLX"/>
  13. <result property="logCllx" column="LOG_CLLX"/>
  14. <result property="logBz" column="LOG_BZ"/>
  15. <result property="yhbh" column="YHBH"/>
  16. <result property="cbkh" column="CBKH"/>
  17. <result property="cbkid" column="CBKID"/>
  18. <result property="sblb" column="SBLB"/>
  19. <result property="sbsccj" column="SBSCCJ"/>
  20. <result property="sbccrq" column="SBCCRQ"/>
  21. <result property="sbxh" column="SBXH"/>
  22. <result property="sbkj" column="SBKJ"/>
  23. <result property="sbbh" column="SBBH"/>
  24. <result property="sblc" column="SBLC"/>
  25. <result property="bjwz" column="BJWZ"/>
  26. <result property="jddj" column="JDDJ"/>
  27. <result property="cbpl" column="CBPL"/>
  28. <result property="sbqs" column="SBQS"/>
  29. <result property="cbxh" column="CBXH"/>
  30. <result property="ybdjbz" column="YBDJBZ"/>
  31. <result property="sjbm" column="SJBM"/>
  32. <result property="slbl" column="SLBL"/>
  33. <result property="sjbm1" column="SJBM1"/>
  34. <result property="slbl1" column="SLBL1"/>
  35. <result property="sjbm2" column="SJBM2"/>
  36. <result property="slbl2" column="SLBL2"/>
  37. <result property="sjbm3" column="SJBM3"/>
  38. <result property="slbl3" column="SLBL3"/>
  39. <result property="wsfbz" column="WSFBZ"/>
  40. <result property="fbid" column="FBID"/>
  41. <result property="bz" column="BZ"/>
  42. <result property="jfzt" column="JFZT"/>
  43. <result property="kkbz" column="KKBZ"/>
  44. <result property="kkrq" column="KKRQ"/>
  45. <result property="ickid" column="ICKID"/>
  46. <result property="xkcs" column="XKCS"/>
  47. <result property="bkcs" column="BKCS"/>
  48. <result property="zgsl" column="ZGSL"/>
  49. <result property="zgsje" column="ZGSJE"/>
  50. <result property="bnljsl" column="BNLJSL"/>
  51. <result property="bnljje" column="BNLJJE"/>
  52. <result property="czrybm" column="CZRYBM"/>
  53. <result property="czryxm" column="CZRYXM"/>
  54. <result property="czsj" column="CZSJ"/>
  55. <result property="zxcbrq" column="ZXCBRQ"/>
  56. <result property="ssfm" column="SSFM"/>
  57. <result property="ickqyh" column="ICKQYH"/>
  58. <result property="djrq" column="DJRQ"/>
  59. <result property="sbzd" column="SBZD"/>
  60. <result property="xgrybm" column="XGRYBM"/>
  61. <result property="xgrq" column="XGRQ"/>
  62. <result property="cdl" column="CDL"/>
  63. <result property="lgysbz" column="LGYSBZ"/>
  64. <result property="azry" column="AZRY"/>
  65. <result property="azrq" column="AZRQ"/>
  66. <result property="gxh" column="GXH"/>
  67. <result property="ljffs" column="LJFFS"/>
  68. <result property="ljfje" column="LJFJE"/>
  69. </resultMap>
  70. <select id="getYhCbkxxLogPage" resultMap="yhCbkxxLogMap">
  71. select a.* from
  72. YH_CBKXX_LOG a
  73. left join yh_khjbxx b on a.yhbh=b.yhbh
  74. <where>
  75. <if test="filter.searchText != null and filter.searchText != ''">
  76. (b.yhxm like '%${filter.searchText}%'
  77. or b.yhbh like '%${filter.searchText}%'
  78. or b.yhdz like '%${filter.searchText}%'
  79. or b.lxdh like '%${filter.searchText}%'
  80. )
  81. </if>
  82. <if test="filter.ssgs != null and filter.ssgs != ''">
  83. and b.ssgs=#{filter.ssgs}
  84. </if>
  85. <if test="filter.sscbpq != null and filter.sscbpq != ''">
  86. and b.sscbpq=#{filter.sscbpq}
  87. </if>
  88. <if test="filter.sscbb != null and filter.sscbb != ''">
  89. and b.sscbb=#{filter.sscbb}
  90. </if>
  91. <if test="filter.qyfzr!=null">
  92. and b.sscbb in(select cbbbm from bm_cbb where qyfzr=#{qyfzr})
  93. </if>
  94. <if test="filter.jdrqStart!=null and filter.jdrqEnd!=null">
  95. and a.log_czsj between #{filter.jdrqStart} and #{filter.jdrqEnd}
  96. </if>
  97. <if test="filter.ksrq !=null and filter.jsrq != null">
  98. and a.log_czsj between #{filter.ksrq} and #{filter.jsrq}
  99. </if>
  100. </where>
  101. </select>
  102. </mapper>