ApOrderInvoiceMapper.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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.ApOrderInvoiceMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApOrderInvoice" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="AOI_ID" property="id" jdbcType="VARCHAR" />
  10. <result column="AOI_ORDER_ID" property="orderId" jdbcType="VARCHAR" />
  11. <result column="AOI_TYPE" property="type" jdbcType="VARCHAR" />
  12. <result column="AOI_INVOICE_NO" property="invoiceNo" jdbcType="VARCHAR" />
  13. <result column="AOI_ISSUE" property="issue" jdbcType="VARCHAR" />
  14. <result column="AOI_PAYMENT" property="payment" jdbcType="VARCHAR" />
  15. <result column="AOI_NAME" property="name" jdbcType="VARCHAR" />
  16. <result column="AOI_SPECIFICATION" property="specification" jdbcType="VARCHAR" />
  17. <result column="AOI_WEIGHT" property="weight" jdbcType="VARCHAR" />
  18. <result column="AOI_UNIT" property="unit" jdbcType="VARCHAR" />
  19. <result column="AOI_PRICE" property="price" jdbcType="VARCHAR" />
  20. <result column="AOI_AMOUNT" property="amount" jdbcType="VARCHAR" />
  21. <result column="AOI_TAX_RATE" property="taxRate" jdbcType="VARCHAR" />
  22. <result column="AOI_TAX" property="tax" jdbcType="VARCHAR" />
  23. <result column="AOI_TOTAL_PRICE" property="totalPrice" jdbcType="VARCHAR" />
  24. <result column="AOI_TRACKING_NUMBER" property="trackingNumber" jdbcType="VARCHAR" />
  25. <result column="AOI_REMARKS" property="remarks" jdbcType="VARCHAR" />
  26. <result column="AOI_CREATE_USER" property="createUser" jdbcType="VARCHAR" />
  27. <result column="AOI_CREATE_TIME" property="createTime" jdbcType="VARCHAR" />
  28. <result column="AOI_MODIFY_USER" property="modifyUser" jdbcType="VARCHAR" />
  29. <result column="AOI_MODIFY_TIME" property="modifyTime" jdbcType="VARCHAR" />
  30. <result column="AOI_STATE" property="state" jdbcType="VARCHAR" />
  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. -->
  37. <where >
  38. <foreach collection="oredCriteria" item="criteria" separator="or" >
  39. <if test="criteria.valid" >
  40. <trim prefix="(" suffix=")" prefixOverrides="and" >
  41. <foreach collection="criteria.criteria" item="criterion" >
  42. <choose >
  43. <when test="criterion.noValue" >
  44. and ${criterion.condition}
  45. </when>
  46. <when test="criterion.singleValue" >
  47. and ${criterion.condition} #{criterion.value}
  48. </when>
  49. <when test="criterion.betweenValue" >
  50. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  51. </when>
  52. <when test="criterion.listValue" >
  53. and ${criterion.condition}
  54. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  55. #{listItem}
  56. </foreach>
  57. </when>
  58. </choose>
  59. </foreach>
  60. </trim>
  61. </if>
  62. </foreach>
  63. </where>
  64. </sql>
  65. <sql id="Update_By_Example_Where_Clause" >
  66. <!--
  67. WARNING - @mbggenerated
  68. This element is automatically generated by MyBatis Generator, do not modify.
  69. -->
  70. <where >
  71. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  72. <if test="criteria.valid" >
  73. <trim prefix="(" suffix=")" prefixOverrides="and" >
  74. <foreach collection="criteria.criteria" item="criterion" >
  75. <choose >
  76. <when test="criterion.noValue" >
  77. and ${criterion.condition}
  78. </when>
  79. <when test="criterion.singleValue" >
  80. and ${criterion.condition} #{criterion.value}
  81. </when>
  82. <when test="criterion.betweenValue" >
  83. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  84. </when>
  85. <when test="criterion.listValue" >
  86. and ${criterion.condition}
  87. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  88. #{listItem}
  89. </foreach>
  90. </when>
  91. </choose>
  92. </foreach>
  93. </trim>
  94. </if>
  95. </foreach>
  96. </where>
  97. </sql>
  98. <sql id="Base_Column_List" >
  99. <!--
  100. WARNING - @mbggenerated
  101. This element is automatically generated by MyBatis Generator, do not modify.
  102. -->
  103. AOI_ID, AOI_ORDER_ID, AOI_TYPE, AOI_INVOICE_NO, AOI_ISSUE, AOI_PAYMENT, AOI_NAME,
  104. AOI_SPECIFICATION, AOI_WEIGHT, AOI_UNIT, AOI_PRICE, AOI_AMOUNT, AOI_TAX_RATE, AOI_TAX,
  105. AOI_TOTAL_PRICE, AOI_TRACKING_NUMBER, AOI_REMARKS, AOI_CREATE_USER, AOI_CREATE_TIME,
  106. AOI_MODIFY_USER, AOI_MODIFY_TIME, AOI_STATE
  107. </sql>
  108. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ApOrderInvoiceExample" >
  109. <!--
  110. WARNING - @mbggenerated
  111. This element is automatically generated by MyBatis Generator, do not modify.
  112. -->
  113. select
  114. <if test="distinct" >
  115. distinct
  116. </if>
  117. <include refid="Base_Column_List" />
  118. from ap_order_invoice
  119. <if test="_parameter != null" >
  120. <include refid="Example_Where_Clause" />
  121. </if>
  122. <if test="orderByClause != null" >
  123. order by ${orderByClause}
  124. </if>
  125. </select>
  126. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  127. <!--
  128. WARNING - @mbggenerated
  129. This element is automatically generated by MyBatis Generator, do not modify.
  130. -->
  131. select
  132. <include refid="Base_Column_List" />
  133. from ap_order_invoice
  134. where AOI_ID = #{id,jdbcType=VARCHAR}
  135. </select>
  136. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  137. <!--
  138. WARNING - @mbggenerated
  139. This element is automatically generated by MyBatis Generator, do not modify.
  140. -->
  141. delete from ap_order_invoice
  142. where AOI_ID = #{id,jdbcType=VARCHAR}
  143. </delete>
  144. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApOrderInvoiceExample" >
  145. <!--
  146. WARNING - @mbggenerated
  147. This element is automatically generated by MyBatis Generator, do not modify.
  148. -->
  149. delete from ap_order_invoice
  150. <if test="_parameter != null" >
  151. <include refid="Example_Where_Clause" />
  152. </if>
  153. </delete>
  154. <insert id="insert" parameterType="com.minpay.db.table.model.ApOrderInvoice" >
  155. <!--
  156. WARNING - @mbggenerated
  157. This element is automatically generated by MyBatis Generator, do not modify.
  158. -->
  159. insert into ap_order_invoice (AOI_ID, AOI_ORDER_ID, AOI_TYPE,
  160. AOI_INVOICE_NO, AOI_ISSUE, AOI_PAYMENT,
  161. AOI_NAME, AOI_SPECIFICATION, AOI_WEIGHT,
  162. AOI_UNIT, AOI_PRICE, AOI_AMOUNT,
  163. AOI_TAX_RATE, AOI_TAX, AOI_TOTAL_PRICE,
  164. AOI_TRACKING_NUMBER, AOI_REMARKS, AOI_CREATE_USER,
  165. AOI_CREATE_TIME, AOI_MODIFY_USER, AOI_MODIFY_TIME,
  166. AOI_STATE)
  167. values (#{id,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
  168. #{invoiceNo,jdbcType=VARCHAR}, #{issue,jdbcType=VARCHAR}, #{payment,jdbcType=VARCHAR},
  169. #{name,jdbcType=VARCHAR}, #{specification,jdbcType=VARCHAR}, #{weight,jdbcType=VARCHAR},
  170. #{unit,jdbcType=VARCHAR}, #{price,jdbcType=VARCHAR}, #{amount,jdbcType=VARCHAR},
  171. #{taxRate,jdbcType=VARCHAR}, #{tax,jdbcType=VARCHAR}, #{totalPrice,jdbcType=VARCHAR},
  172. #{trackingNumber,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
  173. #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR},
  174. #{state,jdbcType=VARCHAR})
  175. </insert>
  176. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApOrderInvoice" >
  177. <!--
  178. WARNING - @mbggenerated
  179. This element is automatically generated by MyBatis Generator, do not modify.
  180. -->
  181. insert into ap_order_invoice
  182. <trim prefix="(" suffix=")" suffixOverrides="," >
  183. <if test="id != null" >
  184. AOI_ID,
  185. </if>
  186. <if test="orderId != null" >
  187. AOI_ORDER_ID,
  188. </if>
  189. <if test="type != null" >
  190. AOI_TYPE,
  191. </if>
  192. <if test="invoiceNo != null" >
  193. AOI_INVOICE_NO,
  194. </if>
  195. <if test="issue != null" >
  196. AOI_ISSUE,
  197. </if>
  198. <if test="payment != null" >
  199. AOI_PAYMENT,
  200. </if>
  201. <if test="name != null" >
  202. AOI_NAME,
  203. </if>
  204. <if test="specification != null" >
  205. AOI_SPECIFICATION,
  206. </if>
  207. <if test="weight != null" >
  208. AOI_WEIGHT,
  209. </if>
  210. <if test="unit != null" >
  211. AOI_UNIT,
  212. </if>
  213. <if test="price != null" >
  214. AOI_PRICE,
  215. </if>
  216. <if test="amount != null" >
  217. AOI_AMOUNT,
  218. </if>
  219. <if test="taxRate != null" >
  220. AOI_TAX_RATE,
  221. </if>
  222. <if test="tax != null" >
  223. AOI_TAX,
  224. </if>
  225. <if test="totalPrice != null" >
  226. AOI_TOTAL_PRICE,
  227. </if>
  228. <if test="trackingNumber != null" >
  229. AOI_TRACKING_NUMBER,
  230. </if>
  231. <if test="remarks != null" >
  232. AOI_REMARKS,
  233. </if>
  234. <if test="createUser != null" >
  235. AOI_CREATE_USER,
  236. </if>
  237. <if test="createTime != null" >
  238. AOI_CREATE_TIME,
  239. </if>
  240. <if test="modifyUser != null" >
  241. AOI_MODIFY_USER,
  242. </if>
  243. <if test="modifyTime != null" >
  244. AOI_MODIFY_TIME,
  245. </if>
  246. <if test="state != null" >
  247. AOI_STATE,
  248. </if>
  249. </trim>
  250. <trim prefix="values (" suffix=")" suffixOverrides="," >
  251. <if test="id != null" >
  252. #{id,jdbcType=VARCHAR},
  253. </if>
  254. <if test="orderId != null" >
  255. #{orderId,jdbcType=VARCHAR},
  256. </if>
  257. <if test="type != null" >
  258. #{type,jdbcType=VARCHAR},
  259. </if>
  260. <if test="invoiceNo != null" >
  261. #{invoiceNo,jdbcType=VARCHAR},
  262. </if>
  263. <if test="issue != null" >
  264. #{issue,jdbcType=VARCHAR},
  265. </if>
  266. <if test="payment != null" >
  267. #{payment,jdbcType=VARCHAR},
  268. </if>
  269. <if test="name != null" >
  270. #{name,jdbcType=VARCHAR},
  271. </if>
  272. <if test="specification != null" >
  273. #{specification,jdbcType=VARCHAR},
  274. </if>
  275. <if test="weight != null" >
  276. #{weight,jdbcType=VARCHAR},
  277. </if>
  278. <if test="unit != null" >
  279. #{unit,jdbcType=VARCHAR},
  280. </if>
  281. <if test="price != null" >
  282. #{price,jdbcType=VARCHAR},
  283. </if>
  284. <if test="amount != null" >
  285. #{amount,jdbcType=VARCHAR},
  286. </if>
  287. <if test="taxRate != null" >
  288. #{taxRate,jdbcType=VARCHAR},
  289. </if>
  290. <if test="tax != null" >
  291. #{tax,jdbcType=VARCHAR},
  292. </if>
  293. <if test="totalPrice != null" >
  294. #{totalPrice,jdbcType=VARCHAR},
  295. </if>
  296. <if test="trackingNumber != null" >
  297. #{trackingNumber,jdbcType=VARCHAR},
  298. </if>
  299. <if test="remarks != null" >
  300. #{remarks,jdbcType=VARCHAR},
  301. </if>
  302. <if test="createUser != null" >
  303. #{createUser,jdbcType=VARCHAR},
  304. </if>
  305. <if test="createTime != null" >
  306. #{createTime,jdbcType=VARCHAR},
  307. </if>
  308. <if test="modifyUser != null" >
  309. #{modifyUser,jdbcType=VARCHAR},
  310. </if>
  311. <if test="modifyTime != null" >
  312. #{modifyTime,jdbcType=VARCHAR},
  313. </if>
  314. <if test="state != null" >
  315. #{state,jdbcType=VARCHAR},
  316. </if>
  317. </trim>
  318. </insert>
  319. <select id="countByExample" parameterType="com.minpay.db.table.model.ApOrderInvoiceExample" resultType="java.lang.Integer" >
  320. <!--
  321. WARNING - @mbggenerated
  322. This element is automatically generated by MyBatis Generator, do not modify.
  323. -->
  324. select count(*) from ap_order_invoice
  325. <if test="_parameter != null" >
  326. <include refid="Example_Where_Clause" />
  327. </if>
  328. </select>
  329. <update id="updateByExampleSelective" parameterType="map" >
  330. <!--
  331. WARNING - @mbggenerated
  332. This element is automatically generated by MyBatis Generator, do not modify.
  333. -->
  334. update ap_order_invoice
  335. <set >
  336. <if test="record.id != null" >
  337. AOI_ID = #{record.id,jdbcType=VARCHAR},
  338. </if>
  339. <if test="record.orderId != null" >
  340. AOI_ORDER_ID = #{record.orderId,jdbcType=VARCHAR},
  341. </if>
  342. <if test="record.type != null" >
  343. AOI_TYPE = #{record.type,jdbcType=VARCHAR},
  344. </if>
  345. <if test="record.invoiceNo != null" >
  346. AOI_INVOICE_NO = #{record.invoiceNo,jdbcType=VARCHAR},
  347. </if>
  348. <if test="record.issue != null" >
  349. AOI_ISSUE = #{record.issue,jdbcType=VARCHAR},
  350. </if>
  351. <if test="record.payment != null" >
  352. AOI_PAYMENT = #{record.payment,jdbcType=VARCHAR},
  353. </if>
  354. <if test="record.name != null" >
  355. AOI_NAME = #{record.name,jdbcType=VARCHAR},
  356. </if>
  357. <if test="record.specification != null" >
  358. AOI_SPECIFICATION = #{record.specification,jdbcType=VARCHAR},
  359. </if>
  360. <if test="record.weight != null" >
  361. AOI_WEIGHT = #{record.weight,jdbcType=VARCHAR},
  362. </if>
  363. <if test="record.unit != null" >
  364. AOI_UNIT = #{record.unit,jdbcType=VARCHAR},
  365. </if>
  366. <if test="record.price != null" >
  367. AOI_PRICE = #{record.price,jdbcType=VARCHAR},
  368. </if>
  369. <if test="record.amount != null" >
  370. AOI_AMOUNT = #{record.amount,jdbcType=VARCHAR},
  371. </if>
  372. <if test="record.taxRate != null" >
  373. AOI_TAX_RATE = #{record.taxRate,jdbcType=VARCHAR},
  374. </if>
  375. <if test="record.tax != null" >
  376. AOI_TAX = #{record.tax,jdbcType=VARCHAR},
  377. </if>
  378. <if test="record.totalPrice != null" >
  379. AOI_TOTAL_PRICE = #{record.totalPrice,jdbcType=VARCHAR},
  380. </if>
  381. <if test="record.trackingNumber != null" >
  382. AOI_TRACKING_NUMBER = #{record.trackingNumber,jdbcType=VARCHAR},
  383. </if>
  384. <if test="record.remarks != null" >
  385. AOI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  386. </if>
  387. <if test="record.createUser != null" >
  388. AOI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  389. </if>
  390. <if test="record.createTime != null" >
  391. AOI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  392. </if>
  393. <if test="record.modifyUser != null" >
  394. AOI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  395. </if>
  396. <if test="record.modifyTime != null" >
  397. AOI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  398. </if>
  399. <if test="record.state != null" >
  400. AOI_STATE = #{record.state,jdbcType=VARCHAR},
  401. </if>
  402. </set>
  403. <if test="_parameter != null" >
  404. <include refid="Update_By_Example_Where_Clause" />
  405. </if>
  406. </update>
  407. <update id="updateByExample" parameterType="map" >
  408. <!--
  409. WARNING - @mbggenerated
  410. This element is automatically generated by MyBatis Generator, do not modify.
  411. -->
  412. update ap_order_invoice
  413. set AOI_ID = #{record.id,jdbcType=VARCHAR},
  414. AOI_ORDER_ID = #{record.orderId,jdbcType=VARCHAR},
  415. AOI_TYPE = #{record.type,jdbcType=VARCHAR},
  416. AOI_INVOICE_NO = #{record.invoiceNo,jdbcType=VARCHAR},
  417. AOI_ISSUE = #{record.issue,jdbcType=VARCHAR},
  418. AOI_PAYMENT = #{record.payment,jdbcType=VARCHAR},
  419. AOI_NAME = #{record.name,jdbcType=VARCHAR},
  420. AOI_SPECIFICATION = #{record.specification,jdbcType=VARCHAR},
  421. AOI_WEIGHT = #{record.weight,jdbcType=VARCHAR},
  422. AOI_UNIT = #{record.unit,jdbcType=VARCHAR},
  423. AOI_PRICE = #{record.price,jdbcType=VARCHAR},
  424. AOI_AMOUNT = #{record.amount,jdbcType=VARCHAR},
  425. AOI_TAX_RATE = #{record.taxRate,jdbcType=VARCHAR},
  426. AOI_TAX = #{record.tax,jdbcType=VARCHAR},
  427. AOI_TOTAL_PRICE = #{record.totalPrice,jdbcType=VARCHAR},
  428. AOI_TRACKING_NUMBER = #{record.trackingNumber,jdbcType=VARCHAR},
  429. AOI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  430. AOI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  431. AOI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  432. AOI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  433. AOI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  434. AOI_STATE = #{record.state,jdbcType=VARCHAR}
  435. <if test="_parameter != null" >
  436. <include refid="Update_By_Example_Where_Clause" />
  437. </if>
  438. </update>
  439. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ApOrderInvoice" >
  440. <!--
  441. WARNING - @mbggenerated
  442. This element is automatically generated by MyBatis Generator, do not modify.
  443. -->
  444. update ap_order_invoice
  445. <set >
  446. <if test="orderId != null" >
  447. AOI_ORDER_ID = #{orderId,jdbcType=VARCHAR},
  448. </if>
  449. <if test="type != null" >
  450. AOI_TYPE = #{type,jdbcType=VARCHAR},
  451. </if>
  452. <if test="invoiceNo != null" >
  453. AOI_INVOICE_NO = #{invoiceNo,jdbcType=VARCHAR},
  454. </if>
  455. <if test="issue != null" >
  456. AOI_ISSUE = #{issue,jdbcType=VARCHAR},
  457. </if>
  458. <if test="payment != null" >
  459. AOI_PAYMENT = #{payment,jdbcType=VARCHAR},
  460. </if>
  461. <if test="name != null" >
  462. AOI_NAME = #{name,jdbcType=VARCHAR},
  463. </if>
  464. <if test="specification != null" >
  465. AOI_SPECIFICATION = #{specification,jdbcType=VARCHAR},
  466. </if>
  467. <if test="weight != null" >
  468. AOI_WEIGHT = #{weight,jdbcType=VARCHAR},
  469. </if>
  470. <if test="unit != null" >
  471. AOI_UNIT = #{unit,jdbcType=VARCHAR},
  472. </if>
  473. <if test="price != null" >
  474. AOI_PRICE = #{price,jdbcType=VARCHAR},
  475. </if>
  476. <if test="amount != null" >
  477. AOI_AMOUNT = #{amount,jdbcType=VARCHAR},
  478. </if>
  479. <if test="taxRate != null" >
  480. AOI_TAX_RATE = #{taxRate,jdbcType=VARCHAR},
  481. </if>
  482. <if test="tax != null" >
  483. AOI_TAX = #{tax,jdbcType=VARCHAR},
  484. </if>
  485. <if test="totalPrice != null" >
  486. AOI_TOTAL_PRICE = #{totalPrice,jdbcType=VARCHAR},
  487. </if>
  488. <if test="trackingNumber != null" >
  489. AOI_TRACKING_NUMBER = #{trackingNumber,jdbcType=VARCHAR},
  490. </if>
  491. <if test="remarks != null" >
  492. AOI_REMARKS = #{remarks,jdbcType=VARCHAR},
  493. </if>
  494. <if test="createUser != null" >
  495. AOI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  496. </if>
  497. <if test="createTime != null" >
  498. AOI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  499. </if>
  500. <if test="modifyUser != null" >
  501. AOI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  502. </if>
  503. <if test="modifyTime != null" >
  504. AOI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  505. </if>
  506. <if test="state != null" >
  507. AOI_STATE = #{state,jdbcType=VARCHAR},
  508. </if>
  509. </set>
  510. where AOI_ID = #{id,jdbcType=VARCHAR}
  511. </update>
  512. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApOrderInvoice" >
  513. <!--
  514. WARNING - @mbggenerated
  515. This element is automatically generated by MyBatis Generator, do not modify.
  516. -->
  517. update ap_order_invoice
  518. set AOI_ORDER_ID = #{orderId,jdbcType=VARCHAR},
  519. AOI_TYPE = #{type,jdbcType=VARCHAR},
  520. AOI_INVOICE_NO = #{invoiceNo,jdbcType=VARCHAR},
  521. AOI_ISSUE = #{issue,jdbcType=VARCHAR},
  522. AOI_PAYMENT = #{payment,jdbcType=VARCHAR},
  523. AOI_NAME = #{name,jdbcType=VARCHAR},
  524. AOI_SPECIFICATION = #{specification,jdbcType=VARCHAR},
  525. AOI_WEIGHT = #{weight,jdbcType=VARCHAR},
  526. AOI_UNIT = #{unit,jdbcType=VARCHAR},
  527. AOI_PRICE = #{price,jdbcType=VARCHAR},
  528. AOI_AMOUNT = #{amount,jdbcType=VARCHAR},
  529. AOI_TAX_RATE = #{taxRate,jdbcType=VARCHAR},
  530. AOI_TAX = #{tax,jdbcType=VARCHAR},
  531. AOI_TOTAL_PRICE = #{totalPrice,jdbcType=VARCHAR},
  532. AOI_TRACKING_NUMBER = #{trackingNumber,jdbcType=VARCHAR},
  533. AOI_REMARKS = #{remarks,jdbcType=VARCHAR},
  534. AOI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  535. AOI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  536. AOI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  537. AOI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  538. AOI_STATE = #{state,jdbcType=VARCHAR}
  539. where AOI_ID = #{id,jdbcType=VARCHAR}
  540. </update>
  541. </mapper>