ApOrderInfMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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.minpay.db.table.mapper.ApOrderInfMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApOrderInf">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="AOI_ID" jdbcType="VARCHAR" property="id" />
  10. <result column="AOI_NAME" jdbcType="VARCHAR" property="name" />
  11. <result column="AOI_CONTRACT_ID" jdbcType="VARCHAR" property="contractId" />
  12. <result column="AOI_ORDER_BUY_ID" jdbcType="VARCHAR" property="orderBuyId" />
  13. <result column="AOI_PLAN_BUY_ID" jdbcType="VARCHAR" property="planBuyId" />
  14. <result column="AOI_PLAN_SELL_ID" jdbcType="VARCHAR" property="planSellId" />
  15. <result column="AOI_REMARKS" jdbcType="VARCHAR" property="remarks" />
  16. <result column="AOI_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
  17. <result column="AOI_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
  18. <result column="AOI_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
  19. <result column="AOI_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
  20. <result column="AOI_STATE" jdbcType="VARCHAR" property="state" />
  21. </resultMap>
  22. <sql id="Example_Where_Clause">
  23. <!--
  24. WARNING - @mbggenerated
  25. This element is automatically generated by MyBatis Generator, do not modify.
  26. -->
  27. <where>
  28. <foreach collection="oredCriteria" item="criteria" separator="or">
  29. <if test="criteria.valid">
  30. <trim prefix="(" prefixOverrides="and" suffix=")">
  31. <foreach collection="criteria.criteria" item="criterion">
  32. <choose>
  33. <when test="criterion.noValue">
  34. and ${criterion.condition}
  35. </when>
  36. <when test="criterion.singleValue">
  37. and ${criterion.condition} #{criterion.value}
  38. </when>
  39. <when test="criterion.betweenValue">
  40. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  41. </when>
  42. <when test="criterion.listValue">
  43. and ${criterion.condition}
  44. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  45. #{listItem}
  46. </foreach>
  47. </when>
  48. </choose>
  49. </foreach>
  50. </trim>
  51. </if>
  52. </foreach>
  53. </where>
  54. </sql>
  55. <sql id="Update_By_Example_Where_Clause">
  56. <!--
  57. WARNING - @mbggenerated
  58. This element is automatically generated by MyBatis Generator, do not modify.
  59. -->
  60. <where>
  61. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  62. <if test="criteria.valid">
  63. <trim prefix="(" prefixOverrides="and" suffix=")">
  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 close=")" collection="criterion.value" item="listItem" open="(" 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. -->
  93. AOI_ID, AOI_NAME, AOI_CONTRACT_ID, AOI_ORDER_BUY_ID, AOI_PLAN_BUY_ID, AOI_PLAN_SELL_ID,
  94. AOI_REMARKS, AOI_CREATE_USER, AOI_CREATE_TIME, AOI_MODIFY_USER, AOI_MODIFY_TIME,
  95. AOI_STATE
  96. </sql>
  97. <select id="selectByExample" parameterType="com.minpay.db.table.model.ApOrderInfExample" resultMap="BaseResultMap">
  98. <!--
  99. WARNING - @mbggenerated
  100. This element is automatically generated by MyBatis Generator, do not modify.
  101. -->
  102. select
  103. <if test="distinct">
  104. distinct
  105. </if>
  106. <include refid="Base_Column_List" />
  107. from ap_order_inf
  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" parameterType="java.lang.String" resultMap="BaseResultMap">
  116. <!--
  117. WARNING - @mbggenerated
  118. This element is automatically generated by MyBatis Generator, do not modify.
  119. -->
  120. select
  121. <include refid="Base_Column_List" />
  122. from ap_order_inf
  123. where AOI_ID = #{id,jdbcType=VARCHAR}
  124. </select>
  125. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  126. <!--
  127. WARNING - @mbggenerated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. delete from ap_order_inf
  131. where AOI_ID = #{id,jdbcType=VARCHAR}
  132. </delete>
  133. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApOrderInfExample">
  134. <!--
  135. WARNING - @mbggenerated
  136. This element is automatically generated by MyBatis Generator, do not modify.
  137. -->
  138. delete from ap_order_inf
  139. <if test="_parameter != null">
  140. <include refid="Example_Where_Clause" />
  141. </if>
  142. </delete>
  143. <insert id="insert" parameterType="com.minpay.db.table.model.ApOrderInf">
  144. <!--
  145. WARNING - @mbggenerated
  146. This element is automatically generated by MyBatis Generator, do not modify.
  147. -->
  148. insert into ap_order_inf (AOI_ID, AOI_NAME, AOI_CONTRACT_ID,
  149. AOI_ORDER_BUY_ID, AOI_PLAN_BUY_ID, AOI_PLAN_SELL_ID,
  150. AOI_REMARKS, AOI_CREATE_USER, AOI_CREATE_TIME,
  151. AOI_MODIFY_USER, AOI_MODIFY_TIME, AOI_STATE
  152. )
  153. values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{contractId,jdbcType=VARCHAR},
  154. #{orderBuyId,jdbcType=VARCHAR}, #{planBuyId,jdbcType=VARCHAR}, #{planSellId,jdbcType=VARCHAR},
  155. #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
  156. #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}
  157. )
  158. </insert>
  159. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApOrderInf">
  160. <!--
  161. WARNING - @mbggenerated
  162. This element is automatically generated by MyBatis Generator, do not modify.
  163. -->
  164. insert into ap_order_inf
  165. <trim prefix="(" suffix=")" suffixOverrides=",">
  166. <if test="id != null">
  167. AOI_ID,
  168. </if>
  169. <if test="name != null">
  170. AOI_NAME,
  171. </if>
  172. <if test="contractId != null">
  173. AOI_CONTRACT_ID,
  174. </if>
  175. <if test="orderBuyId != null">
  176. AOI_ORDER_BUY_ID,
  177. </if>
  178. <if test="planBuyId != null">
  179. AOI_PLAN_BUY_ID,
  180. </if>
  181. <if test="planSellId != null">
  182. AOI_PLAN_SELL_ID,
  183. </if>
  184. <if test="remarks != null">
  185. AOI_REMARKS,
  186. </if>
  187. <if test="createUser != null">
  188. AOI_CREATE_USER,
  189. </if>
  190. <if test="createTime != null">
  191. AOI_CREATE_TIME,
  192. </if>
  193. <if test="modifyUser != null">
  194. AOI_MODIFY_USER,
  195. </if>
  196. <if test="modifyTime != null">
  197. AOI_MODIFY_TIME,
  198. </if>
  199. <if test="state != null">
  200. AOI_STATE,
  201. </if>
  202. </trim>
  203. <trim prefix="values (" suffix=")" suffixOverrides=",">
  204. <if test="id != null">
  205. #{id,jdbcType=VARCHAR},
  206. </if>
  207. <if test="name != null">
  208. #{name,jdbcType=VARCHAR},
  209. </if>
  210. <if test="contractId != null">
  211. #{contractId,jdbcType=VARCHAR},
  212. </if>
  213. <if test="orderBuyId != null">
  214. #{orderBuyId,jdbcType=VARCHAR},
  215. </if>
  216. <if test="planBuyId != null">
  217. #{planBuyId,jdbcType=VARCHAR},
  218. </if>
  219. <if test="planSellId != null">
  220. #{planSellId,jdbcType=VARCHAR},
  221. </if>
  222. <if test="remarks != null">
  223. #{remarks,jdbcType=VARCHAR},
  224. </if>
  225. <if test="createUser != null">
  226. #{createUser,jdbcType=VARCHAR},
  227. </if>
  228. <if test="createTime != null">
  229. #{createTime,jdbcType=VARCHAR},
  230. </if>
  231. <if test="modifyUser != null">
  232. #{modifyUser,jdbcType=VARCHAR},
  233. </if>
  234. <if test="modifyTime != null">
  235. #{modifyTime,jdbcType=VARCHAR},
  236. </if>
  237. <if test="state != null">
  238. #{state,jdbcType=VARCHAR},
  239. </if>
  240. </trim>
  241. </insert>
  242. <select id="countByExample" parameterType="com.minpay.db.table.model.ApOrderInfExample" resultType="java.lang.Integer">
  243. <!--
  244. WARNING - @mbggenerated
  245. This element is automatically generated by MyBatis Generator, do not modify.
  246. -->
  247. select count(*) from ap_order_inf
  248. <if test="_parameter != null">
  249. <include refid="Example_Where_Clause" />
  250. </if>
  251. </select>
  252. <update id="updateByExampleSelective" parameterType="map">
  253. <!--
  254. WARNING - @mbggenerated
  255. This element is automatically generated by MyBatis Generator, do not modify.
  256. -->
  257. update ap_order_inf
  258. <set>
  259. <if test="record.id != null">
  260. AOI_ID = #{record.id,jdbcType=VARCHAR},
  261. </if>
  262. <if test="record.name != null">
  263. AOI_NAME = #{record.name,jdbcType=VARCHAR},
  264. </if>
  265. <if test="record.contractId != null">
  266. AOI_CONTRACT_ID = #{record.contractId,jdbcType=VARCHAR},
  267. </if>
  268. <if test="record.orderBuyId != null">
  269. AOI_ORDER_BUY_ID = #{record.orderBuyId,jdbcType=VARCHAR},
  270. </if>
  271. <if test="record.planBuyId != null">
  272. AOI_PLAN_BUY_ID = #{record.planBuyId,jdbcType=VARCHAR},
  273. </if>
  274. <if test="record.planSellId != null">
  275. AOI_PLAN_SELL_ID = #{record.planSellId,jdbcType=VARCHAR},
  276. </if>
  277. <if test="record.remarks != null">
  278. AOI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  279. </if>
  280. <if test="record.createUser != null">
  281. AOI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  282. </if>
  283. <if test="record.createTime != null">
  284. AOI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  285. </if>
  286. <if test="record.modifyUser != null">
  287. AOI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  288. </if>
  289. <if test="record.modifyTime != null">
  290. AOI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  291. </if>
  292. <if test="record.state != null">
  293. AOI_STATE = #{record.state,jdbcType=VARCHAR},
  294. </if>
  295. </set>
  296. <if test="_parameter != null">
  297. <include refid="Update_By_Example_Where_Clause" />
  298. </if>
  299. </update>
  300. <update id="updateByExample" parameterType="map">
  301. <!--
  302. WARNING - @mbggenerated
  303. This element is automatically generated by MyBatis Generator, do not modify.
  304. -->
  305. update ap_order_inf
  306. set AOI_ID = #{record.id,jdbcType=VARCHAR},
  307. AOI_NAME = #{record.name,jdbcType=VARCHAR},
  308. AOI_CONTRACT_ID = #{record.contractId,jdbcType=VARCHAR},
  309. AOI_ORDER_BUY_ID = #{record.orderBuyId,jdbcType=VARCHAR},
  310. AOI_PLAN_BUY_ID = #{record.planBuyId,jdbcType=VARCHAR},
  311. AOI_PLAN_SELL_ID = #{record.planSellId,jdbcType=VARCHAR},
  312. AOI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  313. AOI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  314. AOI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  315. AOI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  316. AOI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  317. AOI_STATE = #{record.state,jdbcType=VARCHAR}
  318. <if test="_parameter != null">
  319. <include refid="Update_By_Example_Where_Clause" />
  320. </if>
  321. </update>
  322. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ApOrderInf">
  323. <!--
  324. WARNING - @mbggenerated
  325. This element is automatically generated by MyBatis Generator, do not modify.
  326. -->
  327. update ap_order_inf
  328. <set>
  329. <if test="name != null">
  330. AOI_NAME = #{name,jdbcType=VARCHAR},
  331. </if>
  332. <if test="contractId != null">
  333. AOI_CONTRACT_ID = #{contractId,jdbcType=VARCHAR},
  334. </if>
  335. <if test="orderBuyId != null">
  336. AOI_ORDER_BUY_ID = #{orderBuyId,jdbcType=VARCHAR},
  337. </if>
  338. <if test="planBuyId != null">
  339. AOI_PLAN_BUY_ID = #{planBuyId,jdbcType=VARCHAR},
  340. </if>
  341. <if test="planSellId != null">
  342. AOI_PLAN_SELL_ID = #{planSellId,jdbcType=VARCHAR},
  343. </if>
  344. <if test="remarks != null">
  345. AOI_REMARKS = #{remarks,jdbcType=VARCHAR},
  346. </if>
  347. <if test="createUser != null">
  348. AOI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  349. </if>
  350. <if test="createTime != null">
  351. AOI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  352. </if>
  353. <if test="modifyUser != null">
  354. AOI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  355. </if>
  356. <if test="modifyTime != null">
  357. AOI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  358. </if>
  359. <if test="state != null">
  360. AOI_STATE = #{state,jdbcType=VARCHAR},
  361. </if>
  362. </set>
  363. where AOI_ID = #{id,jdbcType=VARCHAR}
  364. </update>
  365. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApOrderInf">
  366. <!--
  367. WARNING - @mbggenerated
  368. This element is automatically generated by MyBatis Generator, do not modify.
  369. -->
  370. update ap_order_inf
  371. set AOI_NAME = #{name,jdbcType=VARCHAR},
  372. AOI_CONTRACT_ID = #{contractId,jdbcType=VARCHAR},
  373. AOI_ORDER_BUY_ID = #{orderBuyId,jdbcType=VARCHAR},
  374. AOI_PLAN_BUY_ID = #{planBuyId,jdbcType=VARCHAR},
  375. AOI_PLAN_SELL_ID = #{planSellId,jdbcType=VARCHAR},
  376. AOI_REMARKS = #{remarks,jdbcType=VARCHAR},
  377. AOI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  378. AOI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  379. AOI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  380. AOI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  381. AOI_STATE = #{state,jdbcType=VARCHAR}
  382. where AOI_ID = #{id,jdbcType=VARCHAR}
  383. </update>
  384. </mapper>