TgjjGrdkyqxxMapper.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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.TgjjGrdkyqxxMapper">
  6. <resultMap type="com.sooka.model.bo.TgjjGrdkyqxx" id="TgjjGrdkyqxxResult">
  7. </resultMap>
  8. <parameterMap id="TgjjGrdkyqxx" type="com.sooka.model.bo.TgjjGrdkyqxx"></parameterMap>
  9. <sql id="selectTgjjGrdkyqxxVo">
  10. select ID, IDXH, DKZH, YQQC, YQBJ, YQLX, YQFX, SSRQ, HKQC, SSYQBJJE, SSYQLXJE, SSYQFXJE, ZXBH, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_grdkyqxx
  11. </sql>
  12. <select id="selectTgjjGrdkyqxxList" parameterMap="TgjjGrdkyqxx" resultMap="TgjjGrdkyqxxResult">
  13. <include refid="selectTgjjGrdkyqxxVo"/>
  14. <where>
  15. <if test="IDXH != null and IDXH != ''"> and IDXH = #{IDXH}</if>
  16. <if test="DKZH != null and DKZH != ''"> and DKZH = #{DKZH}</if>
  17. <if test="YQQC != null "> and YQQC = #{YQQC}</if>
  18. <if test="YQBJ != null "> and YQBJ = #{YQBJ}</if>
  19. <if test="YQLX != null "> and YQLX = #{YQLX}</if>
  20. <if test="YQFX != null "> and YQFX = #{YQFX}</if>
  21. <if test="SSRQ != null "> and SSRQ = #{SSRQ}</if>
  22. <if test="HKQC != null "> and HKQC = #{HKQC}</if>
  23. <if test="SSYQBJJE != null "> and SSYQBJJE = #{SSYQBJJE}</if>
  24. <if test="SSYQLXJE != null "> and SSYQLXJE = #{SSYQLXJE}</if>
  25. <if test="SSYQFXJE != null "> and SSYQFXJE = #{SSYQFXJE}</if>
  26. <if test="ZXBH != null and ZXBH != ''"> and ZXBH = #{ZXBH}</if>
  27. <if test="lastUpdateTime != null "> and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
  28. <if test="CLLX != null "> and CLLX = #{CLLX}</if>
  29. <if test="search_begintime != null"> and LAST_UPDATE_TIME >= #{search_begintime}</if>
  30. <if test="search_endtime != null"> and LAST_UPDATE_TIME &lt; #{search_endtime}</if>
  31. </where>
  32. </select>
  33. <select id="selectTgjjGrdkyqxxById" parameterType="Long" resultMap="TgjjGrdkyqxxResult">
  34. <include refid="selectTgjjGrdkyqxxVo"/>
  35. where ID = #{ID}
  36. </select>
  37. <insert id="insertTgjjGrdkyqxx" parameterMap="TgjjGrdkyqxx" useGeneratedKeys="true" keyProperty="ID">
  38. insert into tgjj_grdkyqxx
  39. <trim prefix="(" suffix=")" suffixOverrides=",">
  40. <if test="ID != null">ID,</if>
  41. <if test="IDXH != null">IDXH,</if>
  42. <if test="DKZH != null">DKZH,</if>
  43. <if test="YQQC != null">YQQC,</if>
  44. <if test="YQBJ != null">YQBJ,</if>
  45. <if test="YQLX != null">YQLX,</if>
  46. <if test="YQFX != null">YQFX,</if>
  47. <if test="SSRQ != null">SSRQ,</if>
  48. <if test="HKQC != null">HKQC,</if>
  49. <if test="SSYQBJJE != null">SSYQBJJE,</if>
  50. <if test="SSYQLXJE != null">SSYQLXJE,</if>
  51. <if test="SSYQFXJE != null">SSYQFXJE,</if>
  52. <if test="ZXBH != null">ZXBH,</if>
  53. <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
  54. <if test="CLLX != null">CLLX,</if>
  55. </trim>
  56. <trim prefix="values (" suffix=")" suffixOverrides=",">
  57. <if test="ID != null">#{ID},</if>
  58. <if test="IDXH != null">#{IDXH},</if>
  59. <if test="DKZH != null">#{DKZH},</if>
  60. <if test="YQQC != null">#{YQQC},</if>
  61. <if test="YQBJ != null">#{YQBJ},</if>
  62. <if test="YQLX != null">#{YQLX},</if>
  63. <if test="YQFX != null">#{YQFX},</if>
  64. <if test="SSRQ != null">#{SSRQ},</if>
  65. <if test="HKQC != null">#{HKQC},</if>
  66. <if test="SSYQBJJE != null">#{SSYQBJJE},</if>
  67. <if test="SSYQLXJE != null">#{SSYQLXJE},</if>
  68. <if test="SSYQFXJE != null">#{SSYQFXJE},</if>
  69. <if test="ZXBH != null">#{ZXBH},</if>
  70. <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
  71. <if test="CLLX != null">#{CLLX},</if>
  72. </trim>
  73. </insert>
  74. <update id="updateTgjjGrdkyqxx" parameterMap="TgjjGrdkyqxx">
  75. update tgjj_grdkyqxx
  76. <trim prefix="SET" suffixOverrides=",">
  77. <if test="IDXH != null">IDXH = #{IDXH},</if>
  78. <if test="DKZH != null">DKZH = #{DKZH},</if>
  79. <if test="YQQC != null">YQQC = #{YQQC},</if>
  80. <if test="YQBJ != null">YQBJ = #{YQBJ},</if>
  81. <if test="YQLX != null">YQLX = #{YQLX},</if>
  82. <if test="YQFX != null">YQFX = #{YQFX},</if>
  83. <if test="SSRQ != null">SSRQ = #{SSRQ},</if>
  84. <if test="HKQC != null">HKQC = #{HKQC},</if>
  85. <if test="SSYQBJJE != null">SSYQBJJE = #{SSYQBJJE},</if>
  86. <if test="SSYQLXJE != null">SSYQLXJE = #{SSYQLXJE},</if>
  87. <if test="SSYQFXJE != null">SSYQFXJE = #{SSYQFXJE},</if>
  88. <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
  89. <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
  90. <if test="CLLX != null">CLLX = #{CLLX},</if>
  91. </trim>
  92. where ID = #{ID}
  93. </update>
  94. </mapper>