ZsyzSbbzbMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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.ZsyzSbbzbMapper">
  6. <resultMap type="ZsyzSbbzb" id="ZsyzSbbzbResult">
  7. <result property="id" column="id" />
  8. <result property="sbdw" column="sbdw" />
  9. <result property="tbrq" column="tbrq" />
  10. <result property="zszxfzr" column="zszxfzr" />
  11. <result property="xmbh" column="xmbh" />
  12. <result property="xmxsmc" column="xmxsmc" />
  13. <result property="sfwlhxxxm" column="sfwlhxxxm" />
  14. <result property="yzdqId" column="yzdq_id" />
  15. <result property="yzdqName" column="yzdq_name" />
  16. <result property="yzssName" column="yzss_name" />
  17. <result property="ntze" column="ntze" />
  18. <result property="cylxId" column="cylx_id" />
  19. <result property="cylxName" column="cylx_name" />
  20. <result property="xmlb" column="xmlb" />
  21. <result property="tzlb" column="tzlb" />
  22. <result property="nlhd" column="nlhd" />
  23. <result property="czpt" column="czpt" />
  24. <result property="tzzt" column="tzzt" />
  25. <result property="xmjz" column="xmjz" />
  26. <result property="gtzzrsfzhm" column="gtzzrsfzhm" />
  27. <result property="qytzrxyzdm" column="qytzrxyzdm" />
  28. <result property="qybj" column="qybj" />
  29. <result property="tzfjj" column="tzfjj" />
  30. <result property="sndxse" column="sndxse" />
  31. <result property="sndnse" column="sndnse" />
  32. <result property="tzrxm" column="tzrxm" />
  33. <result property="tzrzw" column="tzrzw" />
  34. <result property="tzrdh" column="tzrdh" />
  35. <result property="xmjj" column="xmjj" />
  36. <result property="name" column="name" />
  37. <result property="strq" column="strq" />
  38. <result property="phone" column="phone" />
  39. <result property="zw" column="zw" />
  40. <result property="createBy" column="create_by" />
  41. <result property="createTime" column="create_time" />
  42. <result property="updateBy" column="update_by" />
  43. <result property="updateTime" column="update_time" />
  44. <result property="remark" column="remark" />
  45. </resultMap>
  46. <sql id="selectZsyzSbbzbVo">
  47. select id, sbdw, tbrq, zszxfzr, xmbh, xmxsmc, sfwlhxxxm, yzdq_id, yzdq_name, yzss_name, ntze, cylx_id, cylx_name, xmlb, tzlb, nlhd, czpt, tzzt, xmjz, gtzzrsfzhm, qytzrxyzdm, qybj, tzfjj, sndxse, sndnse, tzrxm, tzrzw, tzrdh, xmjj, name, strq, phone, zw, create_by, create_time, update_by, update_time, remark from zsyz_sbbzb
  48. </sql>
  49. <select id="selectZsyzSbbzbList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  50. <include refid="selectZsyzSbbzbVo"/>
  51. <where>
  52. <if test="sbdw != null and sbdw != ''"> and sbdw = #{sbdw}</if>
  53. <if test="tbrq != null "> and tbrq = #{tbrq}</if>
  54. <if test="zszxfzr != null and zszxfzr != ''"> and zszxfzr = #{zszxfzr}</if>
  55. <if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
  56. <if test="xmxsmc != null and xmxsmc != ''"> and xmxsmc = #{xmxsmc}</if>
  57. <if test="sfwlhxxxm != null and sfwlhxxxm != ''"> and sfwlhxxxm = #{sfwlhxxxm}</if>
  58. <if test="yzdqId != null and yzdqId != ''"> and yzdq_id = #{yzdqId}</if>
  59. <if test="yzdqName != null and yzdqName != ''"> and yzdq_name like concat('%', #{yzdqName}, '%')</if>
  60. <if test="yzssName != null and yzssName != ''"> and yzss_name like concat('%', #{yzssName}, '%')</if>
  61. <if test="ntze != null and ntze != ''"> and ntze = #{ntze}</if>
  62. <if test="cylxId != null and cylxId != ''"> and cylx_id = #{cylxId}</if>
  63. <if test="cylxName != null and cylxName != ''"> and cylx_name like concat('%', #{cylxName}, '%')</if>
  64. <if test="xmlb != null and xmlb != ''"> and xmlb = #{xmlb}</if>
  65. <if test="tzlb != null and tzlb != ''"> and tzlb = #{tzlb}</if>
  66. <if test="nlhd != null and nlhd != ''"> and nlhd = #{nlhd}</if>
  67. <if test="czpt != null and czpt != ''"> and czpt = #{czpt}</if>
  68. <if test="tzzt != null and tzzt != ''"> and tzzt = #{tzzt}</if>
  69. <if test="xmjz != null and xmjz != ''"> and xmjz = #{xmjz}</if>
  70. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''"> and gtzzrsfzhm = #{gtzzrsfzhm}</if>
  71. <if test="qytzrxyzdm != null and qytzrxyzdm != ''"> and qytzrxyzdm = #{qytzrxyzdm}</if>
  72. <if test="qybj != null and qybj != ''"> and qybj = #{qybj}</if>
  73. <if test="tzfjj != null and tzfjj != ''"> and tzfjj = #{tzfjj}</if>
  74. <if test="sndxse != null and sndxse != ''"> and sndxse = #{sndxse}</if>
  75. <if test="sndnse != null and sndnse != ''"> and sndnse = #{sndnse}</if>
  76. <if test="tzrxm != null and tzrxm != ''"> and tzrxm = #{tzrxm}</if>
  77. <if test="tzrzw != null and tzrzw != ''"> and tzrzw = #{tzrzw}</if>
  78. <if test="tzrdh != null and tzrdh != ''"> and tzrdh = #{tzrdh}</if>
  79. <if test="xmjj != null and xmjj != ''"> and xmjj = #{xmjj}</if>
  80. <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  81. <if test="strq != null "> and strq = #{strq}</if>
  82. <if test="phone != null and phone != ''"> and phone = #{phone}</if>
  83. <if test="zw != null and zw != ''"> and zw = #{zw}</if>
  84. </where>
  85. </select>
  86. <select id="selectZsyzSbbzbById" parameterType="Long" resultMap="ZsyzSbbzbResult">
  87. <include refid="selectZsyzSbbzbVo"/>
  88. where id = #{id}
  89. </select>
  90. <insert id="insertZsyzSbbzb" parameterType="ZsyzSbbzb" useGeneratedKeys="true" keyProperty="id">
  91. insert into zsyz_sbbzb
  92. <trim prefix="(" suffix=")" suffixOverrides=",">
  93. <if test="sbdw != null and sbdw != ''">sbdw,</if>
  94. <if test="tbrq != null">tbrq,</if>
  95. <if test="zszxfzr != null and zszxfzr != ''">zszxfzr,</if>
  96. <if test="xmbh != null">xmbh,</if>
  97. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc,</if>
  98. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm,</if>
  99. <if test="yzdqId != null and yzdqId != ''">yzdq_id,</if>
  100. <if test="yzdqName != null and yzdqName != ''">yzdq_name,</if>
  101. <if test="yzssName != null and yzssName != ''">yzss_name,</if>
  102. <if test="ntze != null and ntze != ''">ntze,</if>
  103. <if test="cylxId != null and cylxId != ''">cylx_id,</if>
  104. <if test="cylxName != null and cylxName != ''">cylx_name,</if>
  105. <if test="xmlb != null and xmlb != ''">xmlb,</if>
  106. <if test="tzlb != null and tzlb != ''">tzlb,</if>
  107. <if test="nlhd != null and nlhd != ''">nlhd,</if>
  108. <if test="czpt != null and czpt != ''">czpt,</if>
  109. <if test="tzzt != null and tzzt != ''">tzzt,</if>
  110. <if test="xmjz != null and xmjz != ''">xmjz,</if>
  111. <if test="gtzzrsfzhm != null">gtzzrsfzhm,</if>
  112. <if test="qytzrxyzdm != null">qytzrxyzdm,</if>
  113. <if test="qybj != null and qybj != ''">qybj,</if>
  114. <if test="tzfjj != null">tzfjj,</if>
  115. <if test="sndxse != null">sndxse,</if>
  116. <if test="sndnse != null">sndnse,</if>
  117. <if test="tzrxm != null">tzrxm,</if>
  118. <if test="tzrzw != null">tzrzw,</if>
  119. <if test="tzrdh != null">tzrdh,</if>
  120. <if test="xmjj != null">xmjj,</if>
  121. <if test="name != null and name != ''">name,</if>
  122. <if test="strq != null">strq,</if>
  123. <if test="phone != null and phone != ''">phone,</if>
  124. <if test="zw != null and zw != ''">zw,</if>
  125. <if test="createBy != null">create_by,</if>
  126. <if test="createTime != null">create_time,</if>
  127. <if test="updateBy != null">update_by,</if>
  128. <if test="updateTime != null">update_time,</if>
  129. <if test="remark != null">remark,</if>
  130. </trim>
  131. <trim prefix="values (" suffix=")" suffixOverrides=",">
  132. <if test="sbdw != null and sbdw != ''">#{sbdw},</if>
  133. <if test="tbrq != null">#{tbrq},</if>
  134. <if test="zszxfzr != null and zszxfzr != ''">#{zszxfzr},</if>
  135. <if test="xmbh != null">#{xmbh},</if>
  136. <if test="xmxsmc != null and xmxsmc != ''">#{xmxsmc},</if>
  137. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">#{sfwlhxxxm},</if>
  138. <if test="yzdqId != null and yzdqId != ''">#{yzdqId},</if>
  139. <if test="yzdqName != null and yzdqName != ''">#{yzdqName},</if>
  140. <if test="yzssName != null and yzssName != ''">#{yzssName},</if>
  141. <if test="ntze != null and ntze != ''">#{ntze},</if>
  142. <if test="cylxId != null and cylxId != ''">#{cylxId},</if>
  143. <if test="cylxName != null and cylxName != ''">#{cylxName},</if>
  144. <if test="xmlb != null and xmlb != ''">#{xmlb},</if>
  145. <if test="tzlb != null and tzlb != ''">#{tzlb},</if>
  146. <if test="nlhd != null and nlhd != ''">#{nlhd},</if>
  147. <if test="czpt != null and czpt != ''">#{czpt},</if>
  148. <if test="tzzt != null and tzzt != ''">#{tzzt},</if>
  149. <if test="xmjz != null and xmjz != ''">#{xmjz},</if>
  150. <if test="gtzzrsfzhm != null">#{gtzzrsfzhm},</if>
  151. <if test="qytzrxyzdm != null">#{qytzrxyzdm},</if>
  152. <if test="qybj != null and qybj != ''">#{qybj},</if>
  153. <if test="tzfjj != null">#{tzfjj},</if>
  154. <if test="sndxse != null">#{sndxse},</if>
  155. <if test="sndnse != null">#{sndnse},</if>
  156. <if test="tzrxm != null">#{tzrxm},</if>
  157. <if test="tzrzw != null">#{tzrzw},</if>
  158. <if test="tzrdh != null">#{tzrdh},</if>
  159. <if test="xmjj != null">#{xmjj},</if>
  160. <if test="name != null and name != ''">#{name},</if>
  161. <if test="strq != null">#{strq},</if>
  162. <if test="phone != null and phone != ''">#{phone},</if>
  163. <if test="zw != null and zw != ''">#{zw},</if>
  164. <if test="createBy != null">#{createBy},</if>
  165. <if test="createTime != null">#{createTime},</if>
  166. <if test="updateBy != null">#{updateBy},</if>
  167. <if test="updateTime != null">#{updateTime},</if>
  168. <if test="remark != null">#{remark},</if>
  169. </trim>
  170. </insert>
  171. <update id="updateZsyzSbbzb" parameterType="ZsyzSbbzb">
  172. update zsyz_sbbzb
  173. <trim prefix="SET" suffixOverrides=",">
  174. <if test="sbdw != null and sbdw != ''">sbdw = #{sbdw},</if>
  175. <if test="tbrq != null">tbrq = #{tbrq},</if>
  176. <if test="zszxfzr != null and zszxfzr != ''">zszxfzr = #{zszxfzr},</if>
  177. <if test="xmbh != null">xmbh = #{xmbh},</if>
  178. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc = #{xmxsmc},</if>
  179. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm = #{sfwlhxxxm},</if>
  180. <if test="yzdqId != null and yzdqId != ''">yzdq_id = #{yzdqId},</if>
  181. <if test="yzdqName != null and yzdqName != ''">yzdq_name = #{yzdqName},</if>
  182. <if test="yzssName != null and yzssName != ''">yzss_name = #{yzssName},</if>
  183. <if test="ntze != null and ntze != ''">ntze = #{ntze},</if>
  184. <if test="cylxId != null and cylxId != ''">cylx_id = #{cylxId},</if>
  185. <if test="cylxName != null and cylxName != ''">cylx_name = #{cylxName},</if>
  186. <if test="xmlb != null and xmlb != ''">xmlb = #{xmlb},</if>
  187. <if test="tzlb != null and tzlb != ''">tzlb = #{tzlb},</if>
  188. <if test="nlhd != null and nlhd != ''">nlhd = #{nlhd},</if>
  189. <if test="czpt != null and czpt != ''">czpt = #{czpt},</if>
  190. <if test="tzzt != null and tzzt != ''">tzzt = #{tzzt},</if>
  191. <if test="xmjz != null and xmjz != ''">xmjz = #{xmjz},</if>
  192. <if test="gtzzrsfzhm != null">gtzzrsfzhm = #{gtzzrsfzhm},</if>
  193. <if test="qytzrxyzdm != null">qytzrxyzdm = #{qytzrxyzdm},</if>
  194. <if test="qybj != null and qybj != ''">qybj = #{qybj},</if>
  195. <if test="tzfjj != null">tzfjj = #{tzfjj},</if>
  196. <if test="sndxse != null">sndxse = #{sndxse},</if>
  197. <if test="sndnse != null">sndnse = #{sndnse},</if>
  198. <if test="tzrxm != null">tzrxm = #{tzrxm},</if>
  199. <if test="tzrzw != null">tzrzw = #{tzrzw},</if>
  200. <if test="tzrdh != null">tzrdh = #{tzrdh},</if>
  201. <if test="xmjj != null">xmjj = #{xmjj},</if>
  202. <if test="name != null and name != ''">name = #{name},</if>
  203. <if test="strq != null">strq = #{strq},</if>
  204. <if test="phone != null and phone != ''">phone = #{phone},</if>
  205. <if test="zw != null and zw != ''">zw = #{zw},</if>
  206. <if test="createBy != null">create_by = #{createBy},</if>
  207. <if test="createTime != null">create_time = #{createTime},</if>
  208. <if test="updateBy != null">update_by = #{updateBy},</if>
  209. <if test="updateTime != null">update_time = #{updateTime},</if>
  210. <if test="remark != null">remark = #{remark},</if>
  211. </trim>
  212. where id = #{id}
  213. </update>
  214. <delete id="deleteZsyzSbbzbById" parameterType="Long">
  215. delete from zsyz_sbbzb where id = #{id}
  216. </delete>
  217. <delete id="deleteZsyzSbbzbByIds" parameterType="String">
  218. delete from zsyz_sbbzb where id in
  219. <foreach item="id" collection="array" open="(" separator="," close=")">
  220. #{id}
  221. </foreach>
  222. </delete>
  223. </mapper>