TgjjDbxxMapper.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.sooka.mapper.TgjjDbxxMapper">
  6. <resultMap type="com.sooka.model.bo.TgjjDbxx" id="TgjjDbxxResult">
  7. </resultMap>
  8. <parameterMap id="TgjjDbxx" type="com.sooka.model.bo.TgjjDbxx"></parameterMap>
  9. <sql id="selectTgjjDbxxVo">
  10. select ID, DBHTBH, JKHTBH, DBJGMC, DYWQZH, DYWTXQZH, DYWFWZL, DYQJLRQ, DYQJCRQ, DYWPGJZ, BZHTBH, BZJGMC, DKBZJ, ZYHTBH, ZYWBH, ZYWMC, ZYWJZ, ZYHTKSRQ, ZYHTJSRQ, ZXBH, LAST_UPDATE_TIME lastUpdateTime, DYFWGFHTH, CLLX from tgjj_dbxx
  11. </sql>
  12. <select id="selectTgjjDbxxList" parameterMap="TgjjDbxx" resultMap="TgjjDbxxResult">
  13. <include refid="selectTgjjDbxxVo"/>
  14. <where>
  15. <if test="DBHTBH != null and DBHTBH != ''">and DBHTBH = #{DBHTBH}</if>
  16. <if test="JKHTBH != null and JKHTBH != ''">and JKHTBH = #{JKHTBH}</if>
  17. <if test="DBJGMC != null and DBJGMC != ''">and DBJGMC = #{DBJGMC}</if>
  18. <if test="DYWQZH != null and DYWQZH != ''">and DYWQZH = #{DYWQZH}</if>
  19. <if test="DYWTXQZH != null and DYWTXQZH != ''">and DYWTXQZH = #{DYWTXQZH}</if>
  20. <if test="DYWFWZL != null and DYWFWZL != ''">and DYWFWZL = #{DYWFWZL}</if>
  21. <if test="DYQJLRQ != null ">and DYQJLRQ = #{DYQJLRQ}</if>
  22. <if test="DYQJCRQ != null ">and DYQJCRQ = #{DYQJCRQ}</if>
  23. <if test="DYWPGJZ != null ">and DYWPGJZ = #{DYWPGJZ}</if>
  24. <if test="BZHTBH != null and BZHTBH != ''">and BZHTBH = #{BZHTBH}</if>
  25. <if test="BZJGMC != null and BZJGMC != ''">and BZJGMC = #{BZJGMC}</if>
  26. <if test="DKBZJ != null ">and DKBZJ = #{DKBZJ}</if>
  27. <if test="ZYHTBH != null and ZYHTBH != ''">and ZYHTBH = #{ZYHTBH}</if>
  28. <if test="ZYWBH != null and ZYWBH != ''">and ZYWBH = #{ZYWBH}</if>
  29. <if test="ZYWMC != null and ZYWMC != ''">and ZYWMC = #{ZYWMC}</if>
  30. <if test="ZYWJZ != null ">and ZYWJZ = #{ZYWJZ}</if>
  31. <if test="ZYHTKSRQ != null ">and ZYHTKSRQ = #{ZYHTKSRQ}</if>
  32. <if test="ZYHTJSRQ != null ">and ZYHTJSRQ = #{ZYHTJSRQ}</if>
  33. <if test="ZXBH != null and ZXBH != ''">and ZXBH = #{ZXBH}</if>
  34. <if test="lastUpdateTime != null ">and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
  35. <if test="DYFWGFHTH != null and DYFWGFHTH != ''">and DYFWGFHTH = #{DYFWGFHTH}</if>
  36. <if test="CLLX != null ">and CLLX = #{CLLX}</if>
  37. <if test="search_begintime != null"> and LAST_UPDATE_TIME >= #{search_begintime}</if>
  38. <if test="search_endtime != null"> and LAST_UPDATE_TIME &lt; #{search_endtime}</if>
  39. </where>
  40. </select>
  41. <select id="selectTgjjDbxxById" parameterType="Long" resultMap="TgjjDbxxResult">
  42. <include refid="selectTgjjDbxxVo"/>
  43. where ID = #{ID}
  44. </select>
  45. <insert id="insertTgjjDbxx" parameterMap="TgjjDbxx" useGeneratedKeys="true" keyProperty="ID">
  46. insert into tgjj_dbxx
  47. <trim prefix="(" suffix=")" suffixOverrides=",">
  48. <if test="ID != null">ID,</if>
  49. <if test="DBHTBH != null">DBHTBH,</if>
  50. <if test="JKHTBH != null">JKHTBH,</if>
  51. <if test="DBJGMC != null">DBJGMC,</if>
  52. <if test="DYWQZH != null">DYWQZH,</if>
  53. <if test="DYWTXQZH != null">DYWTXQZH,</if>
  54. <if test="DYWFWZL != null">DYWFWZL,</if>
  55. <if test="DYQJLRQ != null">DYQJLRQ,</if>
  56. <if test="DYQJCRQ != null">DYQJCRQ,</if>
  57. <if test="DYWPGJZ != null">DYWPGJZ,</if>
  58. <if test="BZHTBH != null">BZHTBH,</if>
  59. <if test="BZJGMC != null">BZJGMC,</if>
  60. <if test="DKBZJ != null">DKBZJ,</if>
  61. <if test="ZYHTBH != null">ZYHTBH,</if>
  62. <if test="ZYWBH != null">ZYWBH,</if>
  63. <if test="ZYWMC != null">ZYWMC,</if>
  64. <if test="ZYWJZ != null">ZYWJZ,</if>
  65. <if test="ZYHTKSRQ != null">ZYHTKSRQ,</if>
  66. <if test="ZYHTJSRQ != null">ZYHTJSRQ,</if>
  67. <if test="ZXBH != null">ZXBH,</if>
  68. <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
  69. <if test="DYFWGFHTH != null">DYFWGFHTH,</if>
  70. <if test="CLLX != null">CLLX,</if>
  71. </trim>
  72. <trim prefix="values (" suffix=")" suffixOverrides=",">
  73. <if test="ID != null">#{ID},</if>
  74. <if test="DBHTBH != null">#{DBHTBH},</if>
  75. <if test="JKHTBH != null">#{JKHTBH},</if>
  76. <if test="DBJGMC != null">#{DBJGMC},</if>
  77. <if test="DYWQZH != null">#{DYWQZH},</if>
  78. <if test="DYWTXQZH != null">#{DYWTXQZH},</if>
  79. <if test="DYWFWZL != null">#{DYWFWZL},</if>
  80. <if test="DYQJLRQ != null">#{DYQJLRQ},</if>
  81. <if test="DYQJCRQ != null">#{DYQJCRQ},</if>
  82. <if test="DYWPGJZ != null">#{DYWPGJZ},</if>
  83. <if test="BZHTBH != null">#{BZHTBH},</if>
  84. <if test="BZJGMC != null">#{BZJGMC},</if>
  85. <if test="DKBZJ != null">#{DKBZJ},</if>
  86. <if test="ZYHTBH != null">#{ZYHTBH},</if>
  87. <if test="ZYWBH != null">#{ZYWBH},</if>
  88. <if test="ZYWMC != null">#{ZYWMC},</if>
  89. <if test="ZYWJZ != null">#{ZYWJZ},</if>
  90. <if test="ZYHTKSRQ != null">#{ZYHTKSRQ},</if>
  91. <if test="ZYHTJSRQ != null">#{ZYHTJSRQ},</if>
  92. <if test="ZXBH != null">#{ZXBH},</if>
  93. <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
  94. <if test="DYFWGFHTH != null">#{DYFWGFHTH},</if>
  95. <if test="CLLX != null">#{CLLX},</if>
  96. </trim>
  97. </insert>
  98. <update id="updateTgjjDbxx" parameterMap="TgjjDbxx">
  99. update tgjj_dbxx
  100. <trim prefix="SET" suffixOverrides=",">
  101. <if test="DBHTBH != null">DBHTBH = #{DBHTBH},</if>
  102. <if test="JKHTBH != null">JKHTBH = #{JKHTBH},</if>
  103. <if test="DBJGMC != null">DBJGMC = #{DBJGMC},</if>
  104. <if test="DYWQZH != null">DYWQZH = #{DYWQZH},</if>
  105. <if test="DYWTXQZH != null">DYWTXQZH = #{DYWTXQZH},</if>
  106. <if test="DYWFWZL != null">DYWFWZL = #{DYWFWZL},</if>
  107. <if test="DYQJLRQ != null">DYQJLRQ = #{DYQJLRQ},</if>
  108. <if test="DYQJCRQ != null">DYQJCRQ = #{DYQJCRQ},</if>
  109. <if test="DYWPGJZ != null">DYWPGJZ = #{DYWPGJZ},</if>
  110. <if test="BZHTBH != null">BZHTBH = #{BZHTBH},</if>
  111. <if test="BZJGMC != null">BZJGMC = #{BZJGMC},</if>
  112. <if test="DKBZJ != null">DKBZJ = #{DKBZJ},</if>
  113. <if test="ZYHTBH != null">ZYHTBH = #{ZYHTBH},</if>
  114. <if test="ZYWBH != null">ZYWBH = #{ZYWBH},</if>
  115. <if test="ZYWMC != null">ZYWMC = #{ZYWMC},</if>
  116. <if test="ZYWJZ != null">ZYWJZ = #{ZYWJZ},</if>
  117. <if test="ZYHTKSRQ != null">ZYHTKSRQ = #{ZYHTKSRQ},</if>
  118. <if test="ZYHTJSRQ != null">ZYHTJSRQ = #{ZYHTJSRQ},</if>
  119. <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
  120. <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
  121. <if test="DYFWGFHTH != null">DYFWGFHTH = #{DYFWGFHTH},</if>
  122. <if test="CLLX != null">CLLX = #{CLLX},</if>
  123. </trim>
  124. where ID = #{ID}
  125. </update>
  126. </mapper>