FlowOrderInfoMapper.xml 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.fire.order.mapper.FlowOrderInfoMapper">
  4. <resultMap type="com.fire.dto.FlowOrderInfo" id="FlowOrderInfoMap">
  5. <result property="flowAppId" column="flow_app_id" jdbcType="VARCHAR"/>
  6. <result property="orderId" column="order_id" jdbcType="BIGINT"/>
  7. <result property="packageId" column="package_id" jdbcType="VARCHAR"/>
  8. <result property="customerId" column="customer_id" jdbcType="INTEGER"/>
  9. <result property="orderType" column="order_type" jdbcType="INTEGER"/>
  10. <result property="customerName" column="customer_name" jdbcType="VARCHAR"/>
  11. <result property="phoneNo" column="phone_no" jdbcType="VARCHAR"/>
  12. <result property="extorderId" column="extorder_id" jdbcType="VARCHAR"/>
  13. <result property="recId" column="rec_id" jdbcType="VARCHAR"/>
  14. <result property="applyDate" column="apply_date" jdbcType="TIMESTAMP"/>
  15. <result property="activeDate" column="active_date" jdbcType="TIMESTAMP"/>
  16. <result property="limitedDate" column="limited_date" jdbcType="TIMESTAMP"/>
  17. <result property="status" column="status" jdbcType="INTEGER"/>
  18. <result property="note" column="note" jdbcType="VARCHAR"/>
  19. <result property="gwSeqNo" column="gw_seq_no" jdbcType="VARCHAR"/>
  20. <result property="gwStatus" column="gw_status" jdbcType="VARCHAR"/>
  21. <result property="lastModifyDate" column="last_modify_date" jdbcType="TIMESTAMP"/>
  22. <result property="gwErrorCode" column="gw_error_code" jdbcType="VARCHAR"/>
  23. <result property="flowAmount" column="flow_amount" jdbcType="INTEGER"/>
  24. <result property="adapterName" column="adapter_name" jdbcType="VARCHAR"/>
  25. <result property="usageLimit" column="usage_limit" jdbcType="INTEGER"/>
  26. <result property="batchCount" column="batch_count" jdbcType="INTEGER"/>
  27. <result property="sendCount" column="send_count" jdbcType="INTEGER"/>
  28. <result property="areaCode" column="area_code" jdbcType="VARCHAR"/>
  29. <result property="price" column="price" jdbcType="INTEGER"/>
  30. <result property="partnerBalancePrice" column="partner_balance_price" jdbcType="INTEGER"/>
  31. <result property="operatorBalancePrice" column="operator_balance_price" jdbcType="INTEGER"/>
  32. <result property="customerProductId" column="customer_product_id" jdbcType="INTEGER"/>
  33. <result property="channelId" column="channel_id" jdbcType="INTEGER"/>
  34. <result property="callbackTime" column="callback_time" jdbcType="TIMESTAMP"/>
  35. <result property="productId" column="product_id" jdbcType="VARCHAR"/>
  36. <result property="attr1" column="attr1" jdbcType="VARCHAR"/>
  37. <result property="attr2" column="attr2" jdbcType="VARCHAR"/>
  38. <result property="attr3" column="attr3" jdbcType="VARCHAR"/>
  39. <result property="channelName" column="channel_name" jdbcType="VARCHAR"/>
  40. <result property="appId" column="app_id" jdbcType="VARCHAR"/>
  41. <result property="channelProductId" column="channel_product_id" jdbcType="INTEGER"/>
  42. <result property="callbackStatus" column="callback_status" jdbcType="INTEGER"/>
  43. <result property="phoneOperator" column="phone_operator" jdbcType="INTEGER"/>
  44. <result property="phoneCity" column="phone_city" jdbcType="VARCHAR"/>
  45. </resultMap>
  46. <!--新增所有列-->
  47. <insert id="insert" keyProperty="orderId" useGeneratedKeys="true">
  48. insert into flow_order_info(order_id, flow_app_id, package_id, customer_id, order_type, customer_name, phone_no,
  49. extorder_id, rec_id, apply_date, active_date, limited_date, status, note,
  50. gw_seq_no, gw_status, last_modify_date, gw_error_code, flow_amount,
  51. usage_limit, batch_count, send_count, area_code, price,
  52. partner_balance_price, operator_balance_price, customer_product_id, channel_id,
  53. callback_time, product_id, attr1, attr2, attr3, channel_name, app_id,
  54. channel_product_id, callback_status, phone_operator, phone_city)
  55. values (#{orderId}, #{flowAppId}, #{packageId}, #{customerId}, #{orderType}, #{customerName}, #{phoneNo},
  56. #{extorderId},
  57. #{recId}, #{applyDate}, #{activeDate}, #{limitedDate}, #{status}, #{note}, #{gwSeqNo}, #{gwStatus},
  58. #{lastModifyDate}, #{gwErrorCode}, #{flowAmount}, #{usageLimit}, #{batchCount},
  59. #{sendCount}, #{areaCode}, #{price}, #{partnerBalancePrice}, #{operatorBalancePrice},
  60. #{customerProductId}, #{channelId}, #{callbackTime}, #{productId}, #{attr1}, #{attr2}, #{attr3},
  61. #{channelName}, #{appId}, #{channelProductId}, #{callbackStatus}, #{phoneOperator}, #{phoneCity})
  62. </insert>
  63. </mapper>