VmSettlementRuleMapper.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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.VmSettlementRuleMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmSettlementRule">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="VSR_ID" jdbcType="VARCHAR" property="id" />
  10. <result column="VSR_CHANNEL" jdbcType="VARCHAR" property="channel" />
  11. <result column="VSR_TYPE" jdbcType="VARCHAR" property="type" />
  12. <result column="VSR_PAY_TYPE" jdbcType="VARCHAR" property="payType" />
  13. <result column="VSR_MERCHANTID" jdbcType="VARCHAR" property="merchantid" />
  14. <result column="VSR_STATE" jdbcType="VARCHAR" property="state" />
  15. <result column="VSR_REMARKS" jdbcType="VARCHAR" property="remarks" />
  16. <result column="VSR_PARAMETER" jdbcType="VARCHAR" property="parameter" />
  17. <result column="VSR_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
  18. <result column="VSR_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
  19. <result column="VSR_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
  20. <result column="VSR_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
  21. <result column="VSR__LAST_SETTLEMENT_TIME" jdbcType="VARCHAR" property="LastSettlementTime" />
  22. </resultMap>
  23. <sql id="Example_Where_Clause">
  24. <!--
  25. WARNING - @mbggenerated
  26. This element is automatically generated by MyBatis Generator, do not modify.
  27. -->
  28. <where>
  29. <foreach collection="oredCriteria" item="criteria" separator="or">
  30. <if test="criteria.valid">
  31. <trim prefix="(" prefixOverrides="and" suffix=")">
  32. <foreach collection="criteria.criteria" item="criterion">
  33. <choose>
  34. <when test="criterion.noValue">
  35. and ${criterion.condition}
  36. </when>
  37. <when test="criterion.singleValue">
  38. and ${criterion.condition} #{criterion.value}
  39. </when>
  40. <when test="criterion.betweenValue">
  41. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  42. </when>
  43. <when test="criterion.listValue">
  44. and ${criterion.condition}
  45. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  46. #{listItem}
  47. </foreach>
  48. </when>
  49. </choose>
  50. </foreach>
  51. </trim>
  52. </if>
  53. </foreach>
  54. </where>
  55. </sql>
  56. <sql id="Update_By_Example_Where_Clause">
  57. <!--
  58. WARNING - @mbggenerated
  59. This element is automatically generated by MyBatis Generator, do not modify.
  60. -->
  61. <where>
  62. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  63. <if test="criteria.valid">
  64. <trim prefix="(" prefixOverrides="and" suffix=")">
  65. <foreach collection="criteria.criteria" item="criterion">
  66. <choose>
  67. <when test="criterion.noValue">
  68. and ${criterion.condition}
  69. </when>
  70. <when test="criterion.singleValue">
  71. and ${criterion.condition} #{criterion.value}
  72. </when>
  73. <when test="criterion.betweenValue">
  74. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  75. </when>
  76. <when test="criterion.listValue">
  77. and ${criterion.condition}
  78. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  79. #{listItem}
  80. </foreach>
  81. </when>
  82. </choose>
  83. </foreach>
  84. </trim>
  85. </if>
  86. </foreach>
  87. </where>
  88. </sql>
  89. <sql id="Base_Column_List">
  90. <!--
  91. WARNING - @mbggenerated
  92. This element is automatically generated by MyBatis Generator, do not modify.
  93. -->
  94. VSR_ID, VSR_CHANNEL, VSR_TYPE, VSR_PAY_TYPE, VSR_MERCHANTID, VSR_STATE, VSR_REMARKS,
  95. VSR_PARAMETER, VSR_CREATE_USER, VSR_CREATE_TIME, VSR_MODIFY_USER, VSR_MODIFY_TIME,
  96. VSR__LAST_SETTLEMENT_TIME
  97. </sql>
  98. <select id="selectByExample" parameterType="com.minpay.db.table.model.VmSettlementRuleExample" resultMap="BaseResultMap">
  99. <!--
  100. WARNING - @mbggenerated
  101. This element is automatically generated by MyBatis Generator, do not modify.
  102. -->
  103. select
  104. <if test="distinct">
  105. distinct
  106. </if>
  107. <include refid="Base_Column_List" />
  108. from vm_settlement_rule
  109. <if test="_parameter != null">
  110. <include refid="Example_Where_Clause" />
  111. </if>
  112. <if test="orderByClause != null">
  113. order by ${orderByClause}
  114. </if>
  115. </select>
  116. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  117. <!--
  118. WARNING - @mbggenerated
  119. This element is automatically generated by MyBatis Generator, do not modify.
  120. -->
  121. select
  122. <include refid="Base_Column_List" />
  123. from vm_settlement_rule
  124. where VSR_ID = #{id,jdbcType=VARCHAR}
  125. </select>
  126. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  127. <!--
  128. WARNING - @mbggenerated
  129. This element is automatically generated by MyBatis Generator, do not modify.
  130. -->
  131. delete from vm_settlement_rule
  132. where VSR_ID = #{id,jdbcType=VARCHAR}
  133. </delete>
  134. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmSettlementRuleExample">
  135. <!--
  136. WARNING - @mbggenerated
  137. This element is automatically generated by MyBatis Generator, do not modify.
  138. -->
  139. delete from vm_settlement_rule
  140. <if test="_parameter != null">
  141. <include refid="Example_Where_Clause" />
  142. </if>
  143. </delete>
  144. <insert id="insert" parameterType="com.minpay.db.table.model.VmSettlementRule">
  145. <!--
  146. WARNING - @mbggenerated
  147. This element is automatically generated by MyBatis Generator, do not modify.
  148. -->
  149. insert into vm_settlement_rule (VSR_ID, VSR_CHANNEL, VSR_TYPE,
  150. VSR_PAY_TYPE, VSR_MERCHANTID, VSR_STATE,
  151. VSR_REMARKS, VSR_PARAMETER, VSR_CREATE_USER,
  152. VSR_CREATE_TIME, VSR_MODIFY_USER, VSR_MODIFY_TIME,
  153. VSR__LAST_SETTLEMENT_TIME)
  154. values (#{id,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
  155. #{payType,jdbcType=VARCHAR}, #{merchantid,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR},
  156. #{remarks,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
  157. #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR},
  158. #{LastSettlementTime,jdbcType=VARCHAR})
  159. </insert>
  160. <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmSettlementRule">
  161. <!--
  162. WARNING - @mbggenerated
  163. This element is automatically generated by MyBatis Generator, do not modify.
  164. -->
  165. insert into vm_settlement_rule
  166. <trim prefix="(" suffix=")" suffixOverrides=",">
  167. <if test="id != null">
  168. VSR_ID,
  169. </if>
  170. <if test="channel != null">
  171. VSR_CHANNEL,
  172. </if>
  173. <if test="type != null">
  174. VSR_TYPE,
  175. </if>
  176. <if test="payType != null">
  177. VSR_PAY_TYPE,
  178. </if>
  179. <if test="merchantid != null">
  180. VSR_MERCHANTID,
  181. </if>
  182. <if test="state != null">
  183. VSR_STATE,
  184. </if>
  185. <if test="remarks != null">
  186. VSR_REMARKS,
  187. </if>
  188. <if test="parameter != null">
  189. VSR_PARAMETER,
  190. </if>
  191. <if test="createUser != null">
  192. VSR_CREATE_USER,
  193. </if>
  194. <if test="createTime != null">
  195. VSR_CREATE_TIME,
  196. </if>
  197. <if test="modifyUser != null">
  198. VSR_MODIFY_USER,
  199. </if>
  200. <if test="modifyTime != null">
  201. VSR_MODIFY_TIME,
  202. </if>
  203. <if test="LastSettlementTime != null">
  204. VSR__LAST_SETTLEMENT_TIME,
  205. </if>
  206. </trim>
  207. <trim prefix="values (" suffix=")" suffixOverrides=",">
  208. <if test="id != null">
  209. #{id,jdbcType=VARCHAR},
  210. </if>
  211. <if test="channel != null">
  212. #{channel,jdbcType=VARCHAR},
  213. </if>
  214. <if test="type != null">
  215. #{type,jdbcType=VARCHAR},
  216. </if>
  217. <if test="payType != null">
  218. #{payType,jdbcType=VARCHAR},
  219. </if>
  220. <if test="merchantid != null">
  221. #{merchantid,jdbcType=VARCHAR},
  222. </if>
  223. <if test="state != null">
  224. #{state,jdbcType=VARCHAR},
  225. </if>
  226. <if test="remarks != null">
  227. #{remarks,jdbcType=VARCHAR},
  228. </if>
  229. <if test="parameter != null">
  230. #{parameter,jdbcType=VARCHAR},
  231. </if>
  232. <if test="createUser != null">
  233. #{createUser,jdbcType=VARCHAR},
  234. </if>
  235. <if test="createTime != null">
  236. #{createTime,jdbcType=VARCHAR},
  237. </if>
  238. <if test="modifyUser != null">
  239. #{modifyUser,jdbcType=VARCHAR},
  240. </if>
  241. <if test="modifyTime != null">
  242. #{modifyTime,jdbcType=VARCHAR},
  243. </if>
  244. <if test="LastSettlementTime != null">
  245. #{LastSettlementTime,jdbcType=VARCHAR},
  246. </if>
  247. </trim>
  248. </insert>
  249. <select id="countByExample" parameterType="com.minpay.db.table.model.VmSettlementRuleExample" resultType="java.lang.Integer">
  250. <!--
  251. WARNING - @mbggenerated
  252. This element is automatically generated by MyBatis Generator, do not modify.
  253. -->
  254. select count(*) from vm_settlement_rule
  255. <if test="_parameter != null">
  256. <include refid="Example_Where_Clause" />
  257. </if>
  258. </select>
  259. <update id="updateByExampleSelective" parameterType="map">
  260. <!--
  261. WARNING - @mbggenerated
  262. This element is automatically generated by MyBatis Generator, do not modify.
  263. -->
  264. update vm_settlement_rule
  265. <set>
  266. <if test="record.id != null">
  267. VSR_ID = #{record.id,jdbcType=VARCHAR},
  268. </if>
  269. <if test="record.channel != null">
  270. VSR_CHANNEL = #{record.channel,jdbcType=VARCHAR},
  271. </if>
  272. <if test="record.type != null">
  273. VSR_TYPE = #{record.type,jdbcType=VARCHAR},
  274. </if>
  275. <if test="record.payType != null">
  276. VSR_PAY_TYPE = #{record.payType,jdbcType=VARCHAR},
  277. </if>
  278. <if test="record.merchantid != null">
  279. VSR_MERCHANTID = #{record.merchantid,jdbcType=VARCHAR},
  280. </if>
  281. <if test="record.state != null">
  282. VSR_STATE = #{record.state,jdbcType=VARCHAR},
  283. </if>
  284. <if test="record.remarks != null">
  285. VSR_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  286. </if>
  287. <if test="record.parameter != null">
  288. VSR_PARAMETER = #{record.parameter,jdbcType=VARCHAR},
  289. </if>
  290. <if test="record.createUser != null">
  291. VSR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  292. </if>
  293. <if test="record.createTime != null">
  294. VSR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  295. </if>
  296. <if test="record.modifyUser != null">
  297. VSR_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  298. </if>
  299. <if test="record.modifyTime != null">
  300. VSR_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  301. </if>
  302. <if test="record.LastSettlementTime != null">
  303. VSR__LAST_SETTLEMENT_TIME = #{record.LastSettlementTime,jdbcType=VARCHAR},
  304. </if>
  305. </set>
  306. <if test="_parameter != null">
  307. <include refid="Update_By_Example_Where_Clause" />
  308. </if>
  309. </update>
  310. <update id="updateByExample" parameterType="map">
  311. <!--
  312. WARNING - @mbggenerated
  313. This element is automatically generated by MyBatis Generator, do not modify.
  314. -->
  315. update vm_settlement_rule
  316. set VSR_ID = #{record.id,jdbcType=VARCHAR},
  317. VSR_CHANNEL = #{record.channel,jdbcType=VARCHAR},
  318. VSR_TYPE = #{record.type,jdbcType=VARCHAR},
  319. VSR_PAY_TYPE = #{record.payType,jdbcType=VARCHAR},
  320. VSR_MERCHANTID = #{record.merchantid,jdbcType=VARCHAR},
  321. VSR_STATE = #{record.state,jdbcType=VARCHAR},
  322. VSR_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  323. VSR_PARAMETER = #{record.parameter,jdbcType=VARCHAR},
  324. VSR_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  325. VSR_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  326. VSR_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  327. VSR_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  328. VSR__LAST_SETTLEMENT_TIME = #{record.LastSettlementTime,jdbcType=VARCHAR}
  329. <if test="_parameter != null">
  330. <include refid="Update_By_Example_Where_Clause" />
  331. </if>
  332. </update>
  333. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmSettlementRule">
  334. <!--
  335. WARNING - @mbggenerated
  336. This element is automatically generated by MyBatis Generator, do not modify.
  337. -->
  338. update vm_settlement_rule
  339. <set>
  340. <if test="channel != null">
  341. VSR_CHANNEL = #{channel,jdbcType=VARCHAR},
  342. </if>
  343. <if test="type != null">
  344. VSR_TYPE = #{type,jdbcType=VARCHAR},
  345. </if>
  346. <if test="payType != null">
  347. VSR_PAY_TYPE = #{payType,jdbcType=VARCHAR},
  348. </if>
  349. <if test="merchantid != null">
  350. VSR_MERCHANTID = #{merchantid,jdbcType=VARCHAR},
  351. </if>
  352. <if test="state != null">
  353. VSR_STATE = #{state,jdbcType=VARCHAR},
  354. </if>
  355. <if test="remarks != null">
  356. VSR_REMARKS = #{remarks,jdbcType=VARCHAR},
  357. </if>
  358. <if test="parameter != null">
  359. VSR_PARAMETER = #{parameter,jdbcType=VARCHAR},
  360. </if>
  361. <if test="createUser != null">
  362. VSR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  363. </if>
  364. <if test="createTime != null">
  365. VSR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  366. </if>
  367. <if test="modifyUser != null">
  368. VSR_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  369. </if>
  370. <if test="modifyTime != null">
  371. VSR_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  372. </if>
  373. <if test="LastSettlementTime != null">
  374. VSR__LAST_SETTLEMENT_TIME = #{LastSettlementTime,jdbcType=VARCHAR},
  375. </if>
  376. </set>
  377. where VSR_ID = #{id,jdbcType=VARCHAR}
  378. </update>
  379. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmSettlementRule">
  380. <!--
  381. WARNING - @mbggenerated
  382. This element is automatically generated by MyBatis Generator, do not modify.
  383. -->
  384. update vm_settlement_rule
  385. set VSR_CHANNEL = #{channel,jdbcType=VARCHAR},
  386. VSR_TYPE = #{type,jdbcType=VARCHAR},
  387. VSR_PAY_TYPE = #{payType,jdbcType=VARCHAR},
  388. VSR_MERCHANTID = #{merchantid,jdbcType=VARCHAR},
  389. VSR_STATE = #{state,jdbcType=VARCHAR},
  390. VSR_REMARKS = #{remarks,jdbcType=VARCHAR},
  391. VSR_PARAMETER = #{parameter,jdbcType=VARCHAR},
  392. VSR_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  393. VSR_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  394. VSR_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  395. VSR_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  396. VSR__LAST_SETTLEMENT_TIME = #{LastSettlementTime,jdbcType=VARCHAR}
  397. where VSR_ID = #{id,jdbcType=VARCHAR}
  398. </update>
  399. </mapper>