PaymentConfigMapper.xml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  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.bluesx.erp.mapper.PaymentConfigMapper">
  4. <resultMap id="BaseResultMap" type="com.bluesx.erp.entity.PaymentConfig">
  5. <id column="id" jdbcType="VARCHAR" property="id" />
  6. <result column="data_order" jdbcType="INTEGER" property="dataOrder" />
  7. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  8. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  9. <result column="make_person" jdbcType="VARCHAR" property="makePerson" />
  10. <result column="modifier" jdbcType="VARCHAR" property="modifier" />
  11. <result column="modifier_time" jdbcType="TIMESTAMP" property="modifierTime" />
  12. <result column="locked" jdbcType="INTEGER" property="locked" />
  13. <result column="del_tag" jdbcType="INTEGER" property="delTag" />
  14. <result column="check_tag" jdbcType="INTEGER" property="checkTag" />
  15. <result column="check_status" jdbcType="VARCHAR" property="checkStatus" />
  16. <result column="check_time" jdbcType="TIMESTAMP" property="checkTime" />
  17. <result column="check_person" jdbcType="VARCHAR" property="checkPerson" />
  18. <result column="print_tag" jdbcType="INTEGER" property="printTag" />
  19. <result column="invalid_tag" jdbcType="INTEGER" property="invalidTag" />
  20. <result column="menu_id" jdbcType="VARCHAR" property="menuId" />
  21. <result column="menu_name" jdbcType="VARCHAR" property="menuName" />
  22. <result column="remarks" jdbcType="VARCHAR" property="remarks" />
  23. <result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
  24. <result column="app_id" jdbcType="VARCHAR" property="appId" />
  25. <result column="member_id" jdbcType="VARCHAR" property="memberId" />
  26. <result column="ali_pid" jdbcType="VARCHAR" property="aliPid" />
  27. <result column="store_id" jdbcType="VARCHAR" property="storeId" />
  28. <result column="agent_id" jdbcType="VARCHAR" property="agentId" />
  29. <result column="agent_name" jdbcType="VARCHAR" property="agentName" />
  30. <result column="store_type" jdbcType="INTEGER" property="storeType" />
  31. <result column="payment_type" jdbcType="INTEGER" property="paymentType" />
  32. <result column="merchant_code" jdbcType="VARCHAR" property="merchantCode" />
  33. <result column="merchant_counter_code" jdbcType="VARCHAR" property="merchantCounterCode" />
  34. <result column="the_branch_code" jdbcType="VARCHAR" property="theBranchCode" />
  35. <result column="sys_id" jdbcType="VARCHAR" property="sysId" />
  36. <result column="huifu_id" jdbcType="VARCHAR" property="huifuId" />
  37. <result column="merchant_name" jdbcType="VARCHAR" property="merchantName" />
  38. <result column="store_name" jdbcType="VARCHAR" property="storeName" />
  39. <result column="available_tag" jdbcType="INTEGER" property="availableTag" />
  40. <result column="private_key_dougong" jdbcType="VARCHAR" property="privateKeyDougong" />
  41. <result column="public_key_huifu" jdbcType="VARCHAR" property="publicKeyHuifu" />
  42. <result column="applet_id" jdbcType="VARCHAR" property="appletId" />
  43. <result column="applet_secret" jdbcType="VARCHAR" property="appletSecret" />
  44. <result column="wechat_secret" jdbcType="VARCHAR" property="wechatSecret" />
  45. <result column="dougong_product_id" jdbcType="VARCHAR" property="dougongProductId" />
  46. </resultMap>
  47. <sql id="Example_Where_Clause">
  48. <where>
  49. <foreach collection="oredCriteria" item="criteria" separator="or">
  50. <if test="criteria.valid">
  51. <trim prefix="(" prefixOverrides="and" suffix=")">
  52. <foreach collection="criteria.criteria" item="criterion">
  53. <choose>
  54. <when test="criterion.noValue">
  55. and ${criterion.condition}
  56. </when>
  57. <when test="criterion.singleValue">
  58. and ${criterion.condition} #{criterion.value}
  59. </when>
  60. <when test="criterion.betweenValue">
  61. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  62. </when>
  63. <when test="criterion.listValue">
  64. and ${criterion.condition}
  65. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  66. #{listItem}
  67. </foreach>
  68. </when>
  69. </choose>
  70. </foreach>
  71. </trim>
  72. </if>
  73. </foreach>
  74. </where>
  75. </sql>
  76. <sql id="Update_By_Example_Where_Clause">
  77. <where>
  78. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  79. <if test="criteria.valid">
  80. <trim prefix="(" prefixOverrides="and" suffix=")">
  81. <foreach collection="criteria.criteria" item="criterion">
  82. <choose>
  83. <when test="criterion.noValue">
  84. and ${criterion.condition}
  85. </when>
  86. <when test="criterion.singleValue">
  87. and ${criterion.condition} #{criterion.value}
  88. </when>
  89. <when test="criterion.betweenValue">
  90. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  91. </when>
  92. <when test="criterion.listValue">
  93. and ${criterion.condition}
  94. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  95. #{listItem}
  96. </foreach>
  97. </when>
  98. </choose>
  99. </foreach>
  100. </trim>
  101. </if>
  102. </foreach>
  103. </where>
  104. </sql>
  105. <sql id="Base_Column_List">
  106. id, data_order, create_time, update_time, make_person, modifier, modifier_time, locked,
  107. del_tag, check_tag, check_status, check_time, check_person, print_tag, invalid_tag,
  108. menu_id, menu_name, remarks, merchant_id, app_id, member_id, ali_pid, store_id, agent_id,
  109. agent_name, store_type, payment_type, merchant_code, merchant_counter_code, the_branch_code,
  110. sys_id, huifu_id, merchant_name, store_name, available_tag, private_key_dougong,
  111. public_key_huifu, applet_id, applet_secret, wechat_secret, dougong_product_id
  112. </sql>
  113. <select id="selectByExample" parameterType="com.bluesx.erp.entity.PaymentConfigExample" resultMap="BaseResultMap">
  114. select
  115. <if test="distinct">
  116. distinct
  117. </if>
  118. <include refid="Base_Column_List" />
  119. from mp_payment_config
  120. <if test="_parameter != null">
  121. <include refid="Example_Where_Clause" />
  122. </if>
  123. <if test="orderByClause != null">
  124. order by ${orderByClause}
  125. </if>
  126. </select>
  127. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  128. select
  129. <include refid="Base_Column_List" />
  130. from mp_payment_config
  131. where id = #{id,jdbcType=VARCHAR}
  132. </select>
  133. <select id="selectByHostName" parameterType="java.lang.String" resultType="string">
  134. select
  135. token
  136. from mp_payment_config
  137. where host_name LIKE CONCAT('%', #{hostName}, '%')
  138. </select>
  139. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  140. delete from mp_payment_config
  141. where id = #{id,jdbcType=VARCHAR}
  142. </delete>
  143. <delete id="deleteByExample" parameterType="com.bluesx.erp.entity.PaymentConfigExample">
  144. delete from mp_payment_config
  145. <if test="_parameter != null">
  146. <include refid="Example_Where_Clause" />
  147. </if>
  148. </delete>
  149. <insert id="insert" parameterType="com.bluesx.erp.entity.PaymentConfig">
  150. insert into mp_payment_config (id, data_order, create_time,
  151. update_time, make_person, modifier,
  152. modifier_time, locked, del_tag,
  153. check_tag, check_status, check_time,
  154. check_person, print_tag, invalid_tag,
  155. menu_id, menu_name, remarks,
  156. merchant_id, app_id, member_id,
  157. ali_pid, store_id, agent_id,
  158. agent_name, store_type, payment_type,
  159. merchant_code, merchant_counter_code, the_branch_code,
  160. sys_id, huifu_id, merchant_name,
  161. store_name, available_tag, private_key_dougong,
  162. public_key_huifu, applet_id, applet_secret,
  163. wechat_secret, dougong_product_id)
  164. values (#{id,jdbcType=VARCHAR}, #{dataOrder,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
  165. #{updateTime,jdbcType=TIMESTAMP}, #{makePerson,jdbcType=VARCHAR}, #{modifier,jdbcType=VARCHAR},
  166. #{modifierTime,jdbcType=TIMESTAMP}, #{locked,jdbcType=INTEGER}, #{delTag,jdbcType=INTEGER},
  167. #{checkTag,jdbcType=INTEGER}, #{checkStatus,jdbcType=VARCHAR}, #{checkTime,jdbcType=TIMESTAMP},
  168. #{checkPerson,jdbcType=VARCHAR}, #{printTag,jdbcType=INTEGER}, #{invalidTag,jdbcType=INTEGER},
  169. #{menuId,jdbcType=VARCHAR}, #{menuName,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR},
  170. #{merchantId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR},
  171. #{aliPid,jdbcType=VARCHAR}, #{storeId,jdbcType=VARCHAR}, #{agentId,jdbcType=VARCHAR},
  172. #{agentName,jdbcType=VARCHAR}, #{storeType,jdbcType=INTEGER}, #{paymentType,jdbcType=INTEGER},
  173. #{merchantCode,jdbcType=VARCHAR}, #{merchantCounterCode,jdbcType=VARCHAR}, #{theBranchCode,jdbcType=VARCHAR},
  174. #{sysId,jdbcType=VARCHAR}, #{huifuId,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR},
  175. #{storeName,jdbcType=VARCHAR}, #{availableTag,jdbcType=INTEGER}, #{privateKeyDougong,jdbcType=VARCHAR},
  176. #{publicKeyHuifu,jdbcType=VARCHAR}, #{appletId,jdbcType=VARCHAR}, #{appletSecret,jdbcType=VARCHAR},
  177. #{wechatSecret,jdbcType=VARCHAR}, #{dougongProductId,jdbcType=VARCHAR})
  178. </insert>
  179. <insert id="insertSelective" parameterType="com.bluesx.erp.entity.PaymentConfig">
  180. insert into mp_payment_config
  181. <trim prefix="(" suffix=")" suffixOverrides=",">
  182. <if test="id != null">
  183. id,
  184. </if>
  185. <if test="dataOrder != null">
  186. data_order,
  187. </if>
  188. <if test="createTime != null">
  189. create_time,
  190. </if>
  191. <if test="updateTime != null">
  192. update_time,
  193. </if>
  194. <if test="makePerson != null">
  195. make_person,
  196. </if>
  197. <if test="modifier != null">
  198. modifier,
  199. </if>
  200. <if test="modifierTime != null">
  201. modifier_time,
  202. </if>
  203. <if test="locked != null">
  204. locked,
  205. </if>
  206. <if test="delTag != null">
  207. del_tag,
  208. </if>
  209. <if test="checkTag != null">
  210. check_tag,
  211. </if>
  212. <if test="checkStatus != null">
  213. check_status,
  214. </if>
  215. <if test="checkTime != null">
  216. check_time,
  217. </if>
  218. <if test="checkPerson != null">
  219. check_person,
  220. </if>
  221. <if test="printTag != null">
  222. print_tag,
  223. </if>
  224. <if test="invalidTag != null">
  225. invalid_tag,
  226. </if>
  227. <if test="menuId != null">
  228. menu_id,
  229. </if>
  230. <if test="menuName != null">
  231. menu_name,
  232. </if>
  233. <if test="remarks != null">
  234. remarks,
  235. </if>
  236. <if test="merchantId != null">
  237. merchant_id,
  238. </if>
  239. <if test="appId != null">
  240. app_id,
  241. </if>
  242. <if test="memberId != null">
  243. member_id,
  244. </if>
  245. <if test="aliPid != null">
  246. ali_pid,
  247. </if>
  248. <if test="storeId != null">
  249. store_id,
  250. </if>
  251. <if test="agentId != null">
  252. agent_id,
  253. </if>
  254. <if test="agentName != null">
  255. agent_name,
  256. </if>
  257. <if test="storeType != null">
  258. store_type,
  259. </if>
  260. <if test="paymentType != null">
  261. payment_type,
  262. </if>
  263. <if test="merchantCode != null">
  264. merchant_code,
  265. </if>
  266. <if test="merchantCounterCode != null">
  267. merchant_counter_code,
  268. </if>
  269. <if test="theBranchCode != null">
  270. the_branch_code,
  271. </if>
  272. <if test="sysId != null">
  273. sys_id,
  274. </if>
  275. <if test="huifuId != null">
  276. huifu_id,
  277. </if>
  278. <if test="merchantName != null">
  279. merchant_name,
  280. </if>
  281. <if test="storeName != null">
  282. store_name,
  283. </if>
  284. <if test="availableTag != null">
  285. available_tag,
  286. </if>
  287. <if test="privateKeyDougong != null">
  288. private_key_dougong,
  289. </if>
  290. <if test="publicKeyHuifu != null">
  291. public_key_huifu,
  292. </if>
  293. <if test="appletId != null">
  294. applet_id,
  295. </if>
  296. <if test="appletSecret != null">
  297. applet_secret,
  298. </if>
  299. <if test="wechatSecret != null">
  300. wechat_secret,
  301. </if>
  302. <if test="dougongProductId != null">
  303. dougong_product_id,
  304. </if>
  305. </trim>
  306. <trim prefix="values (" suffix=")" suffixOverrides=",">
  307. <if test="id != null">
  308. #{id,jdbcType=VARCHAR},
  309. </if>
  310. <if test="dataOrder != null">
  311. #{dataOrder,jdbcType=INTEGER},
  312. </if>
  313. <if test="createTime != null">
  314. #{createTime,jdbcType=TIMESTAMP},
  315. </if>
  316. <if test="updateTime != null">
  317. #{updateTime,jdbcType=TIMESTAMP},
  318. </if>
  319. <if test="makePerson != null">
  320. #{makePerson,jdbcType=VARCHAR},
  321. </if>
  322. <if test="modifier != null">
  323. #{modifier,jdbcType=VARCHAR},
  324. </if>
  325. <if test="modifierTime != null">
  326. #{modifierTime,jdbcType=TIMESTAMP},
  327. </if>
  328. <if test="locked != null">
  329. #{locked,jdbcType=INTEGER},
  330. </if>
  331. <if test="delTag != null">
  332. #{delTag,jdbcType=INTEGER},
  333. </if>
  334. <if test="checkTag != null">
  335. #{checkTag,jdbcType=INTEGER},
  336. </if>
  337. <if test="checkStatus != null">
  338. #{checkStatus,jdbcType=VARCHAR},
  339. </if>
  340. <if test="checkTime != null">
  341. #{checkTime,jdbcType=TIMESTAMP},
  342. </if>
  343. <if test="checkPerson != null">
  344. #{checkPerson,jdbcType=VARCHAR},
  345. </if>
  346. <if test="printTag != null">
  347. #{printTag,jdbcType=INTEGER},
  348. </if>
  349. <if test="invalidTag != null">
  350. #{invalidTag,jdbcType=INTEGER},
  351. </if>
  352. <if test="menuId != null">
  353. #{menuId,jdbcType=VARCHAR},
  354. </if>
  355. <if test="menuName != null">
  356. #{menuName,jdbcType=VARCHAR},
  357. </if>
  358. <if test="remarks != null">
  359. #{remarks,jdbcType=VARCHAR},
  360. </if>
  361. <if test="merchantId != null">
  362. #{merchantId,jdbcType=VARCHAR},
  363. </if>
  364. <if test="appId != null">
  365. #{appId,jdbcType=VARCHAR},
  366. </if>
  367. <if test="memberId != null">
  368. #{memberId,jdbcType=VARCHAR},
  369. </if>
  370. <if test="aliPid != null">
  371. #{aliPid,jdbcType=VARCHAR},
  372. </if>
  373. <if test="storeId != null">
  374. #{storeId,jdbcType=VARCHAR},
  375. </if>
  376. <if test="agentId != null">
  377. #{agentId,jdbcType=VARCHAR},
  378. </if>
  379. <if test="agentName != null">
  380. #{agentName,jdbcType=VARCHAR},
  381. </if>
  382. <if test="storeType != null">
  383. #{storeType,jdbcType=INTEGER},
  384. </if>
  385. <if test="paymentType != null">
  386. #{paymentType,jdbcType=INTEGER},
  387. </if>
  388. <if test="merchantCode != null">
  389. #{merchantCode,jdbcType=VARCHAR},
  390. </if>
  391. <if test="merchantCounterCode != null">
  392. #{merchantCounterCode,jdbcType=VARCHAR},
  393. </if>
  394. <if test="theBranchCode != null">
  395. #{theBranchCode,jdbcType=VARCHAR},
  396. </if>
  397. <if test="sysId != null">
  398. #{sysId,jdbcType=VARCHAR},
  399. </if>
  400. <if test="huifuId != null">
  401. #{huifuId,jdbcType=VARCHAR},
  402. </if>
  403. <if test="merchantName != null">
  404. #{merchantName,jdbcType=VARCHAR},
  405. </if>
  406. <if test="storeName != null">
  407. #{storeName,jdbcType=VARCHAR},
  408. </if>
  409. <if test="availableTag != null">
  410. #{availableTag,jdbcType=INTEGER},
  411. </if>
  412. <if test="privateKeyDougong != null">
  413. #{privateKeyDougong,jdbcType=VARCHAR},
  414. </if>
  415. <if test="publicKeyHuifu != null">
  416. #{publicKeyHuifu,jdbcType=VARCHAR},
  417. </if>
  418. <if test="appletId != null">
  419. #{appletId,jdbcType=VARCHAR},
  420. </if>
  421. <if test="appletSecret != null">
  422. #{appletSecret,jdbcType=VARCHAR},
  423. </if>
  424. <if test="wechatSecret != null">
  425. #{wechatSecret,jdbcType=VARCHAR},
  426. </if>
  427. <if test="dougongProductId != null">
  428. #{dougongProductId,jdbcType=VARCHAR},
  429. </if>
  430. </trim>
  431. </insert>
  432. <select id="countByExample" parameterType="com.bluesx.erp.entity.PaymentConfigExample" resultType="java.lang.Long">
  433. select count(*) from mp_payment_config
  434. <if test="_parameter != null">
  435. <include refid="Example_Where_Clause" />
  436. </if>
  437. </select>
  438. <update id="updateByExampleSelective" parameterType="map">
  439. update mp_payment_config
  440. <set>
  441. <if test="record.id != null">
  442. id = #{record.id,jdbcType=VARCHAR},
  443. </if>
  444. <if test="record.dataOrder != null">
  445. data_order = #{record.dataOrder,jdbcType=INTEGER},
  446. </if>
  447. <if test="record.createTime != null">
  448. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  449. </if>
  450. <if test="record.updateTime != null">
  451. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  452. </if>
  453. <if test="record.makePerson != null">
  454. make_person = #{record.makePerson,jdbcType=VARCHAR},
  455. </if>
  456. <if test="record.modifier != null">
  457. modifier = #{record.modifier,jdbcType=VARCHAR},
  458. </if>
  459. <if test="record.modifierTime != null">
  460. modifier_time = #{record.modifierTime,jdbcType=TIMESTAMP},
  461. </if>
  462. <if test="record.locked != null">
  463. locked = #{record.locked,jdbcType=INTEGER},
  464. </if>
  465. <if test="record.delTag != null">
  466. del_tag = #{record.delTag,jdbcType=INTEGER},
  467. </if>
  468. <if test="record.checkTag != null">
  469. check_tag = #{record.checkTag,jdbcType=INTEGER},
  470. </if>
  471. <if test="record.checkStatus != null">
  472. check_status = #{record.checkStatus,jdbcType=VARCHAR},
  473. </if>
  474. <if test="record.checkTime != null">
  475. check_time = #{record.checkTime,jdbcType=TIMESTAMP},
  476. </if>
  477. <if test="record.checkPerson != null">
  478. check_person = #{record.checkPerson,jdbcType=VARCHAR},
  479. </if>
  480. <if test="record.printTag != null">
  481. print_tag = #{record.printTag,jdbcType=INTEGER},
  482. </if>
  483. <if test="record.invalidTag != null">
  484. invalid_tag = #{record.invalidTag,jdbcType=INTEGER},
  485. </if>
  486. <if test="record.menuId != null">
  487. menu_id = #{record.menuId,jdbcType=VARCHAR},
  488. </if>
  489. <if test="record.menuName != null">
  490. menu_name = #{record.menuName,jdbcType=VARCHAR},
  491. </if>
  492. <if test="record.remarks != null">
  493. remarks = #{record.remarks,jdbcType=VARCHAR},
  494. </if>
  495. <if test="record.merchantId != null">
  496. merchant_id = #{record.merchantId,jdbcType=VARCHAR},
  497. </if>
  498. <if test="record.appId != null">
  499. app_id = #{record.appId,jdbcType=VARCHAR},
  500. </if>
  501. <if test="record.memberId != null">
  502. member_id = #{record.memberId,jdbcType=VARCHAR},
  503. </if>
  504. <if test="record.aliPid != null">
  505. ali_pid = #{record.aliPid,jdbcType=VARCHAR},
  506. </if>
  507. <if test="record.storeId != null">
  508. store_id = #{record.storeId,jdbcType=VARCHAR},
  509. </if>
  510. <if test="record.agentId != null">
  511. agent_id = #{record.agentId,jdbcType=VARCHAR},
  512. </if>
  513. <if test="record.agentName != null">
  514. agent_name = #{record.agentName,jdbcType=VARCHAR},
  515. </if>
  516. <if test="record.storeType != null">
  517. store_type = #{record.storeType,jdbcType=INTEGER},
  518. </if>
  519. <if test="record.paymentType != null">
  520. payment_type = #{record.paymentType,jdbcType=INTEGER},
  521. </if>
  522. <if test="record.merchantCode != null">
  523. merchant_code = #{record.merchantCode,jdbcType=VARCHAR},
  524. </if>
  525. <if test="record.merchantCounterCode != null">
  526. merchant_counter_code = #{record.merchantCounterCode,jdbcType=VARCHAR},
  527. </if>
  528. <if test="record.theBranchCode != null">
  529. the_branch_code = #{record.theBranchCode,jdbcType=VARCHAR},
  530. </if>
  531. <if test="record.sysId != null">
  532. sys_id = #{record.sysId,jdbcType=VARCHAR},
  533. </if>
  534. <if test="record.huifuId != null">
  535. huifu_id = #{record.huifuId,jdbcType=VARCHAR},
  536. </if>
  537. <if test="record.merchantName != null">
  538. merchant_name = #{record.merchantName,jdbcType=VARCHAR},
  539. </if>
  540. <if test="record.storeName != null">
  541. store_name = #{record.storeName,jdbcType=VARCHAR},
  542. </if>
  543. <if test="record.availableTag != null">
  544. available_tag = #{record.availableTag,jdbcType=INTEGER},
  545. </if>
  546. <if test="record.privateKeyDougong != null">
  547. private_key_dougong = #{record.privateKeyDougong,jdbcType=VARCHAR},
  548. </if>
  549. <if test="record.publicKeyHuifu != null">
  550. public_key_huifu = #{record.publicKeyHuifu,jdbcType=VARCHAR},
  551. </if>
  552. <if test="record.appletId != null">
  553. applet_id = #{record.appletId,jdbcType=VARCHAR},
  554. </if>
  555. <if test="record.appletSecret != null">
  556. applet_secret = #{record.appletSecret,jdbcType=VARCHAR},
  557. </if>
  558. <if test="record.wechatSecret != null">
  559. wechat_secret = #{record.wechatSecret,jdbcType=VARCHAR},
  560. </if>
  561. <if test="record.dougongProductId != null">
  562. dougong_product_id = #{record.dougongProductId,jdbcType=VARCHAR},
  563. </if>
  564. </set>
  565. <if test="_parameter != null">
  566. <include refid="Update_By_Example_Where_Clause" />
  567. </if>
  568. </update>
  569. <update id="updateByExample" parameterType="map">
  570. update mp_payment_config
  571. set id = #{record.id,jdbcType=VARCHAR},
  572. data_order = #{record.dataOrder,jdbcType=INTEGER},
  573. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  574. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  575. make_person = #{record.makePerson,jdbcType=VARCHAR},
  576. modifier = #{record.modifier,jdbcType=VARCHAR},
  577. modifier_time = #{record.modifierTime,jdbcType=TIMESTAMP},
  578. locked = #{record.locked,jdbcType=INTEGER},
  579. del_tag = #{record.delTag,jdbcType=INTEGER},
  580. check_tag = #{record.checkTag,jdbcType=INTEGER},
  581. check_status = #{record.checkStatus,jdbcType=VARCHAR},
  582. check_time = #{record.checkTime,jdbcType=TIMESTAMP},
  583. check_person = #{record.checkPerson,jdbcType=VARCHAR},
  584. print_tag = #{record.printTag,jdbcType=INTEGER},
  585. invalid_tag = #{record.invalidTag,jdbcType=INTEGER},
  586. menu_id = #{record.menuId,jdbcType=VARCHAR},
  587. menu_name = #{record.menuName,jdbcType=VARCHAR},
  588. remarks = #{record.remarks,jdbcType=VARCHAR},
  589. merchant_id = #{record.merchantId,jdbcType=VARCHAR},
  590. app_id = #{record.appId,jdbcType=VARCHAR},
  591. member_id = #{record.memberId,jdbcType=VARCHAR},
  592. ali_pid = #{record.aliPid,jdbcType=VARCHAR},
  593. store_id = #{record.storeId,jdbcType=VARCHAR},
  594. agent_id = #{record.agentId,jdbcType=VARCHAR},
  595. agent_name = #{record.agentName,jdbcType=VARCHAR},
  596. store_type = #{record.storeType,jdbcType=INTEGER},
  597. payment_type = #{record.paymentType,jdbcType=INTEGER},
  598. merchant_code = #{record.merchantCode,jdbcType=VARCHAR},
  599. merchant_counter_code = #{record.merchantCounterCode,jdbcType=VARCHAR},
  600. the_branch_code = #{record.theBranchCode,jdbcType=VARCHAR},
  601. sys_id = #{record.sysId,jdbcType=VARCHAR},
  602. huifu_id = #{record.huifuId,jdbcType=VARCHAR},
  603. merchant_name = #{record.merchantName,jdbcType=VARCHAR},
  604. store_name = #{record.storeName,jdbcType=VARCHAR},
  605. available_tag = #{record.availableTag,jdbcType=INTEGER},
  606. private_key_dougong = #{record.privateKeyDougong,jdbcType=VARCHAR},
  607. public_key_huifu = #{record.publicKeyHuifu,jdbcType=VARCHAR},
  608. applet_id = #{record.appletId,jdbcType=VARCHAR},
  609. applet_secret = #{record.appletSecret,jdbcType=VARCHAR},
  610. wechat_secret = #{record.wechatSecret,jdbcType=VARCHAR},
  611. dougong_product_id = #{record.dougongProductId,jdbcType=VARCHAR}
  612. <if test="_parameter != null">
  613. <include refid="Update_By_Example_Where_Clause" />
  614. </if>
  615. </update>
  616. <update id="updateByPrimaryKeySelective" parameterType="com.bluesx.erp.entity.PaymentConfig">
  617. update mp_payment_config
  618. <set>
  619. <if test="dataOrder != null">
  620. data_order = #{dataOrder,jdbcType=INTEGER},
  621. </if>
  622. <if test="createTime != null">
  623. create_time = #{createTime,jdbcType=TIMESTAMP},
  624. </if>
  625. <if test="updateTime != null">
  626. update_time = #{updateTime,jdbcType=TIMESTAMP},
  627. </if>
  628. <if test="makePerson != null">
  629. make_person = #{makePerson,jdbcType=VARCHAR},
  630. </if>
  631. <if test="modifier != null">
  632. modifier = #{modifier,jdbcType=VARCHAR},
  633. </if>
  634. <if test="modifierTime != null">
  635. modifier_time = #{modifierTime,jdbcType=TIMESTAMP},
  636. </if>
  637. <if test="locked != null">
  638. locked = #{locked,jdbcType=INTEGER},
  639. </if>
  640. <if test="delTag != null">
  641. del_tag = #{delTag,jdbcType=INTEGER},
  642. </if>
  643. <if test="checkTag != null">
  644. check_tag = #{checkTag,jdbcType=INTEGER},
  645. </if>
  646. <if test="checkStatus != null">
  647. check_status = #{checkStatus,jdbcType=VARCHAR},
  648. </if>
  649. <if test="checkTime != null">
  650. check_time = #{checkTime,jdbcType=TIMESTAMP},
  651. </if>
  652. <if test="checkPerson != null">
  653. check_person = #{checkPerson,jdbcType=VARCHAR},
  654. </if>
  655. <if test="printTag != null">
  656. print_tag = #{printTag,jdbcType=INTEGER},
  657. </if>
  658. <if test="invalidTag != null">
  659. invalid_tag = #{invalidTag,jdbcType=INTEGER},
  660. </if>
  661. <if test="menuId != null">
  662. menu_id = #{menuId,jdbcType=VARCHAR},
  663. </if>
  664. <if test="menuName != null">
  665. menu_name = #{menuName,jdbcType=VARCHAR},
  666. </if>
  667. <if test="remarks != null">
  668. remarks = #{remarks,jdbcType=VARCHAR},
  669. </if>
  670. <if test="merchantId != null">
  671. merchant_id = #{merchantId,jdbcType=VARCHAR},
  672. </if>
  673. <if test="appId != null">
  674. app_id = #{appId,jdbcType=VARCHAR},
  675. </if>
  676. <if test="memberId != null">
  677. member_id = #{memberId,jdbcType=VARCHAR},
  678. </if>
  679. <if test="aliPid != null">
  680. ali_pid = #{aliPid,jdbcType=VARCHAR},
  681. </if>
  682. <if test="storeId != null">
  683. store_id = #{storeId,jdbcType=VARCHAR},
  684. </if>
  685. <if test="agentId != null">
  686. agent_id = #{agentId,jdbcType=VARCHAR},
  687. </if>
  688. <if test="agentName != null">
  689. agent_name = #{agentName,jdbcType=VARCHAR},
  690. </if>
  691. <if test="storeType != null">
  692. store_type = #{storeType,jdbcType=INTEGER},
  693. </if>
  694. <if test="paymentType != null">
  695. payment_type = #{paymentType,jdbcType=INTEGER},
  696. </if>
  697. <if test="merchantCode != null">
  698. merchant_code = #{merchantCode,jdbcType=VARCHAR},
  699. </if>
  700. <if test="merchantCounterCode != null">
  701. merchant_counter_code = #{merchantCounterCode,jdbcType=VARCHAR},
  702. </if>
  703. <if test="theBranchCode != null">
  704. the_branch_code = #{theBranchCode,jdbcType=VARCHAR},
  705. </if>
  706. <if test="sysId != null">
  707. sys_id = #{sysId,jdbcType=VARCHAR},
  708. </if>
  709. <if test="huifuId != null">
  710. huifu_id = #{huifuId,jdbcType=VARCHAR},
  711. </if>
  712. <if test="merchantName != null">
  713. merchant_name = #{merchantName,jdbcType=VARCHAR},
  714. </if>
  715. <if test="storeName != null">
  716. store_name = #{storeName,jdbcType=VARCHAR},
  717. </if>
  718. <if test="availableTag != null">
  719. available_tag = #{availableTag,jdbcType=INTEGER},
  720. </if>
  721. <if test="privateKeyDougong != null">
  722. private_key_dougong = #{privateKeyDougong,jdbcType=VARCHAR},
  723. </if>
  724. <if test="publicKeyHuifu != null">
  725. public_key_huifu = #{publicKeyHuifu,jdbcType=VARCHAR},
  726. </if>
  727. <if test="appletId != null">
  728. applet_id = #{appletId,jdbcType=VARCHAR},
  729. </if>
  730. <if test="appletSecret != null">
  731. applet_secret = #{appletSecret,jdbcType=VARCHAR},
  732. </if>
  733. <if test="wechatSecret != null">
  734. wechat_secret = #{wechatSecret,jdbcType=VARCHAR},
  735. </if>
  736. <if test="dougongProductId != null">
  737. dougong_product_id = #{dougongProductId,jdbcType=VARCHAR},
  738. </if>
  739. </set>
  740. where id = #{id,jdbcType=VARCHAR}
  741. </update>
  742. <update id="updateByPrimaryKey" parameterType="com.bluesx.erp.entity.PaymentConfig">
  743. update mp_payment_config
  744. set data_order = #{dataOrder,jdbcType=INTEGER},
  745. create_time = #{createTime,jdbcType=TIMESTAMP},
  746. update_time = #{updateTime,jdbcType=TIMESTAMP},
  747. make_person = #{makePerson,jdbcType=VARCHAR},
  748. modifier = #{modifier,jdbcType=VARCHAR},
  749. modifier_time = #{modifierTime,jdbcType=TIMESTAMP},
  750. locked = #{locked,jdbcType=INTEGER},
  751. del_tag = #{delTag,jdbcType=INTEGER},
  752. check_tag = #{checkTag,jdbcType=INTEGER},
  753. check_status = #{checkStatus,jdbcType=VARCHAR},
  754. check_time = #{checkTime,jdbcType=TIMESTAMP},
  755. check_person = #{checkPerson,jdbcType=VARCHAR},
  756. print_tag = #{printTag,jdbcType=INTEGER},
  757. invalid_tag = #{invalidTag,jdbcType=INTEGER},
  758. menu_id = #{menuId,jdbcType=VARCHAR},
  759. menu_name = #{menuName,jdbcType=VARCHAR},
  760. remarks = #{remarks,jdbcType=VARCHAR},
  761. merchant_id = #{merchantId,jdbcType=VARCHAR},
  762. app_id = #{appId,jdbcType=VARCHAR},
  763. member_id = #{memberId,jdbcType=VARCHAR},
  764. ali_pid = #{aliPid,jdbcType=VARCHAR},
  765. store_id = #{storeId,jdbcType=VARCHAR},
  766. agent_id = #{agentId,jdbcType=VARCHAR},
  767. agent_name = #{agentName,jdbcType=VARCHAR},
  768. store_type = #{storeType,jdbcType=INTEGER},
  769. payment_type = #{paymentType,jdbcType=INTEGER},
  770. merchant_code = #{merchantCode,jdbcType=VARCHAR},
  771. merchant_counter_code = #{merchantCounterCode,jdbcType=VARCHAR},
  772. the_branch_code = #{theBranchCode,jdbcType=VARCHAR},
  773. sys_id = #{sysId,jdbcType=VARCHAR},
  774. huifu_id = #{huifuId,jdbcType=VARCHAR},
  775. merchant_name = #{merchantName,jdbcType=VARCHAR},
  776. store_name = #{storeName,jdbcType=VARCHAR},
  777. available_tag = #{availableTag,jdbcType=INTEGER},
  778. private_key_dougong = #{privateKeyDougong,jdbcType=VARCHAR},
  779. public_key_huifu = #{publicKeyHuifu,jdbcType=VARCHAR},
  780. applet_id = #{appletId,jdbcType=VARCHAR},
  781. applet_secret = #{appletSecret,jdbcType=VARCHAR},
  782. wechat_secret = #{wechatSecret,jdbcType=VARCHAR},
  783. dougong_product_id = #{dougongProductId,jdbcType=VARCHAR}
  784. where id = #{id,jdbcType=VARCHAR}
  785. </update>
  786. </mapper>