VparkCountMapper.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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.VparkCountMapper" >
  4. <resultMap id="BaseResultMap" type="com.js.kbt.model.VparkCount" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  9. -->
  10. <result column="id" property="id" jdbcType="INTEGER" />
  11. <result column="order_identity" property="orderIdentity" jdbcType="VARCHAR" />
  12. <result column="identity" property="identity" jdbcType="VARCHAR" />
  13. <result column="order_type" property="orderType" jdbcType="INTEGER" />
  14. <result column="startTime" property="starttime" jdbcType="TIMESTAMP" />
  15. <result column="endTime" property="endtime" jdbcType="TIMESTAMP" />
  16. <result column="user_id" property="userId" jdbcType="INTEGER" />
  17. <result column="cost" property="cost" jdbcType="INTEGER" />
  18. <result column="rule" property="rule" jdbcType="VARCHAR" />
  19. <result column="discount" property="discount" jdbcType="DOUBLE" />
  20. <result column="useCoupon" property="usecoupon" jdbcType="BIT" />
  21. <result column="coupon_no" property="couponNo" jdbcType="VARCHAR" />
  22. <result column="memo" property="memo" jdbcType="VARCHAR" />
  23. <result column="address" property="address" jdbcType="VARCHAR" />
  24. <result column="lng" property="lng" jdbcType="DOUBLE" />
  25. <result column="lat" property="lat" jdbcType="DOUBLE" />
  26. <result column="cost_origin" property="costOrigin" jdbcType="INTEGER" />
  27. <result column="user_name" property="userName" jdbcType="VARCHAR" />
  28. <result column="user_income" property="userIncome" jdbcType="DECIMAL" />
  29. <result column="com_income" property="comIncome" jdbcType="DECIMAL" />
  30. <result column="plat_income" property="platIncome" jdbcType="DECIMAL" />
  31. </resultMap>
  32. <sql id="Example_Where_Clause" >
  33. <!--
  34. WARNING - @mbggenerated
  35. This element is automatically generated by MyBatis Generator, do not modify.
  36. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  37. -->
  38. <where >
  39. <foreach collection="oredCriteria" item="criteria" separator="or" >
  40. <if test="criteria.valid" >
  41. <trim prefix="(" suffix=")" prefixOverrides="and" >
  42. <foreach collection="criteria.criteria" item="criterion" >
  43. <choose >
  44. <when test="criterion.noValue" >
  45. and ${criterion.condition}
  46. </when>
  47. <when test="criterion.singleValue" >
  48. and ${criterion.condition} #{criterion.value}
  49. </when>
  50. <when test="criterion.betweenValue" >
  51. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  52. </when>
  53. <when test="criterion.listValue" >
  54. and ${criterion.condition}
  55. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  56. #{listItem}
  57. </foreach>
  58. </when>
  59. </choose>
  60. </foreach>
  61. </trim>
  62. </if>
  63. </foreach>
  64. </where>
  65. </sql>
  66. <sql id="Update_By_Example_Where_Clause" >
  67. <!--
  68. WARNING - @mbggenerated
  69. This element is automatically generated by MyBatis Generator, do not modify.
  70. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  71. -->
  72. <where >
  73. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  74. <if test="criteria.valid" >
  75. <trim prefix="(" suffix=")" prefixOverrides="and" >
  76. <foreach collection="criteria.criteria" item="criterion" >
  77. <choose >
  78. <when test="criterion.noValue" >
  79. and ${criterion.condition}
  80. </when>
  81. <when test="criterion.singleValue" >
  82. and ${criterion.condition} #{criterion.value}
  83. </when>
  84. <when test="criterion.betweenValue" >
  85. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  86. </when>
  87. <when test="criterion.listValue" >
  88. and ${criterion.condition}
  89. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  90. #{listItem}
  91. </foreach>
  92. </when>
  93. </choose>
  94. </foreach>
  95. </trim>
  96. </if>
  97. </foreach>
  98. </where>
  99. </sql>
  100. <sql id="Base_Column_List" >
  101. <!--
  102. WARNING - @mbggenerated
  103. This element is automatically generated by MyBatis Generator, do not modify.
  104. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  105. -->
  106. id, order_identity, identity, order_type, startTime, endTime, user_id, cost, rule,
  107. discount, useCoupon, coupon_no, memo, address, lng, lat, cost_origin, user_name,
  108. user_income, com_income, plat_income
  109. </sql>
  110. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.js.kbt.model.VparkCountExample" >
  111. <!--
  112. WARNING - @mbggenerated
  113. This element is automatically generated by MyBatis Generator, do not modify.
  114. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  115. -->
  116. select
  117. <if test="distinct" >
  118. distinct
  119. </if>
  120. <include refid="Base_Column_List" />
  121. from vpark_count
  122. <if test="_parameter != null" >
  123. <include refid="Example_Where_Clause" />
  124. </if>
  125. <if test="orderByClause != null" >
  126. order by ${orderByClause}
  127. </if>
  128. </select>
  129. <delete id="deleteByExample" parameterType="com.js.kbt.model.VparkCountExample" >
  130. <!--
  131. WARNING - @mbggenerated
  132. This element is automatically generated by MyBatis Generator, do not modify.
  133. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  134. -->
  135. delete from vpark_count
  136. <if test="_parameter != null" >
  137. <include refid="Example_Where_Clause" />
  138. </if>
  139. </delete>
  140. <insert id="insert" parameterType="com.js.kbt.model.VparkCount" >
  141. <!--
  142. WARNING - @mbggenerated
  143. This element is automatically generated by MyBatis Generator, do not modify.
  144. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  145. -->
  146. insert into vpark_count (id, order_identity, identity,
  147. order_type, startTime, endTime,
  148. user_id, cost, rule,
  149. discount, useCoupon, coupon_no,
  150. memo, address, lng,
  151. lat, cost_origin, user_name,
  152. user_income, com_income, plat_income
  153. )
  154. values (#{id,jdbcType=INTEGER}, #{orderIdentity,jdbcType=VARCHAR}, #{identity,jdbcType=VARCHAR},
  155. #{orderType,jdbcType=INTEGER}, #{starttime,jdbcType=TIMESTAMP}, #{endtime,jdbcType=TIMESTAMP},
  156. #{userId,jdbcType=INTEGER}, #{cost,jdbcType=INTEGER}, #{rule,jdbcType=VARCHAR},
  157. #{discount,jdbcType=DOUBLE}, #{usecoupon,jdbcType=BIT}, #{couponNo,jdbcType=VARCHAR},
  158. #{memo,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{lng,jdbcType=DOUBLE},
  159. #{lat,jdbcType=DOUBLE}, #{costOrigin,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR},
  160. #{userIncome,jdbcType=DECIMAL}, #{comIncome,jdbcType=DECIMAL}, #{platIncome,jdbcType=DECIMAL}
  161. )
  162. </insert>
  163. <insert id="insertSelective" parameterType="com.js.kbt.model.VparkCount" >
  164. <!--
  165. WARNING - @mbggenerated
  166. This element is automatically generated by MyBatis Generator, do not modify.
  167. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  168. -->
  169. insert into vpark_count
  170. <trim prefix="(" suffix=")" suffixOverrides="," >
  171. <if test="id != null" >
  172. id,
  173. </if>
  174. <if test="orderIdentity != null" >
  175. order_identity,
  176. </if>
  177. <if test="identity != null" >
  178. identity,
  179. </if>
  180. <if test="orderType != null" >
  181. order_type,
  182. </if>
  183. <if test="starttime != null" >
  184. startTime,
  185. </if>
  186. <if test="endtime != null" >
  187. endTime,
  188. </if>
  189. <if test="userId != null" >
  190. user_id,
  191. </if>
  192. <if test="cost != null" >
  193. cost,
  194. </if>
  195. <if test="rule != null" >
  196. rule,
  197. </if>
  198. <if test="discount != null" >
  199. discount,
  200. </if>
  201. <if test="usecoupon != null" >
  202. useCoupon,
  203. </if>
  204. <if test="couponNo != null" >
  205. coupon_no,
  206. </if>
  207. <if test="memo != null" >
  208. memo,
  209. </if>
  210. <if test="address != null" >
  211. address,
  212. </if>
  213. <if test="lng != null" >
  214. lng,
  215. </if>
  216. <if test="lat != null" >
  217. lat,
  218. </if>
  219. <if test="costOrigin != null" >
  220. cost_origin,
  221. </if>
  222. <if test="userName != null" >
  223. user_name,
  224. </if>
  225. <if test="userIncome != null" >
  226. user_income,
  227. </if>
  228. <if test="comIncome != null" >
  229. com_income,
  230. </if>
  231. <if test="platIncome != null" >
  232. plat_income,
  233. </if>
  234. </trim>
  235. <trim prefix="values (" suffix=")" suffixOverrides="," >
  236. <if test="id != null" >
  237. #{id,jdbcType=INTEGER},
  238. </if>
  239. <if test="orderIdentity != null" >
  240. #{orderIdentity,jdbcType=VARCHAR},
  241. </if>
  242. <if test="identity != null" >
  243. #{identity,jdbcType=VARCHAR},
  244. </if>
  245. <if test="orderType != null" >
  246. #{orderType,jdbcType=INTEGER},
  247. </if>
  248. <if test="starttime != null" >
  249. #{starttime,jdbcType=TIMESTAMP},
  250. </if>
  251. <if test="endtime != null" >
  252. #{endtime,jdbcType=TIMESTAMP},
  253. </if>
  254. <if test="userId != null" >
  255. #{userId,jdbcType=INTEGER},
  256. </if>
  257. <if test="cost != null" >
  258. #{cost,jdbcType=INTEGER},
  259. </if>
  260. <if test="rule != null" >
  261. #{rule,jdbcType=VARCHAR},
  262. </if>
  263. <if test="discount != null" >
  264. #{discount,jdbcType=DOUBLE},
  265. </if>
  266. <if test="usecoupon != null" >
  267. #{usecoupon,jdbcType=BIT},
  268. </if>
  269. <if test="couponNo != null" >
  270. #{couponNo,jdbcType=VARCHAR},
  271. </if>
  272. <if test="memo != null" >
  273. #{memo,jdbcType=VARCHAR},
  274. </if>
  275. <if test="address != null" >
  276. #{address,jdbcType=VARCHAR},
  277. </if>
  278. <if test="lng != null" >
  279. #{lng,jdbcType=DOUBLE},
  280. </if>
  281. <if test="lat != null" >
  282. #{lat,jdbcType=DOUBLE},
  283. </if>
  284. <if test="costOrigin != null" >
  285. #{costOrigin,jdbcType=INTEGER},
  286. </if>
  287. <if test="userName != null" >
  288. #{userName,jdbcType=VARCHAR},
  289. </if>
  290. <if test="userIncome != null" >
  291. #{userIncome,jdbcType=DECIMAL},
  292. </if>
  293. <if test="comIncome != null" >
  294. #{comIncome,jdbcType=DECIMAL},
  295. </if>
  296. <if test="platIncome != null" >
  297. #{platIncome,jdbcType=DECIMAL},
  298. </if>
  299. </trim>
  300. </insert>
  301. <select id="countByExample" parameterType="com.js.kbt.model.VparkCountExample" resultType="java.lang.Integer" >
  302. <!--
  303. WARNING - @mbggenerated
  304. This element is automatically generated by MyBatis Generator, do not modify.
  305. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  306. -->
  307. select count(*) from vpark_count
  308. <if test="_parameter != null" >
  309. <include refid="Example_Where_Clause" />
  310. </if>
  311. </select>
  312. <update id="updateByExampleSelective" parameterType="map" >
  313. <!--
  314. WARNING - @mbggenerated
  315. This element is automatically generated by MyBatis Generator, do not modify.
  316. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  317. -->
  318. update vpark_count
  319. <set >
  320. <if test="record.id != null" >
  321. id = #{record.id,jdbcType=INTEGER},
  322. </if>
  323. <if test="record.orderIdentity != null" >
  324. order_identity = #{record.orderIdentity,jdbcType=VARCHAR},
  325. </if>
  326. <if test="record.identity != null" >
  327. identity = #{record.identity,jdbcType=VARCHAR},
  328. </if>
  329. <if test="record.orderType != null" >
  330. order_type = #{record.orderType,jdbcType=INTEGER},
  331. </if>
  332. <if test="record.starttime != null" >
  333. startTime = #{record.starttime,jdbcType=TIMESTAMP},
  334. </if>
  335. <if test="record.endtime != null" >
  336. endTime = #{record.endtime,jdbcType=TIMESTAMP},
  337. </if>
  338. <if test="record.userId != null" >
  339. user_id = #{record.userId,jdbcType=INTEGER},
  340. </if>
  341. <if test="record.cost != null" >
  342. cost = #{record.cost,jdbcType=INTEGER},
  343. </if>
  344. <if test="record.rule != null" >
  345. rule = #{record.rule,jdbcType=VARCHAR},
  346. </if>
  347. <if test="record.discount != null" >
  348. discount = #{record.discount,jdbcType=DOUBLE},
  349. </if>
  350. <if test="record.usecoupon != null" >
  351. useCoupon = #{record.usecoupon,jdbcType=BIT},
  352. </if>
  353. <if test="record.couponNo != null" >
  354. coupon_no = #{record.couponNo,jdbcType=VARCHAR},
  355. </if>
  356. <if test="record.memo != null" >
  357. memo = #{record.memo,jdbcType=VARCHAR},
  358. </if>
  359. <if test="record.address != null" >
  360. address = #{record.address,jdbcType=VARCHAR},
  361. </if>
  362. <if test="record.lng != null" >
  363. lng = #{record.lng,jdbcType=DOUBLE},
  364. </if>
  365. <if test="record.lat != null" >
  366. lat = #{record.lat,jdbcType=DOUBLE},
  367. </if>
  368. <if test="record.costOrigin != null" >
  369. cost_origin = #{record.costOrigin,jdbcType=INTEGER},
  370. </if>
  371. <if test="record.userName != null" >
  372. user_name = #{record.userName,jdbcType=VARCHAR},
  373. </if>
  374. <if test="record.userIncome != null" >
  375. user_income = #{record.userIncome,jdbcType=DECIMAL},
  376. </if>
  377. <if test="record.comIncome != null" >
  378. com_income = #{record.comIncome,jdbcType=DECIMAL},
  379. </if>
  380. <if test="record.platIncome != null" >
  381. plat_income = #{record.platIncome,jdbcType=DECIMAL},
  382. </if>
  383. </set>
  384. <if test="_parameter != null" >
  385. <include refid="Update_By_Example_Where_Clause" />
  386. </if>
  387. </update>
  388. <update id="updateByExample" parameterType="map" >
  389. <!--
  390. WARNING - @mbggenerated
  391. This element is automatically generated by MyBatis Generator, do not modify.
  392. This element was generated on Fri Nov 10 15:06:59 CST 2017.
  393. -->
  394. update vpark_count
  395. set id = #{record.id,jdbcType=INTEGER},
  396. order_identity = #{record.orderIdentity,jdbcType=VARCHAR},
  397. identity = #{record.identity,jdbcType=VARCHAR},
  398. order_type = #{record.orderType,jdbcType=INTEGER},
  399. startTime = #{record.starttime,jdbcType=TIMESTAMP},
  400. endTime = #{record.endtime,jdbcType=TIMESTAMP},
  401. user_id = #{record.userId,jdbcType=INTEGER},
  402. cost = #{record.cost,jdbcType=INTEGER},
  403. rule = #{record.rule,jdbcType=VARCHAR},
  404. discount = #{record.discount,jdbcType=DOUBLE},
  405. useCoupon = #{record.usecoupon,jdbcType=BIT},
  406. coupon_no = #{record.couponNo,jdbcType=VARCHAR},
  407. memo = #{record.memo,jdbcType=VARCHAR},
  408. address = #{record.address,jdbcType=VARCHAR},
  409. lng = #{record.lng,jdbcType=DOUBLE},
  410. lat = #{record.lat,jdbcType=DOUBLE},
  411. cost_origin = #{record.costOrigin,jdbcType=INTEGER},
  412. user_name = #{record.userName,jdbcType=VARCHAR},
  413. user_income = #{record.userIncome,jdbcType=DECIMAL},
  414. com_income = #{record.comIncome,jdbcType=DECIMAL},
  415. plat_income = #{record.platIncome,jdbcType=DECIMAL}
  416. <if test="_parameter != null" >
  417. <include refid="Update_By_Example_Where_Clause" />
  418. </if>
  419. </update>
  420. </mapper>