ApContractInfMapper.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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.ApContractInfMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApContractInf">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="ACI_ID" jdbcType="VARCHAR" property="id" />
  10. <result column="ACI_NAME" jdbcType="VARCHAR" property="name" />
  11. <result column="ACI_TYPE" jdbcType="VARCHAR" property="type" />
  12. <result column="ACI_CONTRACT_TYPE" jdbcType="VARCHAR" property="contractType" />
  13. <result column="ACI_BUYER_ID" jdbcType="VARCHAR" property="buyerId" />
  14. <result column="ACI_SELLER_ID" jdbcType="VARCHAR" property="sellerId" />
  15. <result column="ACI_CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
  16. <result column="ACI_BUYER_NO" jdbcType="VARCHAR" property="buyerNo" />
  17. <result column="ACI_SELLER_NO" jdbcType="VARCHAR" property="sellerNo" />
  18. <result column="ACI_PRICING_TYPE" jdbcType="VARCHAR" property="pricingType" />
  19. <result column="ACI_PRICING_START" jdbcType="VARCHAR" property="pricingStart" />
  20. <result column="ACI_PRICING_END" jdbcType="VARCHAR" property="pricingEnd" />
  21. <result column="ACI_MARGIN" jdbcType="VARCHAR" property="margin" />
  22. <result column="ACI_EXPENSES" jdbcType="VARCHAR" property="expenses" />
  23. <result column="ACI_PRODUCT_ID" jdbcType="VARCHAR" property="productId" />
  24. <result column="ACI_STANDARD_ID" jdbcType="VARCHAR" property="standardId" />
  25. <result column="ACI_REFERTO_ID" jdbcType="VARCHAR" property="refertoId" />
  26. <result column="ACI_PRICE_UP" jdbcType="VARCHAR" property="priceUp" />
  27. <result column="ACI_PRICE_DOWN" jdbcType="VARCHAR" property="priceDown" />
  28. <result column="ACI_START_DATE" jdbcType="VARCHAR" property="startDate" />
  29. <result column="ACI_END_DATE" jdbcType="VARCHAR" property="endDate" />
  30. <result column="ACI_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
  31. <result column="ACI_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
  32. <result column="ACI_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
  33. <result column="ACI_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
  34. <result column="ACI_STATE" jdbcType="VARCHAR" property="state" />
  35. <result column="ACI_IS_PRICE" jdbcType="VARCHAR" property="isPrice" />
  36. </resultMap>
  37. <sql id="Example_Where_Clause">
  38. <!--
  39. WARNING - @mbggenerated
  40. This element is automatically generated by MyBatis Generator, do not modify.
  41. -->
  42. <where>
  43. <foreach collection="oredCriteria" item="criteria" separator="or">
  44. <if test="criteria.valid">
  45. <trim prefix="(" prefixOverrides="and" suffix=")">
  46. <foreach collection="criteria.criteria" item="criterion">
  47. <choose>
  48. <when test="criterion.noValue">
  49. and ${criterion.condition}
  50. </when>
  51. <when test="criterion.singleValue">
  52. and ${criterion.condition} #{criterion.value}
  53. </when>
  54. <when test="criterion.betweenValue">
  55. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  56. </when>
  57. <when test="criterion.listValue">
  58. and ${criterion.condition}
  59. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  60. #{listItem}
  61. </foreach>
  62. </when>
  63. </choose>
  64. </foreach>
  65. </trim>
  66. </if>
  67. </foreach>
  68. </where>
  69. </sql>
  70. <sql id="Update_By_Example_Where_Clause">
  71. <!--
  72. WARNING - @mbggenerated
  73. This element is automatically generated by MyBatis Generator, do not modify.
  74. -->
  75. <where>
  76. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  77. <if test="criteria.valid">
  78. <trim prefix="(" prefixOverrides="and" suffix=")">
  79. <foreach collection="criteria.criteria" item="criterion">
  80. <choose>
  81. <when test="criterion.noValue">
  82. and ${criterion.condition}
  83. </when>
  84. <when test="criterion.singleValue">
  85. and ${criterion.condition} #{criterion.value}
  86. </when>
  87. <when test="criterion.betweenValue">
  88. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  89. </when>
  90. <when test="criterion.listValue">
  91. and ${criterion.condition}
  92. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  93. #{listItem}
  94. </foreach>
  95. </when>
  96. </choose>
  97. </foreach>
  98. </trim>
  99. </if>
  100. </foreach>
  101. </where>
  102. </sql>
  103. <sql id="Base_Column_List">
  104. <!--
  105. WARNING - @mbggenerated
  106. This element is automatically generated by MyBatis Generator, do not modify.
  107. -->
  108. ACI_ID, ACI_NAME, ACI_TYPE, ACI_CONTRACT_TYPE, ACI_BUYER_ID, ACI_SELLER_ID, ACI_CONTRACT_NO,
  109. ACI_BUYER_NO, ACI_SELLER_NO, ACI_PRICING_TYPE, ACI_PRICING_START, ACI_PRICING_END,
  110. ACI_MARGIN, ACI_EXPENSES, ACI_PRODUCT_ID, ACI_STANDARD_ID, ACI_REFERTO_ID, ACI_PRICE_UP,
  111. ACI_PRICE_DOWN, ACI_START_DATE, ACI_END_DATE, ACI_CREATE_USER, ACI_CREATE_TIME, ACI_MODIFY_USER,
  112. ACI_MODIFY_TIME, ACI_STATE, ACI_IS_PRICE
  113. </sql>
  114. <select id="selectByExample" parameterType="com.minpay.db.table.model.ApContractInfExample" resultMap="BaseResultMap">
  115. <!--
  116. WARNING - @mbggenerated
  117. This element is automatically generated by MyBatis Generator, do not modify.
  118. -->
  119. select
  120. <if test="distinct">
  121. distinct
  122. </if>
  123. <include refid="Base_Column_List" />
  124. from ap_contract_inf
  125. <if test="_parameter != null">
  126. <include refid="Example_Where_Clause" />
  127. </if>
  128. <if test="orderByClause != null">
  129. order by ${orderByClause}
  130. </if>
  131. </select>
  132. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  133. <!--
  134. WARNING - @mbggenerated
  135. This element is automatically generated by MyBatis Generator, do not modify.
  136. -->
  137. select
  138. <include refid="Base_Column_List" />
  139. from ap_contract_inf
  140. where ACI_ID = #{id,jdbcType=VARCHAR}
  141. </select>
  142. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  143. <!--
  144. WARNING - @mbggenerated
  145. This element is automatically generated by MyBatis Generator, do not modify.
  146. -->
  147. delete from ap_contract_inf
  148. where ACI_ID = #{id,jdbcType=VARCHAR}
  149. </delete>
  150. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApContractInfExample">
  151. <!--
  152. WARNING - @mbggenerated
  153. This element is automatically generated by MyBatis Generator, do not modify.
  154. -->
  155. delete from ap_contract_inf
  156. <if test="_parameter != null">
  157. <include refid="Example_Where_Clause" />
  158. </if>
  159. </delete>
  160. <insert id="insert" parameterType="com.minpay.db.table.model.ApContractInf">
  161. <!--
  162. WARNING - @mbggenerated
  163. This element is automatically generated by MyBatis Generator, do not modify.
  164. -->
  165. insert into ap_contract_inf (ACI_ID, ACI_NAME, ACI_TYPE,
  166. ACI_CONTRACT_TYPE, ACI_BUYER_ID, ACI_SELLER_ID,
  167. ACI_CONTRACT_NO, ACI_BUYER_NO, ACI_SELLER_NO,
  168. ACI_PRICING_TYPE, ACI_PRICING_START, ACI_PRICING_END,
  169. ACI_MARGIN, ACI_EXPENSES, ACI_PRODUCT_ID,
  170. ACI_STANDARD_ID, ACI_REFERTO_ID, ACI_PRICE_UP,
  171. ACI_PRICE_DOWN, ACI_START_DATE, ACI_END_DATE,
  172. ACI_CREATE_USER, ACI_CREATE_TIME, ACI_MODIFY_USER,
  173. ACI_MODIFY_TIME, ACI_STATE, ACI_IS_PRICE
  174. )
  175. values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
  176. #{contractType,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR}, #{sellerId,jdbcType=VARCHAR},
  177. #{contractNo,jdbcType=VARCHAR}, #{buyerNo,jdbcType=VARCHAR}, #{sellerNo,jdbcType=VARCHAR},
  178. #{pricingType,jdbcType=VARCHAR}, #{pricingStart,jdbcType=VARCHAR}, #{pricingEnd,jdbcType=VARCHAR},
  179. #{margin,jdbcType=VARCHAR}, #{expenses,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR},
  180. #{standardId,jdbcType=VARCHAR}, #{refertoId,jdbcType=VARCHAR}, #{priceUp,jdbcType=VARCHAR},
  181. #{priceDown,jdbcType=VARCHAR}, #{startDate,jdbcType=VARCHAR}, #{endDate,jdbcType=VARCHAR},
  182. #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR},
  183. #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}, #{isPrice,jdbcType=VARCHAR}
  184. )
  185. </insert>
  186. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApContractInf">
  187. <!--
  188. WARNING - @mbggenerated
  189. This element is automatically generated by MyBatis Generator, do not modify.
  190. -->
  191. insert into ap_contract_inf
  192. <trim prefix="(" suffix=")" suffixOverrides=",">
  193. <if test="id != null">
  194. ACI_ID,
  195. </if>
  196. <if test="name != null">
  197. ACI_NAME,
  198. </if>
  199. <if test="type != null">
  200. ACI_TYPE,
  201. </if>
  202. <if test="contractType != null">
  203. ACI_CONTRACT_TYPE,
  204. </if>
  205. <if test="buyerId != null">
  206. ACI_BUYER_ID,
  207. </if>
  208. <if test="sellerId != null">
  209. ACI_SELLER_ID,
  210. </if>
  211. <if test="contractNo != null">
  212. ACI_CONTRACT_NO,
  213. </if>
  214. <if test="buyerNo != null">
  215. ACI_BUYER_NO,
  216. </if>
  217. <if test="sellerNo != null">
  218. ACI_SELLER_NO,
  219. </if>
  220. <if test="pricingType != null">
  221. ACI_PRICING_TYPE,
  222. </if>
  223. <if test="pricingStart != null">
  224. ACI_PRICING_START,
  225. </if>
  226. <if test="pricingEnd != null">
  227. ACI_PRICING_END,
  228. </if>
  229. <if test="margin != null">
  230. ACI_MARGIN,
  231. </if>
  232. <if test="expenses != null">
  233. ACI_EXPENSES,
  234. </if>
  235. <if test="productId != null">
  236. ACI_PRODUCT_ID,
  237. </if>
  238. <if test="standardId != null">
  239. ACI_STANDARD_ID,
  240. </if>
  241. <if test="refertoId != null">
  242. ACI_REFERTO_ID,
  243. </if>
  244. <if test="priceUp != null">
  245. ACI_PRICE_UP,
  246. </if>
  247. <if test="priceDown != null">
  248. ACI_PRICE_DOWN,
  249. </if>
  250. <if test="startDate != null">
  251. ACI_START_DATE,
  252. </if>
  253. <if test="endDate != null">
  254. ACI_END_DATE,
  255. </if>
  256. <if test="createUser != null">
  257. ACI_CREATE_USER,
  258. </if>
  259. <if test="createTime != null">
  260. ACI_CREATE_TIME,
  261. </if>
  262. <if test="modifyUser != null">
  263. ACI_MODIFY_USER,
  264. </if>
  265. <if test="modifyTime != null">
  266. ACI_MODIFY_TIME,
  267. </if>
  268. <if test="state != null">
  269. ACI_STATE,
  270. </if>
  271. <if test="isPrice != null">
  272. ACI_IS_PRICE,
  273. </if>
  274. </trim>
  275. <trim prefix="values (" suffix=")" suffixOverrides=",">
  276. <if test="id != null">
  277. #{id,jdbcType=VARCHAR},
  278. </if>
  279. <if test="name != null">
  280. #{name,jdbcType=VARCHAR},
  281. </if>
  282. <if test="type != null">
  283. #{type,jdbcType=VARCHAR},
  284. </if>
  285. <if test="contractType != null">
  286. #{contractType,jdbcType=VARCHAR},
  287. </if>
  288. <if test="buyerId != null">
  289. #{buyerId,jdbcType=VARCHAR},
  290. </if>
  291. <if test="sellerId != null">
  292. #{sellerId,jdbcType=VARCHAR},
  293. </if>
  294. <if test="contractNo != null">
  295. #{contractNo,jdbcType=VARCHAR},
  296. </if>
  297. <if test="buyerNo != null">
  298. #{buyerNo,jdbcType=VARCHAR},
  299. </if>
  300. <if test="sellerNo != null">
  301. #{sellerNo,jdbcType=VARCHAR},
  302. </if>
  303. <if test="pricingType != null">
  304. #{pricingType,jdbcType=VARCHAR},
  305. </if>
  306. <if test="pricingStart != null">
  307. #{pricingStart,jdbcType=VARCHAR},
  308. </if>
  309. <if test="pricingEnd != null">
  310. #{pricingEnd,jdbcType=VARCHAR},
  311. </if>
  312. <if test="margin != null">
  313. #{margin,jdbcType=VARCHAR},
  314. </if>
  315. <if test="expenses != null">
  316. #{expenses,jdbcType=VARCHAR},
  317. </if>
  318. <if test="productId != null">
  319. #{productId,jdbcType=VARCHAR},
  320. </if>
  321. <if test="standardId != null">
  322. #{standardId,jdbcType=VARCHAR},
  323. </if>
  324. <if test="refertoId != null">
  325. #{refertoId,jdbcType=VARCHAR},
  326. </if>
  327. <if test="priceUp != null">
  328. #{priceUp,jdbcType=VARCHAR},
  329. </if>
  330. <if test="priceDown != null">
  331. #{priceDown,jdbcType=VARCHAR},
  332. </if>
  333. <if test="startDate != null">
  334. #{startDate,jdbcType=VARCHAR},
  335. </if>
  336. <if test="endDate != null">
  337. #{endDate,jdbcType=VARCHAR},
  338. </if>
  339. <if test="createUser != null">
  340. #{createUser,jdbcType=VARCHAR},
  341. </if>
  342. <if test="createTime != null">
  343. #{createTime,jdbcType=VARCHAR},
  344. </if>
  345. <if test="modifyUser != null">
  346. #{modifyUser,jdbcType=VARCHAR},
  347. </if>
  348. <if test="modifyTime != null">
  349. #{modifyTime,jdbcType=VARCHAR},
  350. </if>
  351. <if test="state != null">
  352. #{state,jdbcType=VARCHAR},
  353. </if>
  354. <if test="isPrice != null">
  355. #{isPrice,jdbcType=VARCHAR},
  356. </if>
  357. </trim>
  358. </insert>
  359. <select id="countByExample" parameterType="com.minpay.db.table.model.ApContractInfExample" resultType="java.lang.Integer">
  360. <!--
  361. WARNING - @mbggenerated
  362. This element is automatically generated by MyBatis Generator, do not modify.
  363. -->
  364. select count(*) from ap_contract_inf
  365. <if test="_parameter != null">
  366. <include refid="Example_Where_Clause" />
  367. </if>
  368. </select>
  369. <update id="updateByExampleSelective" parameterType="map">
  370. <!--
  371. WARNING - @mbggenerated
  372. This element is automatically generated by MyBatis Generator, do not modify.
  373. -->
  374. update ap_contract_inf
  375. <set>
  376. <if test="record.id != null">
  377. ACI_ID = #{record.id,jdbcType=VARCHAR},
  378. </if>
  379. <if test="record.name != null">
  380. ACI_NAME = #{record.name,jdbcType=VARCHAR},
  381. </if>
  382. <if test="record.type != null">
  383. ACI_TYPE = #{record.type,jdbcType=VARCHAR},
  384. </if>
  385. <if test="record.contractType != null">
  386. ACI_CONTRACT_TYPE = #{record.contractType,jdbcType=VARCHAR},
  387. </if>
  388. <if test="record.buyerId != null">
  389. ACI_BUYER_ID = #{record.buyerId,jdbcType=VARCHAR},
  390. </if>
  391. <if test="record.sellerId != null">
  392. ACI_SELLER_ID = #{record.sellerId,jdbcType=VARCHAR},
  393. </if>
  394. <if test="record.contractNo != null">
  395. ACI_CONTRACT_NO = #{record.contractNo,jdbcType=VARCHAR},
  396. </if>
  397. <if test="record.buyerNo != null">
  398. ACI_BUYER_NO = #{record.buyerNo,jdbcType=VARCHAR},
  399. </if>
  400. <if test="record.sellerNo != null">
  401. ACI_SELLER_NO = #{record.sellerNo,jdbcType=VARCHAR},
  402. </if>
  403. <if test="record.pricingType != null">
  404. ACI_PRICING_TYPE = #{record.pricingType,jdbcType=VARCHAR},
  405. </if>
  406. <if test="record.pricingStart != null">
  407. ACI_PRICING_START = #{record.pricingStart,jdbcType=VARCHAR},
  408. </if>
  409. <if test="record.pricingEnd != null">
  410. ACI_PRICING_END = #{record.pricingEnd,jdbcType=VARCHAR},
  411. </if>
  412. <if test="record.margin != null">
  413. ACI_MARGIN = #{record.margin,jdbcType=VARCHAR},
  414. </if>
  415. <if test="record.expenses != null">
  416. ACI_EXPENSES = #{record.expenses,jdbcType=VARCHAR},
  417. </if>
  418. <if test="record.productId != null">
  419. ACI_PRODUCT_ID = #{record.productId,jdbcType=VARCHAR},
  420. </if>
  421. <if test="record.standardId != null">
  422. ACI_STANDARD_ID = #{record.standardId,jdbcType=VARCHAR},
  423. </if>
  424. <if test="record.refertoId != null">
  425. ACI_REFERTO_ID = #{record.refertoId,jdbcType=VARCHAR},
  426. </if>
  427. <if test="record.priceUp != null">
  428. ACI_PRICE_UP = #{record.priceUp,jdbcType=VARCHAR},
  429. </if>
  430. <if test="record.priceDown != null">
  431. ACI_PRICE_DOWN = #{record.priceDown,jdbcType=VARCHAR},
  432. </if>
  433. <if test="record.startDate != null">
  434. ACI_START_DATE = #{record.startDate,jdbcType=VARCHAR},
  435. </if>
  436. <if test="record.endDate != null">
  437. ACI_END_DATE = #{record.endDate,jdbcType=VARCHAR},
  438. </if>
  439. <if test="record.createUser != null">
  440. ACI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  441. </if>
  442. <if test="record.createTime != null">
  443. ACI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  444. </if>
  445. <if test="record.modifyUser != null">
  446. ACI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  447. </if>
  448. <if test="record.modifyTime != null">
  449. ACI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  450. </if>
  451. <if test="record.state != null">
  452. ACI_STATE = #{record.state,jdbcType=VARCHAR},
  453. </if>
  454. <if test="record.isPrice != null">
  455. ACI_IS_PRICE = #{record.isPrice,jdbcType=VARCHAR},
  456. </if>
  457. </set>
  458. <if test="_parameter != null">
  459. <include refid="Update_By_Example_Where_Clause" />
  460. </if>
  461. </update>
  462. <update id="updateByExample" parameterType="map">
  463. <!--
  464. WARNING - @mbggenerated
  465. This element is automatically generated by MyBatis Generator, do not modify.
  466. -->
  467. update ap_contract_inf
  468. set ACI_ID = #{record.id,jdbcType=VARCHAR},
  469. ACI_NAME = #{record.name,jdbcType=VARCHAR},
  470. ACI_TYPE = #{record.type,jdbcType=VARCHAR},
  471. ACI_CONTRACT_TYPE = #{record.contractType,jdbcType=VARCHAR},
  472. ACI_BUYER_ID = #{record.buyerId,jdbcType=VARCHAR},
  473. ACI_SELLER_ID = #{record.sellerId,jdbcType=VARCHAR},
  474. ACI_CONTRACT_NO = #{record.contractNo,jdbcType=VARCHAR},
  475. ACI_BUYER_NO = #{record.buyerNo,jdbcType=VARCHAR},
  476. ACI_SELLER_NO = #{record.sellerNo,jdbcType=VARCHAR},
  477. ACI_PRICING_TYPE = #{record.pricingType,jdbcType=VARCHAR},
  478. ACI_PRICING_START = #{record.pricingStart,jdbcType=VARCHAR},
  479. ACI_PRICING_END = #{record.pricingEnd,jdbcType=VARCHAR},
  480. ACI_MARGIN = #{record.margin,jdbcType=VARCHAR},
  481. ACI_EXPENSES = #{record.expenses,jdbcType=VARCHAR},
  482. ACI_PRODUCT_ID = #{record.productId,jdbcType=VARCHAR},
  483. ACI_STANDARD_ID = #{record.standardId,jdbcType=VARCHAR},
  484. ACI_REFERTO_ID = #{record.refertoId,jdbcType=VARCHAR},
  485. ACI_PRICE_UP = #{record.priceUp,jdbcType=VARCHAR},
  486. ACI_PRICE_DOWN = #{record.priceDown,jdbcType=VARCHAR},
  487. ACI_START_DATE = #{record.startDate,jdbcType=VARCHAR},
  488. ACI_END_DATE = #{record.endDate,jdbcType=VARCHAR},
  489. ACI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  490. ACI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  491. ACI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  492. ACI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  493. ACI_STATE = #{record.state,jdbcType=VARCHAR},
  494. ACI_IS_PRICE = #{record.isPrice,jdbcType=VARCHAR}
  495. <if test="_parameter != null">
  496. <include refid="Update_By_Example_Where_Clause" />
  497. </if>
  498. </update>
  499. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ApContractInf">
  500. <!--
  501. WARNING - @mbggenerated
  502. This element is automatically generated by MyBatis Generator, do not modify.
  503. -->
  504. update ap_contract_inf
  505. <set>
  506. <if test="name != null">
  507. ACI_NAME = #{name,jdbcType=VARCHAR},
  508. </if>
  509. <if test="type != null">
  510. ACI_TYPE = #{type,jdbcType=VARCHAR},
  511. </if>
  512. <if test="contractType != null">
  513. ACI_CONTRACT_TYPE = #{contractType,jdbcType=VARCHAR},
  514. </if>
  515. <if test="buyerId != null">
  516. ACI_BUYER_ID = #{buyerId,jdbcType=VARCHAR},
  517. </if>
  518. <if test="sellerId != null">
  519. ACI_SELLER_ID = #{sellerId,jdbcType=VARCHAR},
  520. </if>
  521. <if test="contractNo != null">
  522. ACI_CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
  523. </if>
  524. <if test="buyerNo != null">
  525. ACI_BUYER_NO = #{buyerNo,jdbcType=VARCHAR},
  526. </if>
  527. <if test="sellerNo != null">
  528. ACI_SELLER_NO = #{sellerNo,jdbcType=VARCHAR},
  529. </if>
  530. <if test="pricingType != null">
  531. ACI_PRICING_TYPE = #{pricingType,jdbcType=VARCHAR},
  532. </if>
  533. <if test="pricingStart != null">
  534. ACI_PRICING_START = #{pricingStart,jdbcType=VARCHAR},
  535. </if>
  536. <if test="pricingEnd != null">
  537. ACI_PRICING_END = #{pricingEnd,jdbcType=VARCHAR},
  538. </if>
  539. <if test="margin != null">
  540. ACI_MARGIN = #{margin,jdbcType=VARCHAR},
  541. </if>
  542. <if test="expenses != null">
  543. ACI_EXPENSES = #{expenses,jdbcType=VARCHAR},
  544. </if>
  545. <if test="productId != null">
  546. ACI_PRODUCT_ID = #{productId,jdbcType=VARCHAR},
  547. </if>
  548. <if test="standardId != null">
  549. ACI_STANDARD_ID = #{standardId,jdbcType=VARCHAR},
  550. </if>
  551. <if test="refertoId != null">
  552. ACI_REFERTO_ID = #{refertoId,jdbcType=VARCHAR},
  553. </if>
  554. <if test="priceUp != null">
  555. ACI_PRICE_UP = #{priceUp,jdbcType=VARCHAR},
  556. </if>
  557. <if test="priceDown != null">
  558. ACI_PRICE_DOWN = #{priceDown,jdbcType=VARCHAR},
  559. </if>
  560. <if test="startDate != null">
  561. ACI_START_DATE = #{startDate,jdbcType=VARCHAR},
  562. </if>
  563. <if test="endDate != null">
  564. ACI_END_DATE = #{endDate,jdbcType=VARCHAR},
  565. </if>
  566. <if test="createUser != null">
  567. ACI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  568. </if>
  569. <if test="createTime != null">
  570. ACI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  571. </if>
  572. <if test="modifyUser != null">
  573. ACI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  574. </if>
  575. <if test="modifyTime != null">
  576. ACI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  577. </if>
  578. <if test="state != null">
  579. ACI_STATE = #{state,jdbcType=VARCHAR},
  580. </if>
  581. <if test="isPrice != null">
  582. ACI_IS_PRICE = #{isPrice,jdbcType=VARCHAR},
  583. </if>
  584. </set>
  585. where ACI_ID = #{id,jdbcType=VARCHAR}
  586. </update>
  587. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApContractInf">
  588. <!--
  589. WARNING - @mbggenerated
  590. This element is automatically generated by MyBatis Generator, do not modify.
  591. -->
  592. update ap_contract_inf
  593. set ACI_NAME = #{name,jdbcType=VARCHAR},
  594. ACI_TYPE = #{type,jdbcType=VARCHAR},
  595. ACI_CONTRACT_TYPE = #{contractType,jdbcType=VARCHAR},
  596. ACI_BUYER_ID = #{buyerId,jdbcType=VARCHAR},
  597. ACI_SELLER_ID = #{sellerId,jdbcType=VARCHAR},
  598. ACI_CONTRACT_NO = #{contractNo,jdbcType=VARCHAR},
  599. ACI_BUYER_NO = #{buyerNo,jdbcType=VARCHAR},
  600. ACI_SELLER_NO = #{sellerNo,jdbcType=VARCHAR},
  601. ACI_PRICING_TYPE = #{pricingType,jdbcType=VARCHAR},
  602. ACI_PRICING_START = #{pricingStart,jdbcType=VARCHAR},
  603. ACI_PRICING_END = #{pricingEnd,jdbcType=VARCHAR},
  604. ACI_MARGIN = #{margin,jdbcType=VARCHAR},
  605. ACI_EXPENSES = #{expenses,jdbcType=VARCHAR},
  606. ACI_PRODUCT_ID = #{productId,jdbcType=VARCHAR},
  607. ACI_STANDARD_ID = #{standardId,jdbcType=VARCHAR},
  608. ACI_REFERTO_ID = #{refertoId,jdbcType=VARCHAR},
  609. ACI_PRICE_UP = #{priceUp,jdbcType=VARCHAR},
  610. ACI_PRICE_DOWN = #{priceDown,jdbcType=VARCHAR},
  611. ACI_START_DATE = #{startDate,jdbcType=VARCHAR},
  612. ACI_END_DATE = #{endDate,jdbcType=VARCHAR},
  613. ACI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  614. ACI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  615. ACI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  616. ACI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  617. ACI_STATE = #{state,jdbcType=VARCHAR},
  618. ACI_IS_PRICE = #{isPrice,jdbcType=VARCHAR}
  619. where ACI_ID = #{id,jdbcType=VARCHAR}
  620. </update>
  621. </mapper>