KwoTradeOrderUnitMapper.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.sckw.order.dao.KwoTradeOrderUnitMapper">
  4. <insert id="insertBatch">
  5. insert into kwo_trade_order_unit
  6. <trim prefix="(" suffix=")" suffixOverrides=",">
  7. id,
  8. t_order_id,
  9. t_order_no,
  10. unit_type,
  11. ent_id,
  12. top_ent_id,
  13. firm_name,
  14. contacts_id,
  15. contacts,
  16. phone,
  17. remark,
  18. status,
  19. create_by,
  20. create_time,
  21. update_by,
  22. update_time,
  23. del_flag
  24. </trim>
  25. values
  26. <foreach collection="list" item="item" separator=",">
  27. <trim prefix="(" suffix=")" suffixOverrides=",">
  28. #{item.id,jdbcType=BIGINT},
  29. #{item.tOrderId,jdbcType=BIGINT},
  30. #{item.tOrderNo,jdbcType=VARCHAR},
  31. #{item.unitType,jdbcType=VARCHAR},
  32. #{item.entId,jdbcType=VARCHAR},
  33. #{item.topEntId,jdbcType=VARCHAR},
  34. #{item.firmName,jdbcType=VARCHAR},
  35. #{item.contactsId,jdbcType=BIGINT},
  36. #{item.contacts,jdbcType=VARCHAR},
  37. #{item.phone,jdbcType=VARCHAR},
  38. #{item.remark,jdbcType=VARCHAR},
  39. #{item.status,jdbcType=INTEGER},
  40. #{item.createBy,jdbcType=BIGINT},
  41. #{item.createTime,jdbcType=TIMESTAMP},
  42. #{item.updateBy,jdbcType=BIGINT},
  43. #{item.updateTime,jdbcType=TIMESTAMP},
  44. #{item.delFlag,jdbcType=INTEGER}
  45. </trim>
  46. </foreach>
  47. </insert>
  48. </mapper>