ZsyzTcxxMapper.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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.ruoyi.system.mapper.projectV2.ZsyzTcxxMapper">
  6. <resultMap type="ZsyzTcxx" id="ZsyzTcxxResult">
  7. <result property="id" column="id" />
  8. <result property="xmId" column="xm_id" />
  9. <result property="xmbh" column="xmbh" />
  10. <result property="xmxsmc" column="xmxsmc" />
  11. <result property="xmmc" column="xmmc" />
  12. <result property="tcrq" column="tcrq" />
  13. <result property="rgsj" column="rgsj" />
  14. <result property="nrgsj" column="nrgsj" />
  15. <result property="tcgjrsjh" column="tcgjrsjh" />
  16. <result property="sjdze" column="sjdze" />
  17. <result property="ydmj" column="ydmj" />
  18. <result property="tdcr" column="tdcr" />
  19. <result property="xjcf" column="xjcf" />
  20. <result property="cftr" column="cftr" />
  21. <result property="sbqd" column="sbqd" />
  22. <result property="sbfp" column="sbfp" />
  23. <result property="sbht" column="sbht" />
  24. <result property="fkpz" column="fkpz" />
  25. <result property="zlcf" column="zlcf" />
  26. <result property="zlcftr" column="zlcftr" />
  27. <result property="zlsbqd" column="zlsbqd" />
  28. <result property="zlsbfp" column="zlsbfp" />
  29. <result property="zlsbht" column="zlsbht" />
  30. <result property="zlfkpz" column="zlfkpz" />
  31. <result property="sjss" column="sjss" />
  32. <result property="lxy" column="lxy" />
  33. <result property="jnsb" column="jnsb" />
  34. <result property="zbtr" column="zbtr" />
  35. <result property="ndsjss" column="ndsjss" />
  36. <result property="qt" column="qt" />
  37. <result property="createBy" column="create_by" />
  38. <result property="createTime" column="create_time" />
  39. <result property="updateBy" column="update_by" />
  40. <result property="updateTime" column="update_time" />
  41. <result property="remark" column="remark" />
  42. <result property="czwt" column="czwt" />
  43. </resultMap>
  44. <sql id="selectZsyzTcxxVo">
  45. select id, xm_id, xmbh, xmxsmc,xmmc, czwt,tcrq, rgsj, nrgsj, tcgjrsjh, sjdze, ydmj, tdcr, xjcf, cftr, sbqd, sbfp, sbht, fkpz, zlcf, zlcftr, zlsbqd, zlsbfp, zlsbht, zlfkpz, sjss, lxy, jnsb, zbtr, ndsjss, qt, create_by, create_time, update_by, update_time, remark from zsyz_tcxx
  46. </sql>
  47. <select id="selectZsyzTcxxList" parameterType="ZsyzTcxx" resultMap="ZsyzTcxxResult">
  48. <include refid="selectZsyzTcxxVo"/>
  49. <where>
  50. <if test="xmId != null "> and xm_id = #{xmId}</if>
  51. <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
  52. <if test="xmxsmc != null and xmxsmc != ''"> and xmxsmc = #{xmxsmc}</if>
  53. <if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
  54. <if test="tcrq != null "> and tcrq = #{tcrq}</if>
  55. <if test="rgsj != null "> and rgsj = #{rgsj}</if>
  56. <if test="nrgsj != null "> and nrgsj = #{nrgsj}</if>
  57. <if test="tcgjrsjh != null and tcgjrsjh != ''"> and tcgjrsjh = #{tcgjrsjh}</if>
  58. <if test="sjdze != null and sjdze != ''"> and sjdze = #{sjdze}</if>
  59. <if test="ydmj != null and ydmj != ''"> and ydmj = #{ydmj}</if>
  60. <if test="tdcr != null and tdcr != ''"> and tdcr = #{tdcr}</if>
  61. <if test="xjcf != null and xjcf != ''"> and xjcf = #{xjcf}</if>
  62. <if test="cftr != null and cftr != ''"> and cftr = #{cftr}</if>
  63. <if test="sbqd != null and sbqd != ''"> and sbqd = #{sbqd}</if>
  64. <if test="sbfp != null and sbfp != ''"> and sbfp = #{sbfp}</if>
  65. <if test="sbht != null and sbht != ''"> and sbht = #{sbht}</if>
  66. <if test="fkpz != null and fkpz != ''"> and fkpz = #{fkpz}</if>
  67. <if test="zlcf != null and zlcf != ''"> and zlcf = #{zlcf}</if>
  68. <if test="zlcftr != null and zlcftr != ''"> and zlcftr = #{zlcftr}</if>
  69. <if test="zlsbqd != null and zlsbqd != ''"> and zlsbqd = #{zlsbqd}</if>
  70. <if test="zlsbfp != null and zlsbfp != ''"> and zlsbfp = #{zlsbfp}</if>
  71. <if test="zlsbht != null and zlsbht != ''"> and zlsbht = #{zlsbht}</if>
  72. <if test="zlfkpz != null and zlfkpz != ''"> and zlfkpz = #{zlfkpz}</if>
  73. <if test="sjss != null and sjss != ''"> and sjss = #{sjss}</if>
  74. <if test="lxy != null and lxy != ''"> and lxy = #{lxy}</if>
  75. <if test="jnsb != null and jnsb != ''"> and jnsb = #{jnsb}</if>
  76. <if test="zbtr != null and zbtr != ''"> and zbtr = #{zbtr}</if>
  77. <if test="ndsjss != null and ndsjss != ''"> and ndsjss = #{ndsjss}</if>
  78. <if test="qt != null and qt != ''"> and qt = #{qt}</if>
  79. </where>
  80. order by create_time desc
  81. </select>
  82. <select id="selectZsyzTcxxById" parameterType="Long" resultMap="ZsyzTcxxResult">
  83. <include refid="selectZsyzTcxxVo"/>
  84. where xm_id = #{id}
  85. </select>
  86. <insert id="insertZsyzTcxx" parameterType="ZsyzTcxx" useGeneratedKeys="true" keyProperty="id">
  87. insert into zsyz_tcxx
  88. <trim prefix="(" suffix=")" suffixOverrides=",">
  89. <if test="xmId != null">xm_id,</if>
  90. <if test="xmbh != null">xmbh,</if>
  91. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc,</if>
  92. <if test="xmmc != null and xmmc != ''">xmmc,</if>
  93. <if test="tcrq != null">tcrq,</if>
  94. <if test="rgsj != null">rgsj,</if>
  95. <if test="nrgsj != null">nrgsj,</if>
  96. <if test="tcgjrsjh != null and tcgjrsjh != ''">tcgjrsjh,</if>
  97. <if test="sjdze != null">sjdze,</if>
  98. <if test="ydmj != null">ydmj,</if>
  99. <if test="tdcr != null">tdcr,</if>
  100. <if test="xjcf != null">xjcf,</if>
  101. <if test="cftr != null">cftr,</if>
  102. <if test="sbqd != null">sbqd,</if>
  103. <if test="sbfp != null">sbfp,</if>
  104. <if test="sbht != null">sbht,</if>
  105. <if test="fkpz != null">fkpz,</if>
  106. <if test="zlcf != null">zlcf,</if>
  107. <if test="zlcftr != null">zlcftr,</if>
  108. <if test="zlsbqd != null">zlsbqd,</if>
  109. <if test="zlsbfp != null">zlsbfp,</if>
  110. <if test="zlsbht != null">zlsbht,</if>
  111. <if test="zlfkpz != null">zlfkpz,</if>
  112. <if test="sjss != null">sjss,</if>
  113. <if test="lxy != null">lxy,</if>
  114. <if test="jnsb != null">jnsb,</if>
  115. <if test="zbtr != null">zbtr,</if>
  116. <if test="ndsjss != null">ndsjss,</if>
  117. <if test="qt != null">qt,</if>
  118. <if test="createBy != null">create_by,</if>
  119. <if test="createTime != null">create_time,</if>
  120. <if test="updateBy != null">update_by,</if>
  121. <if test="updateTime != null">update_time,</if>
  122. <if test="remark != null">remark,</if>
  123. <if test="czwt != null">czwt,</if>
  124. </trim>
  125. <trim prefix="values (" suffix=")" suffixOverrides=",">
  126. <if test="xmId != null">#{xmId},</if>
  127. <if test="xmbh != null">#{xmbh},</if>
  128. <if test="xmxsmc != null and xmxsmc != ''">#{xmxsmc},</if>
  129. <if test="xmmc != null and xmmc != ''">#{xmmc},</if>
  130. <if test="tcrq != null">#{tcrq},</if>
  131. <if test="rgsj != null">#{rgsj},</if>
  132. <if test="nrgsj != null">#{nrgsj},</if>
  133. <if test="tcgjrsjh != null and tcgjrsjh != ''">#{tcgjrsjh},</if>
  134. <if test="sjdze != null">#{sjdze},</if>
  135. <if test="ydmj != null">#{ydmj},</if>
  136. <if test="tdcr != null">#{tdcr},</if>
  137. <if test="xjcf != null">#{xjcf},</if>
  138. <if test="cftr != null">#{cftr},</if>
  139. <if test="sbqd != null">#{sbqd},</if>
  140. <if test="sbfp != null">#{sbfp},</if>
  141. <if test="sbht != null">#{sbht},</if>
  142. <if test="fkpz != null">#{fkpz},</if>
  143. <if test="zlcf != null">#{zlcf},</if>
  144. <if test="zlcftr != null">#{zlcftr},</if>
  145. <if test="zlsbqd != null">#{zlsbqd},</if>
  146. <if test="zlsbfp != null">#{zlsbfp},</if>
  147. <if test="zlsbht != null">#{zlsbht},</if>
  148. <if test="zlfkpz != null">#{zlfkpz},</if>
  149. <if test="sjss != null">#{sjss},</if>
  150. <if test="lxy != null">#{lxy},</if>
  151. <if test="jnsb != null">#{jnsb},</if>
  152. <if test="zbtr != null">#{zbtr},</if>
  153. <if test="ndsjss != null">#{ndsjss},</if>
  154. <if test="qt != null">#{qt},</if>
  155. <if test="createBy != null">#{createBy},</if>
  156. <if test="createTime != null">#{createTime},</if>
  157. <if test="updateBy != null">#{updateBy},</if>
  158. <if test="updateTime != null">#{updateTime},</if>
  159. <if test="remark != null">#{remark},</if>
  160. <if test="czwt != null">#{czwt},</if>
  161. </trim>
  162. </insert>
  163. <update id="updateZsyzTcxx" parameterType="ZsyzTcxx">
  164. update zsyz_tcxx
  165. <trim prefix="SET" suffixOverrides=",">
  166. <if test="xmId != null">xm_id = #{xmId},</if>
  167. <if test="xmbh != null">xmbh = #{xmbh},</if>
  168. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc = #{xmxsmc},</if>
  169. <if test="xmmc != null and xmmc != ''">xmmc = #{xmmc},</if>
  170. <if test="tcrq != null">tcrq = #{tcrq},</if>
  171. <if test="rgsj != null">rgsj = #{rgsj},</if>
  172. <if test="nrgsj != null">nrgsj = #{nrgsj},</if>
  173. <if test="tcgjrsjh != null and tcgjrsjh != ''">tcgjrsjh = #{tcgjrsjh},</if>
  174. <if test="sjdze != null">sjdze = #{sjdze},</if>
  175. <if test="ydmj != null">ydmj = #{ydmj},</if>
  176. <if test="tdcr != null">tdcr = #{tdcr},</if>
  177. <if test="xjcf != null">xjcf = #{xjcf},</if>
  178. <if test="cftr != null">cftr = #{cftr},</if>
  179. <if test="sbqd != null">sbqd = #{sbqd},</if>
  180. <if test="sbfp != null">sbfp = #{sbfp},</if>
  181. <if test="sbht != null">sbht = #{sbht},</if>
  182. <if test="fkpz != null">fkpz = #{fkpz},</if>
  183. <if test="zlcf != null">zlcf = #{zlcf},</if>
  184. <if test="zlcftr != null">zlcftr = #{zlcftr},</if>
  185. <if test="zlsbqd != null">zlsbqd = #{zlsbqd},</if>
  186. <if test="zlsbfp != null">zlsbfp = #{zlsbfp},</if>
  187. <if test="zlsbht != null">zlsbht = #{zlsbht},</if>
  188. <if test="zlfkpz != null">zlfkpz = #{zlfkpz},</if>
  189. <if test="sjss != null">sjss = #{sjss},</if>
  190. <if test="lxy != null">lxy = #{lxy},</if>
  191. <if test="jnsb != null">jnsb = #{jnsb},</if>
  192. <if test="zbtr != null">zbtr = #{zbtr},</if>
  193. <if test="ndsjss != null">ndsjss = #{ndsjss},</if>
  194. <if test="qt != null">qt = #{qt},</if>
  195. <if test="createBy != null">create_by = #{createBy},</if>
  196. <if test="createTime != null">create_time = #{createTime},</if>
  197. <if test="updateBy != null">update_by = #{updateBy},</if>
  198. <if test="updateTime != null">update_time = #{updateTime},</if>
  199. <if test="remark != null">remark = #{remark},</if>
  200. <if test="czwt != null">czwt = #{czwt},</if>
  201. </trim>
  202. where id = #{id}
  203. </update>
  204. <delete id="deleteZsyzTcxxById" parameterType="Long">
  205. delete from zsyz_tcxx where id = #{id}
  206. </delete>
  207. <delete id="deleteZsyzTcxxByIds" parameterType="String">
  208. delete from zsyz_tcxx where id in
  209. <foreach item="id" collection="array" open="(" separator="," close=")">
  210. #{id}
  211. </foreach>
  212. </delete>
  213. </mapper>