PfPartylifemeetingMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.ghsc.partybuild.mapper.PfPartylifemeetingMapper">
  4. <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PfPartylifemeeting">
  5. <id column="partyLifeMeetingId" jdbcType="VARCHAR" property="partylifemeetingid" />
  6. <result column="title" jdbcType="VARCHAR" property="title" />
  7. <result column="partyCode" jdbcType="VARCHAR" property="partycode" />
  8. <result column="partyLifeMeetingType" jdbcType="INTEGER" property="partylifemeetingtype" />
  9. <result column="meetingDate" jdbcType="DATE" property="meetingdate" />
  10. <result column="userCount" jdbcType="INTEGER" property="usercount" />
  11. <result column="address" jdbcType="VARCHAR" property="address" />
  12. <result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
  13. <result column="createUserId" jdbcType="VARCHAR" property="createuserid" />
  14. <result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
  15. <result column="updateUserId" jdbcType="VARCHAR" property="updateuserid" />
  16. <result column="personnel" jdbcType="VARCHAR" property="personnel" />
  17. <result column="result" jdbcType="VARCHAR" property="result" />
  18. <result column="compere" jdbcType="VARCHAR" property="compere" />
  19. <result column="meetingType" jdbcType="INTEGER" property="meetingtype" />
  20. </resultMap>
  21. <sql id="Example_Where_Clause">
  22. <where>
  23. <foreach collection="oredCriteria" item="criteria" separator="or">
  24. <if test="criteria.valid">
  25. <trim prefix="(" prefixOverrides="and" suffix=")">
  26. <foreach collection="criteria.criteria" item="criterion">
  27. <choose>
  28. <when test="criterion.noValue">
  29. and ${criterion.condition}
  30. </when>
  31. <when test="criterion.singleValue">
  32. and ${criterion.condition} #{criterion.value}
  33. </when>
  34. <when test="criterion.betweenValue">
  35. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  36. </when>
  37. <when test="criterion.listValue">
  38. and ${criterion.condition}
  39. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  40. #{listItem}
  41. </foreach>
  42. </when>
  43. </choose>
  44. </foreach>
  45. </trim>
  46. </if>
  47. </foreach>
  48. </where>
  49. </sql>
  50. <sql id="Update_By_Example_Where_Clause">
  51. <where>
  52. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  53. <if test="criteria.valid">
  54. <trim prefix="(" prefixOverrides="and" suffix=")">
  55. <foreach collection="criteria.criteria" item="criterion">
  56. <choose>
  57. <when test="criterion.noValue">
  58. and ${criterion.condition}
  59. </when>
  60. <when test="criterion.singleValue">
  61. and ${criterion.condition} #{criterion.value}
  62. </when>
  63. <when test="criterion.betweenValue">
  64. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  65. </when>
  66. <when test="criterion.listValue">
  67. and ${criterion.condition}
  68. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  69. #{listItem}
  70. </foreach>
  71. </when>
  72. </choose>
  73. </foreach>
  74. </trim>
  75. </if>
  76. </foreach>
  77. </where>
  78. </sql>
  79. <sql id="Base_Column_List">
  80. partyLifeMeetingId, title, partyCode, partyLifeMeetingType, meetingDate, userCount,
  81. address, createTime, createUserId, updateTime, updateUserId, personnel, result, compere,
  82. meetingType
  83. </sql>
  84. <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PfPartylifemeetingExample" resultMap="BaseResultMap">
  85. select
  86. <if test="distinct">
  87. distinct
  88. </if>
  89. <include refid="Base_Column_List" />
  90. from pf_partylifemeeting
  91. <if test="_parameter != null">
  92. <include refid="Example_Where_Clause" />
  93. </if>
  94. <if test="orderByClause != null">
  95. order by ${orderByClause}
  96. </if>
  97. </select>
  98. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  99. select
  100. <include refid="Base_Column_List" />
  101. from pf_partylifemeeting
  102. where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
  103. </select>
  104. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  105. delete from pf_partylifemeeting
  106. where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
  107. </delete>
  108. <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PfPartylifemeetingExample">
  109. delete from pf_partylifemeeting
  110. <if test="_parameter != null">
  111. <include refid="Example_Where_Clause" />
  112. </if>
  113. </delete>
  114. <insert id="insert" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
  115. insert into pf_partylifemeeting (partyLifeMeetingId, title, partyCode,
  116. partyLifeMeetingType, meetingDate, userCount,
  117. address, createTime, createUserId,
  118. updateTime, updateUserId, personnel,
  119. result, compere, meetingType
  120. )
  121. values (#{partylifemeetingid,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{partycode,jdbcType=VARCHAR},
  122. #{partylifemeetingtype,jdbcType=INTEGER}, #{meetingdate,jdbcType=DATE}, #{usercount,jdbcType=INTEGER},
  123. #{address,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{createuserid,jdbcType=VARCHAR},
  124. #{updatetime,jdbcType=TIMESTAMP}, #{updateuserid,jdbcType=VARCHAR}, #{personnel,jdbcType=VARCHAR},
  125. #{result,jdbcType=VARCHAR}, #{compere,jdbcType=VARCHAR}, #{meetingtype,jdbcType=INTEGER}
  126. )
  127. </insert>
  128. <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
  129. insert into pf_partylifemeeting
  130. <trim prefix="(" suffix=")" suffixOverrides=",">
  131. <if test="partylifemeetingid != null">
  132. partyLifeMeetingId,
  133. </if>
  134. <if test="title != null">
  135. title,
  136. </if>
  137. <if test="partycode != null">
  138. partyCode,
  139. </if>
  140. <if test="partylifemeetingtype != null">
  141. partyLifeMeetingType,
  142. </if>
  143. <if test="meetingdate != null">
  144. meetingDate,
  145. </if>
  146. <if test="usercount != null">
  147. userCount,
  148. </if>
  149. <if test="address != null">
  150. address,
  151. </if>
  152. <if test="createtime != null">
  153. createTime,
  154. </if>
  155. <if test="createuserid != null">
  156. createUserId,
  157. </if>
  158. <if test="updatetime != null">
  159. updateTime,
  160. </if>
  161. <if test="updateuserid != null">
  162. updateUserId,
  163. </if>
  164. <if test="personnel != null">
  165. personnel,
  166. </if>
  167. <if test="result != null">
  168. result,
  169. </if>
  170. <if test="compere != null">
  171. compere,
  172. </if>
  173. <if test="meetingtype != null">
  174. meetingType,
  175. </if>
  176. </trim>
  177. <trim prefix="values (" suffix=")" suffixOverrides=",">
  178. <if test="partylifemeetingid != null">
  179. #{partylifemeetingid,jdbcType=VARCHAR},
  180. </if>
  181. <if test="title != null">
  182. #{title,jdbcType=VARCHAR},
  183. </if>
  184. <if test="partycode != null">
  185. #{partycode,jdbcType=VARCHAR},
  186. </if>
  187. <if test="partylifemeetingtype != null">
  188. #{partylifemeetingtype,jdbcType=INTEGER},
  189. </if>
  190. <if test="meetingdate != null">
  191. #{meetingdate,jdbcType=DATE},
  192. </if>
  193. <if test="usercount != null">
  194. #{usercount,jdbcType=INTEGER},
  195. </if>
  196. <if test="address != null">
  197. #{address,jdbcType=VARCHAR},
  198. </if>
  199. <if test="createtime != null">
  200. #{createtime,jdbcType=TIMESTAMP},
  201. </if>
  202. <if test="createuserid != null">
  203. #{createuserid,jdbcType=VARCHAR},
  204. </if>
  205. <if test="updatetime != null">
  206. #{updatetime,jdbcType=TIMESTAMP},
  207. </if>
  208. <if test="updateuserid != null">
  209. #{updateuserid,jdbcType=VARCHAR},
  210. </if>
  211. <if test="personnel != null">
  212. #{personnel,jdbcType=VARCHAR},
  213. </if>
  214. <if test="result != null">
  215. #{result,jdbcType=VARCHAR},
  216. </if>
  217. <if test="compere != null">
  218. #{compere,jdbcType=VARCHAR},
  219. </if>
  220. <if test="meetingtype != null">
  221. #{meetingtype,jdbcType=INTEGER},
  222. </if>
  223. </trim>
  224. </insert>
  225. <select id="countByExample" parameterType="com.ghsc.partybuild.model.PfPartylifemeetingExample" resultType="java.lang.Long">
  226. select count(*) from pf_partylifemeeting
  227. <if test="_parameter != null">
  228. <include refid="Example_Where_Clause" />
  229. </if>
  230. </select>
  231. <update id="updateByExampleSelective" parameterType="map">
  232. update pf_partylifemeeting
  233. <set>
  234. <if test="record.partylifemeetingid != null">
  235. partyLifeMeetingId = #{record.partylifemeetingid,jdbcType=VARCHAR},
  236. </if>
  237. <if test="record.title != null">
  238. title = #{record.title,jdbcType=VARCHAR},
  239. </if>
  240. <if test="record.partycode != null">
  241. partyCode = #{record.partycode,jdbcType=VARCHAR},
  242. </if>
  243. <if test="record.partylifemeetingtype != null">
  244. partyLifeMeetingType = #{record.partylifemeetingtype,jdbcType=INTEGER},
  245. </if>
  246. <if test="record.meetingdate != null">
  247. meetingDate = #{record.meetingdate,jdbcType=DATE},
  248. </if>
  249. <if test="record.usercount != null">
  250. userCount = #{record.usercount,jdbcType=INTEGER},
  251. </if>
  252. <if test="record.address != null">
  253. address = #{record.address,jdbcType=VARCHAR},
  254. </if>
  255. <if test="record.createtime != null">
  256. createTime = #{record.createtime,jdbcType=TIMESTAMP},
  257. </if>
  258. <if test="record.createuserid != null">
  259. createUserId = #{record.createuserid,jdbcType=VARCHAR},
  260. </if>
  261. <if test="record.updatetime != null">
  262. updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
  263. </if>
  264. <if test="record.updateuserid != null">
  265. updateUserId = #{record.updateuserid,jdbcType=VARCHAR},
  266. </if>
  267. <if test="record.personnel != null">
  268. personnel = #{record.personnel,jdbcType=VARCHAR},
  269. </if>
  270. <if test="record.result != null">
  271. result = #{record.result,jdbcType=VARCHAR},
  272. </if>
  273. <if test="record.compere != null">
  274. compere = #{record.compere,jdbcType=VARCHAR},
  275. </if>
  276. <if test="record.meetingtype != null">
  277. meetingType = #{record.meetingtype,jdbcType=INTEGER},
  278. </if>
  279. </set>
  280. <if test="_parameter != null">
  281. <include refid="Update_By_Example_Where_Clause" />
  282. </if>
  283. </update>
  284. <update id="updateByExample" parameterType="map">
  285. update pf_partylifemeeting
  286. set partyLifeMeetingId = #{record.partylifemeetingid,jdbcType=VARCHAR},
  287. title = #{record.title,jdbcType=VARCHAR},
  288. partyCode = #{record.partycode,jdbcType=VARCHAR},
  289. partyLifeMeetingType = #{record.partylifemeetingtype,jdbcType=INTEGER},
  290. meetingDate = #{record.meetingdate,jdbcType=DATE},
  291. userCount = #{record.usercount,jdbcType=INTEGER},
  292. address = #{record.address,jdbcType=VARCHAR},
  293. createTime = #{record.createtime,jdbcType=TIMESTAMP},
  294. createUserId = #{record.createuserid,jdbcType=VARCHAR},
  295. updateTime = #{record.updatetime,jdbcType=TIMESTAMP},
  296. updateUserId = #{record.updateuserid,jdbcType=VARCHAR},
  297. personnel = #{record.personnel,jdbcType=VARCHAR},
  298. result = #{record.result,jdbcType=VARCHAR},
  299. compere = #{record.compere,jdbcType=VARCHAR},
  300. meetingType = #{record.meetingtype,jdbcType=INTEGER}
  301. <if test="_parameter != null">
  302. <include refid="Update_By_Example_Where_Clause" />
  303. </if>
  304. </update>
  305. <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
  306. update pf_partylifemeeting
  307. <set>
  308. <if test="title != null">
  309. title = #{title,jdbcType=VARCHAR},
  310. </if>
  311. <if test="partycode != null">
  312. partyCode = #{partycode,jdbcType=VARCHAR},
  313. </if>
  314. <if test="partylifemeetingtype != null">
  315. partyLifeMeetingType = #{partylifemeetingtype,jdbcType=INTEGER},
  316. </if>
  317. <if test="meetingdate != null">
  318. meetingDate = #{meetingdate,jdbcType=DATE},
  319. </if>
  320. <if test="usercount != null">
  321. userCount = #{usercount,jdbcType=INTEGER},
  322. </if>
  323. <if test="address != null">
  324. address = #{address,jdbcType=VARCHAR},
  325. </if>
  326. <if test="createtime != null">
  327. createTime = #{createtime,jdbcType=TIMESTAMP},
  328. </if>
  329. <if test="createuserid != null">
  330. createUserId = #{createuserid,jdbcType=VARCHAR},
  331. </if>
  332. <if test="updatetime != null">
  333. updateTime = #{updatetime,jdbcType=TIMESTAMP},
  334. </if>
  335. <if test="updateuserid != null">
  336. updateUserId = #{updateuserid,jdbcType=VARCHAR},
  337. </if>
  338. <if test="personnel != null">
  339. personnel = #{personnel,jdbcType=VARCHAR},
  340. </if>
  341. <if test="result != null">
  342. result = #{result,jdbcType=VARCHAR},
  343. </if>
  344. <if test="compere != null">
  345. compere = #{compere,jdbcType=VARCHAR},
  346. </if>
  347. <if test="meetingtype != null">
  348. meetingType = #{meetingtype,jdbcType=INTEGER},
  349. </if>
  350. </set>
  351. where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
  352. </update>
  353. <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.PfPartylifemeeting">
  354. update pf_partylifemeeting
  355. set title = #{title,jdbcType=VARCHAR},
  356. partyCode = #{partycode,jdbcType=VARCHAR},
  357. partyLifeMeetingType = #{partylifemeetingtype,jdbcType=INTEGER},
  358. meetingDate = #{meetingdate,jdbcType=DATE},
  359. userCount = #{usercount,jdbcType=INTEGER},
  360. address = #{address,jdbcType=VARCHAR},
  361. createTime = #{createtime,jdbcType=TIMESTAMP},
  362. createUserId = #{createuserid,jdbcType=VARCHAR},
  363. updateTime = #{updatetime,jdbcType=TIMESTAMP},
  364. updateUserId = #{updateuserid,jdbcType=VARCHAR},
  365. personnel = #{personnel,jdbcType=VARCHAR},
  366. result = #{result,jdbcType=VARCHAR},
  367. compere = #{compere,jdbcType=VARCHAR},
  368. meetingType = #{meetingtype,jdbcType=INTEGER}
  369. where partyLifeMeetingId = #{partylifemeetingid,jdbcType=VARCHAR}
  370. </update>
  371. </mapper>