TgjjDwckzhbdxxMapper.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.TgjjDwckzhbdxxMapper">
  6. <resultMap type="com.sooka.model.bo.TgjjDwckzhbdxx" id="TgjjDwckzhbdxxResult">
  7. </resultMap>
  8. <parameterMap id="TgjjDwckzhbdxx" type="com.sooka.model.bo.TgjjDwckzhbdxx" ></parameterMap>
  9. <sql id="selectTgjjDwckzhbdxxVo">
  10. select ID, DWZH, JZRQ, FSE, FSLXE, FSRS, YWMXLX, HBJNY, YWLSH, CZBZ, DWZHYE, ZXBH, LAST_UPDATE_TIME lastUpdateTime, CLLX from tgjj_dwckzhbdxx
  11. </sql>
  12. <select id="selectTgjjDwckzhbdxxList" parameterMap="TgjjDwckzhbdxx" resultMap="TgjjDwckzhbdxxResult">
  13. <include refid="selectTgjjDwckzhbdxxVo"/>
  14. <where>
  15. <if test="DWZH != null and DWZH != ''"> and DWZH = #{DWZH}</if>
  16. <if test="JZRQ != null "> and JZRQ = #{JZRQ}</if>
  17. <if test="FSE != null "> and FSE = #{FSE}</if>
  18. <if test="FSLXE != null "> and FSLXE = #{FSLXE}</if>
  19. <if test="FSRS != null "> and FSRS = #{FSRS}</if>
  20. <if test="YWMXLX != null and YWMXLX != ''"> and YWMXLX = #{YWMXLX}</if>
  21. <if test="HBJNY != null and HBJNY != ''"> and HBJNY = #{HBJNY}</if>
  22. <if test="YWLSH != null and YWLSH != ''"> and YWLSH = #{YWLSH}</if>
  23. <if test="CZBZ != null and CZBZ != ''"> and CZBZ = #{CZBZ}</if>
  24. <if test="DWZHYE != null "> and DWZHYE = #{DWZHYE}</if>
  25. <if test="ZXBH != null and ZXBH != ''"> and ZXBH = #{ZXBH}</if>
  26. <if test="lastUpdateTime != null "> and LAST_UPDATE_TIME = #{lastUpdateTime}</if>
  27. <if test="CLLX != null "> and CLLX = #{CLLX}</if>
  28. <if test="search_begintime != null"> and LAST_UPDATE_TIME >= #{search_begintime}</if>
  29. <if test="search_endtime != null"> and LAST_UPDATE_TIME &lt; #{search_endtime}</if>
  30. </where>
  31. </select>
  32. <select id="selectTgjjDwckzhbdxxById" parameterType="Long" resultMap="TgjjDwckzhbdxxResult">
  33. <include refid="selectTgjjDwckzhbdxxVo"/>
  34. where ID = #{ID}
  35. </select>
  36. <insert id="insertTgjjDwckzhbdxx" parameterMap="TgjjDwckzhbdxx" useGeneratedKeys="true" keyProperty="ID">
  37. insert into tgjj_dwckzhbdxx
  38. <trim prefix="(" suffix=")" suffixOverrides=",">
  39. <if test="ID != null">ID,</if>
  40. <if test="DWZH != null">DWZH,</if>
  41. <if test="JZRQ != null">JZRQ,</if>
  42. <if test="FSE != null">FSE,</if>
  43. <if test="FSLXE != null">FSLXE,</if>
  44. <if test="FSRS != null">FSRS,</if>
  45. <if test="YWMXLX != null">YWMXLX,</if>
  46. <if test="HBJNY != null">HBJNY,</if>
  47. <if test="YWLSH != null">YWLSH,</if>
  48. <if test="CZBZ != null">CZBZ,</if>
  49. <if test="DWZHYE != null">DWZHYE,</if>
  50. <if test="ZXBH != null">ZXBH,</if>
  51. <if test="lastUpdateTime != null">LAST_UPDATE_TIME,</if>
  52. <if test="CLLX != null">CLLX,</if>
  53. </trim>
  54. <trim prefix="values (" suffix=")" suffixOverrides=",">
  55. <if test="ID != null">#{ID},</if>
  56. <if test="DWZH != null">#{DWZH},</if>
  57. <if test="JZRQ != null">#{JZRQ},</if>
  58. <if test="FSE != null">#{FSE},</if>
  59. <if test="FSLXE != null">#{FSLXE},</if>
  60. <if test="FSRS != null">#{FSRS},</if>
  61. <if test="YWMXLX != null">#{YWMXLX},</if>
  62. <if test="HBJNY != null">#{HBJNY},</if>
  63. <if test="YWLSH != null">#{YWLSH},</if>
  64. <if test="CZBZ != null">#{CZBZ},</if>
  65. <if test="DWZHYE != null">#{DWZHYE},</if>
  66. <if test="ZXBH != null">#{ZXBH},</if>
  67. <if test="lastUpdateTime != null">#{lastUpdateTime},</if>
  68. <if test="CLLX != null">#{CLLX},</if>
  69. </trim>
  70. </insert>
  71. <update id="updateTgjjDwckzhbdxx" parameterMap="TgjjDwckzhbdxx">
  72. update tgjj_dwckzhbdxx
  73. <trim prefix="SET" suffixOverrides=",">
  74. <if test="DWZH != null">DWZH = #{DWZH},</if>
  75. <if test="JZRQ != null">JZRQ = #{JZRQ},</if>
  76. <if test="FSE != null">FSE = #{FSE},</if>
  77. <if test="FSLXE != null">FSLXE = #{FSLXE},</if>
  78. <if test="FSRS != null">FSRS = #{FSRS},</if>
  79. <if test="YWMXLX != null">YWMXLX = #{YWMXLX},</if>
  80. <if test="HBJNY != null">HBJNY = #{HBJNY},</if>
  81. <if test="YWLSH != null">YWLSH = #{YWLSH},</if>
  82. <if test="CZBZ != null">CZBZ = #{CZBZ},</if>
  83. <if test="DWZHYE != null">DWZHYE = #{DWZHYE},</if>
  84. <if test="ZXBH != null">ZXBH = #{ZXBH},</if>
  85. <if test="lastUpdateTime != null">LAST_UPDATE_TIME = #{lastUpdateTime},</if>
  86. <if test="CLLX != null">CLLX = #{CLLX},</if>
  87. </trim>
  88. where ID = #{ID}
  89. </update>
  90. </mapper>