ShipReceiptMapper.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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.bz.smart_city.dao.ShipReceiptMapper">
  4. <resultMap id="BaseResultMap" type="com.bz.smart_city.entity.ShipReceipt">
  5. <!--@mbg.generated-->
  6. <id column="id" property="id" />
  7. <result column="ship_receipt_no" property="shipReceiptNo" />
  8. <result column="send_user_name" property="sendUserName" />
  9. <result column="send_user_phone" property="sendUserPhone" />
  10. <result column="ship_company" property="shipCompany" />
  11. <result column="receive_address" property="receiveAddress" />
  12. <result column="receive_user_name" property="receiveUserName" />
  13. <result column="receive_user_phone" property="receiveUserPhone" />
  14. <result column="package_num" property="packageNum" />
  15. <result column="meter_num" property="meterNum" />
  16. <result column="meter_type" property="meterType" />
  17. <result column="ship_time" property="shipTime" />
  18. <result column="receipt_status" property="receiptStatus" />
  19. <result column="status" property="status" />
  20. <result column="create_by" property="createBy" />
  21. <result column="update_by" property="updateBy" />
  22. <result column="date_create" property="dateCreate" />
  23. <result column="date_update" property="dateUpdate" />
  24. </resultMap>
  25. <sql id="Base_Column_List">
  26. <!--@mbg.generated-->
  27. id, ship_receipt_no, send_user_name, send_user_phone, ship_company, receive_address,
  28. receive_user_name, receive_user_phone, package_num, meter_num, meter_type, ship_time,
  29. receipt_status, `status`, create_by, update_by, date_create, date_update
  30. </sql>
  31. <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bz.smart_city.entity.ShipReceipt" useGeneratedKeys="true">
  32. <!--@mbg.generated-->
  33. insert into sc_ship_receipt
  34. <trim prefix="(" suffix=")" suffixOverrides=",">
  35. <if test="shipReceiptNo != null">
  36. ship_receipt_no,
  37. </if>
  38. <if test="sendUserName != null">
  39. send_user_name,
  40. </if>
  41. <if test="sendUserPhone != null">
  42. send_user_phone,
  43. </if>
  44. <if test="shipCompany != null">
  45. ship_company,
  46. </if>
  47. <if test="receiveAddress != null">
  48. receive_address,
  49. </if>
  50. <if test="receiveUserName != null">
  51. receive_user_name,
  52. </if>
  53. <if test="receiveUserPhone != null">
  54. receive_user_phone,
  55. </if>
  56. <if test="packageNum != null">
  57. package_num,
  58. </if>
  59. <if test="meterNum != null">
  60. meter_num,
  61. </if>
  62. <if test="meterType != null">
  63. meter_type,
  64. </if>
  65. <if test="shipTime != null">
  66. ship_time,
  67. </if>
  68. <if test="receiptStatus != null">
  69. receipt_status,
  70. </if>
  71. <if test="status != null">
  72. `status`,
  73. </if>
  74. <if test="createBy != null">
  75. create_by,
  76. </if>
  77. <if test="updateBy != null">
  78. update_by,
  79. </if>
  80. <if test="dateCreate != null">
  81. date_create,
  82. </if>
  83. <if test="dateUpdate != null">
  84. date_update,
  85. </if>
  86. </trim>
  87. <trim prefix="values (" suffix=")" suffixOverrides=",">
  88. <if test="shipReceiptNo != null">
  89. #{shipReceiptNo},
  90. </if>
  91. <if test="sendUserName != null">
  92. #{sendUserName},
  93. </if>
  94. <if test="sendUserPhone != null">
  95. #{sendUserPhone},
  96. </if>
  97. <if test="shipCompany != null">
  98. #{shipCompany},
  99. </if>
  100. <if test="receiveAddress != null">
  101. #{receiveAddress},
  102. </if>
  103. <if test="receiveUserName != null">
  104. #{receiveUserName},
  105. </if>
  106. <if test="receiveUserPhone != null">
  107. #{receiveUserPhone},
  108. </if>
  109. <if test="packageNum != null">
  110. #{packageNum},
  111. </if>
  112. <if test="meterNum != null">
  113. #{meterNum},
  114. </if>
  115. <if test="meterType != null">
  116. #{meterType},
  117. </if>
  118. <if test="shipTime != null">
  119. #{shipTime},
  120. </if>
  121. <if test="receiptStatus != null">
  122. #{receiptStatus},
  123. </if>
  124. <if test="status != null">
  125. #{status},
  126. </if>
  127. <if test="createBy != null">
  128. #{createBy},
  129. </if>
  130. <if test="updateBy != null">
  131. #{updateBy},
  132. </if>
  133. <if test="dateCreate != null">
  134. #{dateCreate},
  135. </if>
  136. <if test="dateUpdate != null">
  137. #{dateUpdate},
  138. </if>
  139. </trim>
  140. </insert>
  141. <update id="updateByPrimaryKeySelective" parameterType="com.bz.smart_city.entity.ShipReceipt">
  142. <!--@mbg.generated-->
  143. update sc_ship_receipt
  144. <set>
  145. <if test="shipReceiptNo != null">
  146. ship_receipt_no = #{shipReceiptNo},
  147. </if>
  148. <if test="sendUserName != null">
  149. send_user_name = #{sendUserName},
  150. </if>
  151. <if test="sendUserPhone != null">
  152. send_user_phone = #{sendUserPhone},
  153. </if>
  154. <if test="shipCompany != null">
  155. ship_company = #{shipCompany},
  156. </if>
  157. <if test="receiveAddress != null">
  158. receive_address = #{receiveAddress},
  159. </if>
  160. <if test="receiveUserName != null">
  161. receive_user_name = #{receiveUserName},
  162. </if>
  163. <if test="receiveUserPhone != null">
  164. receive_user_phone = #{receiveUserPhone},
  165. </if>
  166. <if test="packageNum != null">
  167. package_num = #{packageNum},
  168. </if>
  169. <if test="meterNum != null">
  170. meter_num = #{meterNum},
  171. </if>
  172. <if test="meterType != null">
  173. meter_type = #{meterType},
  174. </if>
  175. <if test="shipTime != null">
  176. ship_time = #{shipTime},
  177. </if>
  178. <if test="receiptStatus != null">
  179. receipt_status = #{receiptStatus},
  180. </if>
  181. <if test="status != null">
  182. `status` = #{status},
  183. </if>
  184. <if test="createBy != null">
  185. create_by = #{createBy},
  186. </if>
  187. <if test="updateBy != null">
  188. update_by = #{updateBy},
  189. </if>
  190. <if test="dateCreate != null">
  191. date_create = #{dateCreate},
  192. </if>
  193. <if test="dateUpdate != null">
  194. date_update = #{dateUpdate},
  195. </if>
  196. </set>
  197. where id = #{id}
  198. </update>
  199. </mapper>