CommunityPropertyMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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.js.kbt.mapper.CommunityPropertyMapper" >
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.CommunityProperty" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  9. -->
  10. <id column="id" property="id" jdbcType="INTEGER" />
  11. <result column="name" property="name" jdbcType="VARCHAR" />
  12. <result column="username" property="username" jdbcType="VARCHAR" />
  13. <result column="pwd" property="pwd" jdbcType="VARCHAR" />
  14. <result column="indate" property="indate" jdbcType="TIMESTAMP" />
  15. <result column="tel" property="tel" jdbcType="VARCHAR" />
  16. <result column="bank_account" property="bankAccount" jdbcType="VARCHAR" />
  17. <result column="service_fee" property="serviceFee" jdbcType="INTEGER" />
  18. <result column="money" property="money" jdbcType="DOUBLE" />
  19. </resultMap>
  20. <sql id="Example_Where_Clause" >
  21. <!--
  22. WARNING - @mbggenerated
  23. This element is automatically generated by MyBatis Generator, do not modify.
  24. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  25. -->
  26. <where >
  27. <foreach collection="oredCriteria" item="criteria" separator="or" >
  28. <if test="criteria.valid" >
  29. <trim prefix="(" suffix=")" prefixOverrides="and" >
  30. <foreach collection="criteria.criteria" item="criterion" >
  31. <choose >
  32. <when test="criterion.noValue" >
  33. and ${criterion.condition}
  34. </when>
  35. <when test="criterion.singleValue" >
  36. and ${criterion.condition} #{criterion.value}
  37. </when>
  38. <when test="criterion.betweenValue" >
  39. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  40. </when>
  41. <when test="criterion.listValue" >
  42. and ${criterion.condition}
  43. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  44. #{listItem}
  45. </foreach>
  46. </when>
  47. </choose>
  48. </foreach>
  49. </trim>
  50. </if>
  51. </foreach>
  52. </where>
  53. </sql>
  54. <sql id="Update_By_Example_Where_Clause" >
  55. <!--
  56. WARNING - @mbggenerated
  57. This element is automatically generated by MyBatis Generator, do not modify.
  58. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  59. -->
  60. <where >
  61. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  62. <if test="criteria.valid" >
  63. <trim prefix="(" suffix=")" prefixOverrides="and" >
  64. <foreach collection="criteria.criteria" item="criterion" >
  65. <choose >
  66. <when test="criterion.noValue" >
  67. and ${criterion.condition}
  68. </when>
  69. <when test="criterion.singleValue" >
  70. and ${criterion.condition} #{criterion.value}
  71. </when>
  72. <when test="criterion.betweenValue" >
  73. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  74. </when>
  75. <when test="criterion.listValue" >
  76. and ${criterion.condition}
  77. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  78. #{listItem}
  79. </foreach>
  80. </when>
  81. </choose>
  82. </foreach>
  83. </trim>
  84. </if>
  85. </foreach>
  86. </where>
  87. </sql>
  88. <sql id="Base_Column_List" >
  89. <!--
  90. WARNING - @mbggenerated
  91. This element is automatically generated by MyBatis Generator, do not modify.
  92. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  93. -->
  94. id, name, username, pwd, indate, tel, bank_account, service_fee, money
  95. </sql>
  96. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.js.kbt.model.CommunityPropertyExample" >
  97. <!--
  98. WARNING - @mbggenerated
  99. This element is automatically generated by MyBatis Generator, do not modify.
  100. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  101. -->
  102. select
  103. <if test="distinct" >
  104. distinct
  105. </if>
  106. <include refid="Base_Column_List" />
  107. from community_property
  108. <if test="_parameter != null" >
  109. <include refid="Example_Where_Clause" />
  110. </if>
  111. <if test="orderByClause != null" >
  112. order by ${orderByClause}
  113. </if>
  114. </select>
  115. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  116. <!--
  117. WARNING - @mbggenerated
  118. This element is automatically generated by MyBatis Generator, do not modify.
  119. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  120. -->
  121. select
  122. <include refid="Base_Column_List" />
  123. from community_property
  124. where id = #{id,jdbcType=INTEGER}
  125. </select>
  126. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  127. <!--
  128. WARNING - @mbggenerated
  129. This element is automatically generated by MyBatis Generator, do not modify.
  130. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  131. -->
  132. delete from community_property
  133. where id = #{id,jdbcType=INTEGER}
  134. </delete>
  135. <delete id="deleteByExample" parameterType="com.js.kbt.model.CommunityPropertyExample" >
  136. <!--
  137. WARNING - @mbggenerated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  140. -->
  141. delete from community_property
  142. <if test="_parameter != null" >
  143. <include refid="Example_Where_Clause" />
  144. </if>
  145. </delete>
  146. <insert id="insert" parameterType="com.js.kbt.model.CommunityProperty" >
  147. <!--
  148. WARNING - @mbggenerated
  149. This element is automatically generated by MyBatis Generator, do not modify.
  150. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  151. -->
  152. <selectKey resultType="java.lang.Integer" keyProperty="id" order="AFTER" >
  153. SELECT LAST_INSERT_ID()
  154. </selectKey>
  155. insert into community_property (name, username, pwd,
  156. indate, tel, bank_account,
  157. service_fee, money)
  158. values (#{name,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR},
  159. #{indate,jdbcType=TIMESTAMP}, #{tel,jdbcType=VARCHAR}, #{bankAccount,jdbcType=VARCHAR},
  160. #{serviceFee,jdbcType=INTEGER}, #{money,jdbcType=DOUBLE})
  161. </insert>
  162. <insert id="insertSelective" parameterType="com.js.kbt.model.CommunityProperty" >
  163. <!--
  164. WARNING - @mbggenerated
  165. This element is automatically generated by MyBatis Generator, do not modify.
  166. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  167. -->
  168. <selectKey resultType="java.lang.Integer" keyProperty="id" order="AFTER" >
  169. SELECT LAST_INSERT_ID()
  170. </selectKey>
  171. insert into community_property
  172. <trim prefix="(" suffix=")" suffixOverrides="," >
  173. <if test="name != null" >
  174. name,
  175. </if>
  176. <if test="username != null" >
  177. username,
  178. </if>
  179. <if test="pwd != null" >
  180. pwd,
  181. </if>
  182. <if test="indate != null" >
  183. indate,
  184. </if>
  185. <if test="tel != null" >
  186. tel,
  187. </if>
  188. <if test="bankAccount != null" >
  189. bank_account,
  190. </if>
  191. <if test="serviceFee != null" >
  192. service_fee,
  193. </if>
  194. <if test="money != null" >
  195. money,
  196. </if>
  197. </trim>
  198. <trim prefix="values (" suffix=")" suffixOverrides="," >
  199. <if test="name != null" >
  200. #{name,jdbcType=VARCHAR},
  201. </if>
  202. <if test="username != null" >
  203. #{username,jdbcType=VARCHAR},
  204. </if>
  205. <if test="pwd != null" >
  206. #{pwd,jdbcType=VARCHAR},
  207. </if>
  208. <if test="indate != null" >
  209. #{indate,jdbcType=TIMESTAMP},
  210. </if>
  211. <if test="tel != null" >
  212. #{tel,jdbcType=VARCHAR},
  213. </if>
  214. <if test="bankAccount != null" >
  215. #{bankAccount,jdbcType=VARCHAR},
  216. </if>
  217. <if test="serviceFee != null" >
  218. #{serviceFee,jdbcType=INTEGER},
  219. </if>
  220. <if test="money != null" >
  221. #{money,jdbcType=DOUBLE},
  222. </if>
  223. </trim>
  224. </insert>
  225. <select id="countByExample" parameterType="com.js.kbt.model.CommunityPropertyExample" resultType="java.lang.Integer" >
  226. <!--
  227. WARNING - @mbggenerated
  228. This element is automatically generated by MyBatis Generator, do not modify.
  229. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  230. -->
  231. select count(*) from community_property
  232. <if test="_parameter != null" >
  233. <include refid="Example_Where_Clause" />
  234. </if>
  235. </select>
  236. <update id="updateByExampleSelective" parameterType="map" >
  237. <!--
  238. WARNING - @mbggenerated
  239. This element is automatically generated by MyBatis Generator, do not modify.
  240. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  241. -->
  242. update community_property
  243. <set >
  244. <if test="record.id != null" >
  245. id = #{record.id,jdbcType=INTEGER},
  246. </if>
  247. <if test="record.name != null" >
  248. name = #{record.name,jdbcType=VARCHAR},
  249. </if>
  250. <if test="record.username != null" >
  251. username = #{record.username,jdbcType=VARCHAR},
  252. </if>
  253. <if test="record.pwd != null" >
  254. pwd = #{record.pwd,jdbcType=VARCHAR},
  255. </if>
  256. <if test="record.indate != null" >
  257. indate = #{record.indate,jdbcType=TIMESTAMP},
  258. </if>
  259. <if test="record.tel != null" >
  260. tel = #{record.tel,jdbcType=VARCHAR},
  261. </if>
  262. <if test="record.bankAccount != null" >
  263. bank_account = #{record.bankAccount,jdbcType=VARCHAR},
  264. </if>
  265. <if test="record.serviceFee != null" >
  266. service_fee = #{record.serviceFee,jdbcType=INTEGER},
  267. </if>
  268. <if test="record.money != null" >
  269. money = #{record.money,jdbcType=DOUBLE},
  270. </if>
  271. </set>
  272. <if test="_parameter != null" >
  273. <include refid="Update_By_Example_Where_Clause" />
  274. </if>
  275. </update>
  276. <update id="updateByExample" parameterType="map" >
  277. <!--
  278. WARNING - @mbggenerated
  279. This element is automatically generated by MyBatis Generator, do not modify.
  280. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  281. -->
  282. update community_property
  283. set id = #{record.id,jdbcType=INTEGER},
  284. name = #{record.name,jdbcType=VARCHAR},
  285. username = #{record.username,jdbcType=VARCHAR},
  286. pwd = #{record.pwd,jdbcType=VARCHAR},
  287. indate = #{record.indate,jdbcType=TIMESTAMP},
  288. tel = #{record.tel,jdbcType=VARCHAR},
  289. bank_account = #{record.bankAccount,jdbcType=VARCHAR},
  290. service_fee = #{record.serviceFee,jdbcType=INTEGER},
  291. money = #{record.money,jdbcType=DOUBLE}
  292. <if test="_parameter != null" >
  293. <include refid="Update_By_Example_Where_Clause" />
  294. </if>
  295. </update>
  296. <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.CommunityProperty" >
  297. <!--
  298. WARNING - @mbggenerated
  299. This element is automatically generated by MyBatis Generator, do not modify.
  300. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  301. -->
  302. update community_property
  303. <set >
  304. <if test="name != null" >
  305. name = #{name,jdbcType=VARCHAR},
  306. </if>
  307. <if test="username != null" >
  308. username = #{username,jdbcType=VARCHAR},
  309. </if>
  310. <if test="pwd != null" >
  311. pwd = #{pwd,jdbcType=VARCHAR},
  312. </if>
  313. <if test="indate != null" >
  314. indate = #{indate,jdbcType=TIMESTAMP},
  315. </if>
  316. <if test="tel != null" >
  317. tel = #{tel,jdbcType=VARCHAR},
  318. </if>
  319. <if test="bankAccount != null" >
  320. bank_account = #{bankAccount,jdbcType=VARCHAR},
  321. </if>
  322. <if test="serviceFee != null" >
  323. service_fee = #{serviceFee,jdbcType=INTEGER},
  324. </if>
  325. <if test="money != null" >
  326. money = #{money,jdbcType=DOUBLE},
  327. </if>
  328. </set>
  329. where id = #{id,jdbcType=INTEGER}
  330. </update>
  331. <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.CommunityProperty" >
  332. <!--
  333. WARNING - @mbggenerated
  334. This element is automatically generated by MyBatis Generator, do not modify.
  335. This element was generated on Wed Nov 01 09:24:46 CST 2017.
  336. -->
  337. update community_property
  338. set name = #{name,jdbcType=VARCHAR},
  339. username = #{username,jdbcType=VARCHAR},
  340. pwd = #{pwd,jdbcType=VARCHAR},
  341. indate = #{indate,jdbcType=TIMESTAMP},
  342. tel = #{tel,jdbcType=VARCHAR},
  343. bank_account = #{bankAccount,jdbcType=VARCHAR},
  344. service_fee = #{serviceFee,jdbcType=INTEGER},
  345. money = #{money,jdbcType=DOUBLE}
  346. where id = #{id,jdbcType=INTEGER}
  347. </update>
  348. </mapper>