AskaPlatformMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.mofangchuxing.aska.dao.mapper.AskaPlatformMapper">
  6. <resultMap id="BaseResultMap" type="com.mofangchuxing.aska.dao.domain.AskaPlatform">
  7. <id property="id" column="id" jdbcType="INTEGER"/>
  8. <result property="name" column="name" jdbcType="CHAR"/>
  9. <result property="address" column="address" jdbcType="VARCHAR"/>
  10. <result property="note" column="note" jdbcType="VARCHAR"/>
  11. <result property="account" column="account" jdbcType="VARCHAR"/>
  12. <result property="accountName" column="accountName" jdbcType="VARCHAR"/>
  13. <result property="accountType" column="accountType" jdbcType="CHAR"/>
  14. <result property="apiv3" column="apiv3" jdbcType="VARCHAR"/>
  15. <result property="certPath" column="certPath" jdbcType="VARCHAR"/>
  16. <result property="status" column="status" jdbcType="CHAR"/>
  17. <result property="totalIncome" column="totalIncome" jdbcType="INTEGER"/>
  18. <result property="totalRefund" column="totalRefund" jdbcType="INTEGER"/>
  19. <result property="totalRetailSplit" column="totalRetailSplit" jdbcType="INTEGER"/>
  20. <result property="totalRetailAccounting" column="totalRetailAccounting" jdbcType="INTEGER"/>
  21. <result property="totalRetailSplitRefund" column="totalRetailSplitRefund" jdbcType="INTEGER"/>
  22. <result property="totalRetailAccountingRefund" column="totalRetailAccountingRefund" jdbcType="INTEGER"/>
  23. <result property="totalChannelSplit" column="totalChannelSplit" jdbcType="INTEGER"/>
  24. <result property="totalChannelAccounting" column="totalChannelAccounting" jdbcType="INTEGER"/>
  25. <result property="totalChannelSplitRefund" column="totalChannelSplitRefund" jdbcType="INTEGER"/>
  26. <result property="totalChannelAccountingRefund" column="totalChannelAccountingRefund" jdbcType="INTEGER"/>
  27. <result property="totalCashOut" column="totalCashOut" jdbcType="INTEGER"/>
  28. <result property="balance" column="balance" jdbcType="INTEGER"/>
  29. </resultMap>
  30. <sql id="Base_Column_List">
  31. id,name,address,
  32. note,account,accountName,
  33. accountType,apiv3,certPath,
  34. status,totalIncome,totalRefund,
  35. totalRetailSplit,totalRetailAccounting,totalRetailSplitRefund,
  36. totalRetailAccountingRefund,totalChannelSplit,totalChannelAccounting,
  37. totalChannelSplitRefund,totalChannelAccountingRefund,totalCashOut,
  38. balance
  39. </sql>
  40. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  41. select
  42. <include refid="Base_Column_List" />
  43. from aska_platform
  44. where id = #{id,jdbcType=INTEGER}
  45. </select>
  46. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  47. delete from aska_platform
  48. where id = #{id,jdbcType=INTEGER}
  49. </delete>
  50. <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform" useGeneratedKeys="true">
  51. insert into aska_platform
  52. ( id,name,address
  53. ,note,account,accountName
  54. ,accountType,apiv3,certPath
  55. ,status,totalIncome,totalRefund
  56. ,totalRetailSplit,totalRetailAccounting,totalRetailSplitRefund
  57. ,totalRetailAccountingRefund,totalChannelSplit,totalChannelAccounting
  58. ,totalChannelSplitRefund,totalChannelAccountingRefund,totalCashOut
  59. ,balance)
  60. values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{address,jdbcType=VARCHAR}
  61. ,#{note,jdbcType=VARCHAR},#{account,jdbcType=VARCHAR},#{accountName,jdbcType=VARCHAR}
  62. ,#{accountType,jdbcType=CHAR},#{apiv3,jdbcType=VARCHAR},#{certPath,jdbcType=VARCHAR}
  63. ,#{status,jdbcType=CHAR},#{totalIncome,jdbcType=INTEGER},#{totalRefund,jdbcType=INTEGER}
  64. ,#{totalRetailSplit,jdbcType=INTEGER},#{totalRetailAccounting,jdbcType=INTEGER},#{totalRetailSplitRefund,jdbcType=INTEGER}
  65. ,#{totalRetailAccountingRefund,jdbcType=INTEGER},#{totalChannelSplit,jdbcType=INTEGER},#{totalChannelAccounting,jdbcType=INTEGER}
  66. ,#{totalChannelSplitRefund,jdbcType=INTEGER},#{totalChannelAccountingRefund,jdbcType=INTEGER},#{totalCashOut,jdbcType=INTEGER}
  67. ,#{balance,jdbcType=INTEGER})
  68. </insert>
  69. <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform" useGeneratedKeys="true">
  70. insert into aska_platform
  71. <trim prefix="(" suffix=")" suffixOverrides=",">
  72. <if test="id != null">id,</if>
  73. <if test="name != null">name,</if>
  74. <if test="address != null">address,</if>
  75. <if test="note != null">note,</if>
  76. <if test="account != null">account,</if>
  77. <if test="accountName != null">accountName,</if>
  78. <if test="accountType != null">accountType,</if>
  79. <if test="apiv3 != null">apiv3,</if>
  80. <if test="certPath != null">certPath,</if>
  81. <if test="status != null">status,</if>
  82. <if test="totalIncome != null">totalIncome,</if>
  83. <if test="totalRefund != null">totalRefund,</if>
  84. <if test="totalRetailSplit != null">totalRetailSplit,</if>
  85. <if test="totalRetailAccounting != null">totalRetailAccounting,</if>
  86. <if test="totalRetailSplitRefund != null">totalRetailSplitRefund,</if>
  87. <if test="totalRetailAccountingRefund != null">totalRetailAccountingRefund,</if>
  88. <if test="totalChannelSplit != null">totalChannelSplit,</if>
  89. <if test="totalChannelAccounting != null">totalChannelAccounting,</if>
  90. <if test="totalChannelSplitRefund != null">totalChannelSplitRefund,</if>
  91. <if test="totalChannelAccountingRefund != null">totalChannelAccountingRefund,</if>
  92. <if test="totalCashOut != null">totalCashOut,</if>
  93. <if test="balance != null">balance,</if>
  94. </trim>
  95. <trim prefix="values (" suffix=")" suffixOverrides=",">
  96. <if test="id != null">#{id,jdbcType=INTEGER},</if>
  97. <if test="name != null">#{name,jdbcType=CHAR},</if>
  98. <if test="address != null">#{address,jdbcType=VARCHAR},</if>
  99. <if test="note != null">#{note,jdbcType=VARCHAR},</if>
  100. <if test="account != null">#{account,jdbcType=VARCHAR},</if>
  101. <if test="accountName != null">#{accountName,jdbcType=VARCHAR},</if>
  102. <if test="accountType != null">#{accountType,jdbcType=CHAR},</if>
  103. <if test="apiv3 != null">#{apiv3,jdbcType=VARCHAR},</if>
  104. <if test="certPath != null">#{certPath,jdbcType=VARCHAR},</if>
  105. <if test="status != null">#{status,jdbcType=CHAR},</if>
  106. <if test="totalIncome != null">#{totalIncome,jdbcType=INTEGER},</if>
  107. <if test="totalRefund != null">#{totalRefund,jdbcType=INTEGER},</if>
  108. <if test="totalRetailSplit != null">#{totalRetailSplit,jdbcType=INTEGER},</if>
  109. <if test="totalRetailAccounting != null">#{totalRetailAccounting,jdbcType=INTEGER},</if>
  110. <if test="totalRetailSplitRefund != null">#{totalRetailSplitRefund,jdbcType=INTEGER},</if>
  111. <if test="totalRetailAccountingRefund != null">#{totalRetailAccountingRefund,jdbcType=INTEGER},</if>
  112. <if test="totalChannelSplit != null">#{totalChannelSplit,jdbcType=INTEGER},</if>
  113. <if test="totalChannelAccounting != null">#{totalChannelAccounting,jdbcType=INTEGER},</if>
  114. <if test="totalChannelSplitRefund != null">#{totalChannelSplitRefund,jdbcType=INTEGER},</if>
  115. <if test="totalChannelAccountingRefund != null">#{totalChannelAccountingRefund,jdbcType=INTEGER},</if>
  116. <if test="totalCashOut != null">#{totalCashOut,jdbcType=INTEGER},</if>
  117. <if test="balance != null">#{balance,jdbcType=INTEGER},</if>
  118. </trim>
  119. </insert>
  120. <update id="updateByPrimaryKeySelective" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform">
  121. update aska_platform
  122. <set>
  123. <if test="name != null">
  124. name = #{name,jdbcType=CHAR},
  125. </if>
  126. <if test="address != null">
  127. address = #{address,jdbcType=VARCHAR},
  128. </if>
  129. <if test="note != null">
  130. note = #{note,jdbcType=VARCHAR},
  131. </if>
  132. <if test="account != null">
  133. account = #{account,jdbcType=VARCHAR},
  134. </if>
  135. <if test="accountName != null">
  136. accountName = #{accountName,jdbcType=VARCHAR},
  137. </if>
  138. <if test="accountType != null">
  139. accountType = #{accountType,jdbcType=CHAR},
  140. </if>
  141. <if test="apiv3 != null">
  142. apiv3 = #{apiv3,jdbcType=VARCHAR},
  143. </if>
  144. <if test="certPath != null">
  145. certPath = #{certPath,jdbcType=VARCHAR},
  146. </if>
  147. <if test="status != null">
  148. status = #{status,jdbcType=CHAR},
  149. </if>
  150. <if test="totalIncome != null">
  151. totalIncome = #{totalIncome,jdbcType=INTEGER},
  152. </if>
  153. <if test="totalRefund != null">
  154. totalRefund = #{totalRefund,jdbcType=INTEGER},
  155. </if>
  156. <if test="totalRetailSplit != null">
  157. totalRetailSplit = #{totalRetailSplit,jdbcType=INTEGER},
  158. </if>
  159. <if test="totalRetailAccounting != null">
  160. totalRetailAccounting = #{totalRetailAccounting,jdbcType=INTEGER},
  161. </if>
  162. <if test="totalRetailSplitRefund != null">
  163. totalRetailSplitRefund = #{totalRetailSplitRefund,jdbcType=INTEGER},
  164. </if>
  165. <if test="totalRetailAccountingRefund != null">
  166. totalRetailAccountingRefund = #{totalRetailAccountingRefund,jdbcType=INTEGER},
  167. </if>
  168. <if test="totalChannelSplit != null">
  169. totalChannelSplit = #{totalChannelSplit,jdbcType=INTEGER},
  170. </if>
  171. <if test="totalChannelAccounting != null">
  172. totalChannelAccounting = #{totalChannelAccounting,jdbcType=INTEGER},
  173. </if>
  174. <if test="totalChannelSplitRefund != null">
  175. totalChannelSplitRefund = #{totalChannelSplitRefund,jdbcType=INTEGER},
  176. </if>
  177. <if test="totalChannelAccountingRefund != null">
  178. totalChannelAccountingRefund = #{totalChannelAccountingRefund,jdbcType=INTEGER},
  179. </if>
  180. <if test="totalCashOut != null">
  181. totalCashOut = #{totalCashOut,jdbcType=INTEGER},
  182. </if>
  183. <if test="balance != null">
  184. balance = #{balance,jdbcType=INTEGER},
  185. </if>
  186. </set>
  187. where id = #{id,jdbcType=INTEGER}
  188. </update>
  189. <update id="updateByPrimaryKey" parameterType="com.mofangchuxing.aska.dao.domain.AskaPlatform">
  190. update aska_platform
  191. set
  192. name = #{name,jdbcType=CHAR},
  193. address = #{address,jdbcType=VARCHAR},
  194. note = #{note,jdbcType=VARCHAR},
  195. account = #{account,jdbcType=VARCHAR},
  196. accountName = #{accountName,jdbcType=VARCHAR},
  197. accountType = #{accountType,jdbcType=CHAR},
  198. apiv3 = #{apiv3,jdbcType=VARCHAR},
  199. certPath = #{certPath,jdbcType=VARCHAR},
  200. status = #{status,jdbcType=CHAR},
  201. totalIncome = #{totalIncome,jdbcType=INTEGER},
  202. totalRefund = #{totalRefund,jdbcType=INTEGER},
  203. totalRetailSplit = #{totalRetailSplit,jdbcType=INTEGER},
  204. totalRetailAccounting = #{totalRetailAccounting,jdbcType=INTEGER},
  205. totalRetailSplitRefund = #{totalRetailSplitRefund,jdbcType=INTEGER},
  206. totalRetailAccountingRefund = #{totalRetailAccountingRefund,jdbcType=INTEGER},
  207. totalChannelSplit = #{totalChannelSplit,jdbcType=INTEGER},
  208. totalChannelAccounting = #{totalChannelAccounting,jdbcType=INTEGER},
  209. totalChannelSplitRefund = #{totalChannelSplitRefund,jdbcType=INTEGER},
  210. totalChannelAccountingRefund = #{totalChannelAccountingRefund,jdbcType=INTEGER},
  211. totalCashOut = #{totalCashOut,jdbcType=INTEGER},
  212. balance = #{balance,jdbcType=INTEGER}
  213. where id = #{id,jdbcType=INTEGER}
  214. </update>
  215. </mapper>