VorderCountMapper.xml 16 KB

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