TgjjGrckzhbdxxMapper.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.TgjjGrckzhbdxxMapper">
  6. <resultMap type="com.sooka.model.bo.TgjjGrckzhbdxx" id="TgjjGrckzhbdxxResult">
  7. </resultMap>
  8. <parameterMap id="TgjjGrckzhbdxx" type="com.sooka.model.bo.TgjjGrckzhbdxx"></parameterMap>
  9. <sql id="selectTgjjGrckzhbdxxVo">
  10. select ID, GRZH, JZRQ, GJHTQYWLX, FSE, DNGJFSE, SNJZFSE, FSLXE, TQYY, TQFS, YWLSH, CZBZ, GRZHYE, ZXBH, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_grckzhbdxx
  11. </sql>
  12. <select id="selectTgjjGrckzhbdxxList" parameterMap="TgjjGrckzhbdxx" resultMap="TgjjGrckzhbdxxResult">
  13. <include refid="selectTgjjGrckzhbdxxVo"/>
  14. <where>
  15. <if test="GRZH != null and GRZH != ''"> and GRZH = #{GRZH}</if>
  16. <if test="JZRQ != null "> and JZRQ = #{JZRQ}</if>
  17. <if test="GJHTQYWLX != null and GJHTQYWLX != ''"> and GJHTQYWLX = #{GJHTQYWLX}</if>
  18. <if test="FSE != null "> and FSE = #{FSE}</if>
  19. <if test="DNGJFSE != null "> and DNGJFSE = #{DNGJFSE}</if>
  20. <if test="SNJZFSE != null "> and SNJZFSE = #{SNJZFSE}</if>
  21. <if test="FSLXE != null "> and FSLXE = #{FSLXE}</if>
  22. <if test="TQYY != null and TQYY != ''"> and TQYY = #{TQYY}</if>
  23. <if test="TQFS != null and TQFS != ''"> and TQFS = #{TQFS}</if>
  24. <if test="YWLSH != null and YWLSH != ''"> and YWLSH = #{YWLSH}</if>
  25. <if test="CZBZ != null and CZBZ != ''"> and CZBZ = #{CZBZ}</if>
  26. <if test="GRZHYE != null "> and GRZHYE = #{GRZHYE}</if>
  27. <if test="ZXBH != null and ZXBH != ''"> and ZXBH = #{ZXBH}</if>
  28. <if test="lastUpdateTime != null "> and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
  29. <if test="CLLX != null "> and CLLX = #{CLLX}</if>
  30. <if test="search_begintime != null"> and LAST_UPDATE_TIME >= #{search_begintime}</if>
  31. <if test="search_endtime != null"> and LAST_UPDATE_TIME &lt; #{search_endtime}</if>
  32. </where>
  33. </select>
  34. <select id="selectTgjjGrckzhbdxxById" parameterType="Long" resultMap="TgjjGrckzhbdxxResult">
  35. <include refid="selectTgjjGrckzhbdxxVo"/>
  36. where ID = #{ID}
  37. </select>
  38. <insert id="insertTgjjGrckzhbdxx" parameterMap="TgjjGrckzhbdxx" useGeneratedKeys="true" keyProperty="ID">
  39. insert into tgjj_grckzhbdxx
  40. <trim prefix="(" suffix=")" suffixOverrides=",">
  41. <if test="ID != null">ID,</if>
  42. <if test="GRZH != null">GRZH,</if>
  43. <if test="JZRQ != null">JZRQ,</if>
  44. <if test="GJHTQYWLX != null">GJHTQYWLX,</if>
  45. <if test="FSE != null">FSE,</if>
  46. <if test="DNGJFSE != null">DNGJFSE,</if>
  47. <if test="SNJZFSE != null">SNJZFSE,</if>
  48. <if test="FSLXE != null">FSLXE,</if>
  49. <if test="TQYY != null">TQYY,</if>
  50. <if test="TQFS != null">TQFS,</if>
  51. <if test="YWLSH != null">YWLSH,</if>
  52. <if test="CZBZ != null">CZBZ,</if>
  53. <if test="GRZHYE != null">GRZHYE,</if>
  54. <if test="ZXBH != null">ZXBH,</if>
  55. <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
  56. <if test="CLLX != null">CLLX,</if>
  57. </trim>
  58. <trim prefix="values (" suffix=")" suffixOverrides=",">
  59. <if test="ID != null">#{ID},</if>
  60. <if test="GRZH != null">#{GRZH},</if>
  61. <if test="JZRQ != null">#{JZRQ},</if>
  62. <if test="GJHTQYWLX != null">#{GJHTQYWLX},</if>
  63. <if test="FSE != null">#{FSE},</if>
  64. <if test="DNGJFSE != null">#{DNGJFSE},</if>
  65. <if test="SNJZFSE != null">#{SNJZFSE},</if>
  66. <if test="FSLXE != null">#{FSLXE},</if>
  67. <if test="TQYY != null">#{TQYY},</if>
  68. <if test="TQFS != null">#{TQFS},</if>
  69. <if test="YWLSH != null">#{YWLSH},</if>
  70. <if test="CZBZ != null">#{CZBZ},</if>
  71. <if test="GRZHYE != null">#{GRZHYE},</if>
  72. <if test="ZXBH != null">#{ZXBH},</if>
  73. <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
  74. <if test="CLLX != null">#{CLLX},</if>
  75. </trim>
  76. </insert>
  77. <update id="updateTgjjGrckzhbdxx" parameterMap="TgjjGrckzhbdxx">
  78. update tgjj_grckzhbdxx
  79. <trim prefix="SET" suffixOverrides=",">
  80. <if test="GRZH != null">GRZH = #{GRZH},</if>
  81. <if test="JZRQ != null">JZRQ = #{JZRQ},</if>
  82. <if test="GJHTQYWLX != null">GJHTQYWLX = #{GJHTQYWLX},</if>
  83. <if test="FSE != null">FSE = #{FSE},</if>
  84. <if test="DNGJFSE != null">DNGJFSE = #{DNGJFSE},</if>
  85. <if test="SNJZFSE != null">SNJZFSE = #{SNJZFSE},</if>
  86. <if test="FSLXE != null">FSLXE = #{FSLXE},</if>
  87. <if test="TQYY != null">TQYY = #{TQYY},</if>
  88. <if test="TQFS != null">TQFS = #{TQFS},</if>
  89. <if test="YWLSH != null">YWLSH = #{YWLSH},</if>
  90. <if test="CZBZ != null">CZBZ = #{CZBZ},</if>
  91. <if test="GRZHYE != null">GRZHYE = #{GRZHYE},</if>
  92. <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
  93. <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
  94. <if test="CLLX != null">CLLX = #{CLLX},</if>
  95. </trim>
  96. where ID = #{ID}
  97. </update>
  98. </mapper>