PaybalanceMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  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.usoftchina.saas.money.mapper.PaybalanceMapper">
  4. <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Paybalance">
  5. <id column="pb_id" jdbcType="INTEGER" property="pb_id" />
  6. <result column="pb_code" jdbcType="VARCHAR" property="pb_code" />
  7. <result column="pb_kind" jdbcType="VARCHAR" property="pb_kind" />
  8. <result column="pb_date" jdbcType="TIMESTAMP" property="pb_date" />
  9. <result column="pb_vendid" jdbcType="INTEGER" property="pb_vendid" />
  10. <result column="pb_vendcode" jdbcType="VARCHAR" property="pb_vendcode" />
  11. <result column="pb_vendname" jdbcType="VARCHAR" property="pb_vendname" />
  12. <result column="pb_manname" jdbcType="VARCHAR" property="pb_manname" />
  13. <result column="pb_pdamount" jdbcType="DOUBLE" property="pb_pdamount" />
  14. <result column="pb_pbdamount" jdbcType="DOUBLE" property="pb_pbdamount" />
  15. <result column="pb_preamount" jdbcType="DOUBLE" property="pb_preamount" />
  16. <result column="pb_discounts" jdbcType="DOUBLE" property="pb_discounts" />
  17. <result column="pb_havebalance" jdbcType="DOUBLE" property="pb_havebalance" />
  18. <result column="pb_recorderid" jdbcType="INTEGER" property="pb_recorderid" />
  19. <result column="pb_recorder" jdbcType="VARCHAR" property="pb_recorder" />
  20. <result column="pb_recorddate" jdbcType="TIMESTAMP" property="pb_recorddate" />
  21. <result column="pb_status" jdbcType="INTEGER" property="pb_status" />
  22. <result column="pb_statuscode" jdbcType="DECIMAL" property="pb_statuscode" />
  23. <result column="pb_remark" jdbcType="VARCHAR" property="pb_remark" />
  24. <result column="companyid" jdbcType="INTEGER" property="companyid" />
  25. <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
  26. <result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
  27. <result column="pb_text1" jdbcType="VARCHAR" property="pb_text1" />
  28. <result column="pb_text2" jdbcType="VARCHAR" property="pb_text2" />
  29. <result column="pb_text3" jdbcType="VARCHAR" property="pb_text3" />
  30. <result column="pb_text4" jdbcType="VARCHAR" property="pb_text4" />
  31. <result column="pb_text5" jdbcType="VARCHAR" property="pb_text5" />
  32. </resultMap>
  33. <sql id="Example_Where_Clause">
  34. <where>
  35. <foreach collection="oredCriteria" item="criteria" separator="or">
  36. <if test="criteria.valid">
  37. <trim prefix="(" prefixOverrides="and" suffix=")">
  38. <foreach collection="criteria.criteria" item="criterion">
  39. <choose>
  40. <when test="criterion.noValue">
  41. and ${criterion.condition}
  42. </when>
  43. <when test="criterion.singleValue">
  44. and ${criterion.condition} #{criterion.value}
  45. </when>
  46. <when test="criterion.betweenValue">
  47. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  48. </when>
  49. <when test="criterion.listValue">
  50. and ${criterion.condition}
  51. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  52. #{listItem}
  53. </foreach>
  54. </when>
  55. </choose>
  56. </foreach>
  57. </trim>
  58. </if>
  59. </foreach>
  60. </where>
  61. </sql>
  62. <sql id="Update_By_Example_Where_Clause">
  63. <where>
  64. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  65. <if test="criteria.valid">
  66. <trim prefix="(" prefixOverrides="and" suffix=")">
  67. <foreach collection="criteria.criteria" item="criterion">
  68. <choose>
  69. <when test="criterion.noValue">
  70. and ${criterion.condition}
  71. </when>
  72. <when test="criterion.singleValue">
  73. and ${criterion.condition} #{criterion.value}
  74. </when>
  75. <when test="criterion.betweenValue">
  76. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  77. </when>
  78. <when test="criterion.listValue">
  79. and ${criterion.condition}
  80. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  81. #{listItem}
  82. </foreach>
  83. </when>
  84. </choose>
  85. </foreach>
  86. </trim>
  87. </if>
  88. </foreach>
  89. </where>
  90. </sql>
  91. <sql id="Base_Column_List">
  92. pb_id, pb_code, pb_kind, pb_date, pb_vendid, pb_vendcode, pb_vendname, pb_manname,
  93. pb_pdamount, pb_pbdamount, pb_preamount, pb_discounts, pb_havebalance, pb_recorderid,
  94. pb_recorder, pb_recorddate, pb_status, pb_statuscode, pb_remark, companyid, updaterId,
  95. updatedate, pb_text1, pb_text2, pb_text3, pb_text4, pb_text5
  96. </sql>
  97. <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.PaybalanceExample" resultMap="BaseResultMap">
  98. select
  99. <if test="distinct">
  100. distinct
  101. </if>
  102. <include refid="Base_Column_List" />
  103. from paybalance
  104. <if test="_parameter != null">
  105. <include refid="Example_Where_Clause" />
  106. </if>
  107. <if test="orderByClause != null">
  108. order by ${orderByClause}
  109. </if>
  110. </select>
  111. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  112. select
  113. <include refid="Base_Column_List" />
  114. from paybalance
  115. where pb_id = #{pb_id,jdbcType=INTEGER}
  116. </select>
  117. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  118. delete from paybalance
  119. where pb_id = #{pb_id,jdbcType=INTEGER}
  120. </delete>
  121. <delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.PaybalanceExample">
  122. delete from paybalance
  123. <if test="_parameter != null">
  124. <include refid="Example_Where_Clause" />
  125. </if>
  126. </delete>
  127. <insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalance">
  128. insert into paybalance (pb_id, pb_code, pb_kind,
  129. pb_date, pb_vendid, pb_vendcode,
  130. pb_vendname, pb_manname, pb_pdamount,
  131. pb_pbdamount, pb_preamount, pb_discounts,
  132. pb_havebalance, pb_recorderid, pb_recorder,
  133. pb_recorddate, pb_status, pb_statuscode,
  134. pb_remark, companyid, updaterId,
  135. updatedate, pb_text1, pb_text2,
  136. pb_text3, pb_text4, pb_text5
  137. )
  138. values (#{pb_id,jdbcType=INTEGER}, #{pb_code,jdbcType=VARCHAR}, #{pb_kind,jdbcType=VARCHAR},
  139. #{pb_date,jdbcType=TIMESTAMP}, #{pb_vendid,jdbcType=INTEGER}, #{pb_vendcode,jdbcType=VARCHAR},
  140. #{pb_vendname,jdbcType=VARCHAR}, #{pb_manname,jdbcType=VARCHAR}, #{pb_pdamount,jdbcType=DOUBLE},
  141. #{pb_pbdamount,jdbcType=DOUBLE}, #{pb_preamount,jdbcType=DOUBLE}, #{pb_discounts,jdbcType=DOUBLE},
  142. #{pb_havebalance,jdbcType=DOUBLE}, #{pb_recorderid,jdbcType=INTEGER}, #{pb_recorder,jdbcType=VARCHAR},
  143. #{pb_recorddate,jdbcType=TIMESTAMP}, #{pb_status,jdbcType=INTEGER}, #{pb_statuscode,jdbcType=DECIMAL},
  144. #{pb_remark,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
  145. #{updatedate,jdbcType=TIMESTAMP}, #{pb_text1,jdbcType=VARCHAR}, #{pb_text2,jdbcType=VARCHAR},
  146. #{pb_text3,jdbcType=VARCHAR}, #{pb_text4,jdbcType=VARCHAR}, #{pb_text5,jdbcType=VARCHAR}
  147. )
  148. </insert>
  149. <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Paybalance">
  150. insert into paybalance
  151. <trim prefix="(" suffix=")" suffixOverrides=",">
  152. <if test="pb_id != null">
  153. pb_id,
  154. </if>
  155. <if test="pb_code != null">
  156. pb_code,
  157. </if>
  158. <if test="pb_kind != null">
  159. pb_kind,
  160. </if>
  161. <if test="pb_date != null">
  162. pb_date,
  163. </if>
  164. <if test="pb_vendid != null">
  165. pb_vendid,
  166. </if>
  167. <if test="pb_vendcode != null">
  168. pb_vendcode,
  169. </if>
  170. <if test="pb_vendname != null">
  171. pb_vendname,
  172. </if>
  173. <if test="pb_manname != null">
  174. pb_manname,
  175. </if>
  176. <if test="pb_pdamount != null">
  177. pb_pdamount,
  178. </if>
  179. <if test="pb_pbdamount != null">
  180. pb_pbdamount,
  181. </if>
  182. <if test="pb_preamount != null">
  183. pb_preamount,
  184. </if>
  185. <if test="pb_discounts != null">
  186. pb_discounts,
  187. </if>
  188. <if test="pb_havebalance != null">
  189. pb_havebalance,
  190. </if>
  191. <if test="pb_recorderid != null">
  192. pb_recorderid,
  193. </if>
  194. <if test="pb_recorder != null">
  195. pb_recorder,
  196. </if>
  197. <if test="pb_recorddate != null">
  198. pb_recorddate,
  199. </if>
  200. <if test="pb_status != null">
  201. pb_status,
  202. </if>
  203. <if test="pb_statuscode != null">
  204. pb_statuscode,
  205. </if>
  206. <if test="pb_remark != null">
  207. pb_remark,
  208. </if>
  209. <if test="companyid != null">
  210. companyid,
  211. </if>
  212. <if test="updaterId != null">
  213. updaterId,
  214. </if>
  215. <if test="updatedate != null">
  216. updatedate,
  217. </if>
  218. <if test="pb_text1 != null">
  219. pb_text1,
  220. </if>
  221. <if test="pb_text2 != null">
  222. pb_text2,
  223. </if>
  224. <if test="pb_text3 != null">
  225. pb_text3,
  226. </if>
  227. <if test="pb_text4 != null">
  228. pb_text4,
  229. </if>
  230. <if test="pb_text5 != null">
  231. pb_text5,
  232. </if>
  233. </trim>
  234. <trim prefix="values (" suffix=")" suffixOverrides=",">
  235. <if test="pb_id != null">
  236. #{pb_id,jdbcType=INTEGER},
  237. </if>
  238. <if test="pb_code != null">
  239. #{pb_code,jdbcType=VARCHAR},
  240. </if>
  241. <if test="pb_kind != null">
  242. #{pb_kind,jdbcType=VARCHAR},
  243. </if>
  244. <if test="pb_date != null">
  245. #{pb_date,jdbcType=TIMESTAMP},
  246. </if>
  247. <if test="pb_vendid != null">
  248. #{pb_vendid,jdbcType=INTEGER},
  249. </if>
  250. <if test="pb_vendcode != null">
  251. #{pb_vendcode,jdbcType=VARCHAR},
  252. </if>
  253. <if test="pb_vendname != null">
  254. #{pb_vendname,jdbcType=VARCHAR},
  255. </if>
  256. <if test="pb_manname != null">
  257. #{pb_manname,jdbcType=VARCHAR},
  258. </if>
  259. <if test="pb_pdamount != null">
  260. #{pb_pdamount,jdbcType=DOUBLE},
  261. </if>
  262. <if test="pb_pbdamount != null">
  263. #{pb_pbdamount,jdbcType=DOUBLE},
  264. </if>
  265. <if test="pb_preamount != null">
  266. #{pb_preamount,jdbcType=DOUBLE},
  267. </if>
  268. <if test="pb_discounts != null">
  269. #{pb_discounts,jdbcType=DOUBLE},
  270. </if>
  271. <if test="pb_havebalance != null">
  272. #{pb_havebalance,jdbcType=DOUBLE},
  273. </if>
  274. <if test="pb_recorderid != null">
  275. #{pb_recorderid,jdbcType=INTEGER},
  276. </if>
  277. <if test="pb_recorder != null">
  278. #{pb_recorder,jdbcType=VARCHAR},
  279. </if>
  280. <if test="pb_recorddate != null">
  281. #{pb_recorddate,jdbcType=TIMESTAMP},
  282. </if>
  283. <if test="pb_status != null">
  284. #{pb_status,jdbcType=INTEGER},
  285. </if>
  286. <if test="pb_statuscode != null">
  287. #{pb_statuscode,jdbcType=DECIMAL},
  288. </if>
  289. <if test="pb_remark != null">
  290. #{pb_remark,jdbcType=VARCHAR},
  291. </if>
  292. <if test="companyid != null">
  293. #{companyid,jdbcType=INTEGER},
  294. </if>
  295. <if test="updaterId != null">
  296. #{updaterId,jdbcType=INTEGER},
  297. </if>
  298. <if test="updatedate != null">
  299. #{updatedate,jdbcType=TIMESTAMP},
  300. </if>
  301. <if test="pb_text1 != null">
  302. #{pb_text1,jdbcType=VARCHAR},
  303. </if>
  304. <if test="pb_text2 != null">
  305. #{pb_text2,jdbcType=VARCHAR},
  306. </if>
  307. <if test="pb_text3 != null">
  308. #{pb_text3,jdbcType=VARCHAR},
  309. </if>
  310. <if test="pb_text4 != null">
  311. #{pb_text4,jdbcType=VARCHAR},
  312. </if>
  313. <if test="pb_text5 != null">
  314. #{pb_text5,jdbcType=VARCHAR},
  315. </if>
  316. </trim>
  317. </insert>
  318. <select id="countByExample" parameterType="com.usoftchina.saas.money.po.PaybalanceExample" resultType="java.lang.Integer">
  319. select count(*) from paybalance
  320. <if test="_parameter != null">
  321. <include refid="Example_Where_Clause" />
  322. </if>
  323. </select>
  324. <update id="updateByExampleSelective" parameterType="map">
  325. update paybalance
  326. <set>
  327. <if test="record.pb_id != null">
  328. pb_id = #{record.pb_id,jdbcType=INTEGER},
  329. </if>
  330. <if test="record.pb_code != null">
  331. pb_code = #{record.pb_code,jdbcType=VARCHAR},
  332. </if>
  333. <if test="record.pb_kind != null">
  334. pb_kind = #{record.pb_kind,jdbcType=VARCHAR},
  335. </if>
  336. <if test="record.pb_date != null">
  337. pb_date = #{record.pb_date,jdbcType=TIMESTAMP},
  338. </if>
  339. <if test="record.pb_vendid != null">
  340. pb_vendid = #{record.pb_vendid,jdbcType=INTEGER},
  341. </if>
  342. <if test="record.pb_vendcode != null">
  343. pb_vendcode = #{record.pb_vendcode,jdbcType=VARCHAR},
  344. </if>
  345. <if test="record.pb_vendname != null">
  346. pb_vendname = #{record.pb_vendname,jdbcType=VARCHAR},
  347. </if>
  348. <if test="record.pb_manname != null">
  349. pb_manname = #{record.pb_manname,jdbcType=VARCHAR},
  350. </if>
  351. <if test="record.pb_pdamount != null">
  352. pb_pdamount = #{record.pb_pdamount,jdbcType=DOUBLE},
  353. </if>
  354. <if test="record.pb_pbdamount != null">
  355. pb_pbdamount = #{record.pb_pbdamount,jdbcType=DOUBLE},
  356. </if>
  357. <if test="record.pb_preamount != null">
  358. pb_preamount = #{record.pb_preamount,jdbcType=DOUBLE},
  359. </if>
  360. <if test="record.pb_discounts != null">
  361. pb_discounts = #{record.pb_discounts,jdbcType=DOUBLE},
  362. </if>
  363. <if test="record.pb_havebalance != null">
  364. pb_havebalance = #{record.pb_havebalance,jdbcType=DOUBLE},
  365. </if>
  366. <if test="record.pb_recorderid != null">
  367. pb_recorderid = #{record.pb_recorderid,jdbcType=INTEGER},
  368. </if>
  369. <if test="record.pb_recorder != null">
  370. pb_recorder = #{record.pb_recorder,jdbcType=VARCHAR},
  371. </if>
  372. <if test="record.pb_recorddate != null">
  373. pb_recorddate = #{record.pb_recorddate,jdbcType=TIMESTAMP},
  374. </if>
  375. <if test="record.pb_status != null">
  376. pb_status = #{record.pb_status,jdbcType=INTEGER},
  377. </if>
  378. <if test="record.pb_statuscode != null">
  379. pb_statuscode = #{record.pb_statuscode,jdbcType=DECIMAL},
  380. </if>
  381. <if test="record.pb_remark != null">
  382. pb_remark = #{record.pb_remark,jdbcType=VARCHAR},
  383. </if>
  384. <if test="record.companyid != null">
  385. companyid = #{record.companyid,jdbcType=INTEGER},
  386. </if>
  387. <if test="record.updaterId != null">
  388. updaterId = #{record.updaterId,jdbcType=INTEGER},
  389. </if>
  390. <if test="record.updatedate != null">
  391. updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
  392. </if>
  393. <if test="record.pb_text1 != null">
  394. pb_text1 = #{record.pb_text1,jdbcType=VARCHAR},
  395. </if>
  396. <if test="record.pb_text2 != null">
  397. pb_text2 = #{record.pb_text2,jdbcType=VARCHAR},
  398. </if>
  399. <if test="record.pb_text3 != null">
  400. pb_text3 = #{record.pb_text3,jdbcType=VARCHAR},
  401. </if>
  402. <if test="record.pb_text4 != null">
  403. pb_text4 = #{record.pb_text4,jdbcType=VARCHAR},
  404. </if>
  405. <if test="record.pb_text5 != null">
  406. pb_text5 = #{record.pb_text5,jdbcType=VARCHAR},
  407. </if>
  408. </set>
  409. <if test="_parameter != null">
  410. <include refid="Update_By_Example_Where_Clause" />
  411. </if>
  412. </update>
  413. <update id="updateByExample" parameterType="map">
  414. update paybalance
  415. set pb_id = #{record.pb_id,jdbcType=INTEGER},
  416. pb_code = #{record.pb_code,jdbcType=VARCHAR},
  417. pb_kind = #{record.pb_kind,jdbcType=VARCHAR},
  418. pb_date = #{record.pb_date,jdbcType=TIMESTAMP},
  419. pb_vendid = #{record.pb_vendid,jdbcType=INTEGER},
  420. pb_vendcode = #{record.pb_vendcode,jdbcType=VARCHAR},
  421. pb_vendname = #{record.pb_vendname,jdbcType=VARCHAR},
  422. pb_manname = #{record.pb_manname,jdbcType=VARCHAR},
  423. pb_pdamount = #{record.pb_pdamount,jdbcType=DOUBLE},
  424. pb_pbdamount = #{record.pb_pbdamount,jdbcType=DOUBLE},
  425. pb_preamount = #{record.pb_preamount,jdbcType=DOUBLE},
  426. pb_discounts = #{record.pb_discounts,jdbcType=DOUBLE},
  427. pb_havebalance = #{record.pb_havebalance,jdbcType=DOUBLE},
  428. pb_recorderid = #{record.pb_recorderid,jdbcType=INTEGER},
  429. pb_recorder = #{record.pb_recorder,jdbcType=VARCHAR},
  430. pb_recorddate = #{record.pb_recorddate,jdbcType=TIMESTAMP},
  431. pb_status = #{record.pb_status,jdbcType=INTEGER},
  432. pb_statuscode = #{record.pb_statuscode,jdbcType=DECIMAL},
  433. pb_remark = #{record.pb_remark,jdbcType=VARCHAR},
  434. companyid = #{record.companyid,jdbcType=INTEGER},
  435. updaterId = #{record.updaterId,jdbcType=INTEGER},
  436. updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
  437. pb_text1 = #{record.pb_text1,jdbcType=VARCHAR},
  438. pb_text2 = #{record.pb_text2,jdbcType=VARCHAR},
  439. pb_text3 = #{record.pb_text3,jdbcType=VARCHAR},
  440. pb_text4 = #{record.pb_text4,jdbcType=VARCHAR},
  441. pb_text5 = #{record.pb_text5,jdbcType=VARCHAR}
  442. <if test="_parameter != null">
  443. <include refid="Update_By_Example_Where_Clause" />
  444. </if>
  445. </update>
  446. <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Paybalance">
  447. update paybalance
  448. <set>
  449. <if test="pb_code != null">
  450. pb_code = #{pb_code,jdbcType=VARCHAR},
  451. </if>
  452. <if test="pb_kind != null">
  453. pb_kind = #{pb_kind,jdbcType=VARCHAR},
  454. </if>
  455. <if test="pb_date != null">
  456. pb_date = #{pb_date,jdbcType=TIMESTAMP},
  457. </if>
  458. <if test="pb_vendid != null">
  459. pb_vendid = #{pb_vendid,jdbcType=INTEGER},
  460. </if>
  461. <if test="pb_vendcode != null">
  462. pb_vendcode = #{pb_vendcode,jdbcType=VARCHAR},
  463. </if>
  464. <if test="pb_vendname != null">
  465. pb_vendname = #{pb_vendname,jdbcType=VARCHAR},
  466. </if>
  467. <if test="pb_manname != null">
  468. pb_manname = #{pb_manname,jdbcType=VARCHAR},
  469. </if>
  470. <if test="pb_pdamount != null">
  471. pb_pdamount = #{pb_pdamount,jdbcType=DOUBLE},
  472. </if>
  473. <if test="pb_pbdamount != null">
  474. pb_pbdamount = #{pb_pbdamount,jdbcType=DOUBLE},
  475. </if>
  476. <if test="pb_preamount != null">
  477. pb_preamount = #{pb_preamount,jdbcType=DOUBLE},
  478. </if>
  479. <if test="pb_discounts != null">
  480. pb_discounts = #{pb_discounts,jdbcType=DOUBLE},
  481. </if>
  482. <if test="pb_havebalance != null">
  483. pb_havebalance = #{pb_havebalance,jdbcType=DOUBLE},
  484. </if>
  485. <if test="pb_recorderid != null">
  486. pb_recorderid = #{pb_recorderid,jdbcType=INTEGER},
  487. </if>
  488. <if test="pb_recorder != null">
  489. pb_recorder = #{pb_recorder,jdbcType=VARCHAR},
  490. </if>
  491. <if test="pb_recorddate != null">
  492. pb_recorddate = #{pb_recorddate,jdbcType=TIMESTAMP},
  493. </if>
  494. <if test="pb_status != null">
  495. pb_status = #{pb_status,jdbcType=INTEGER},
  496. </if>
  497. <if test="pb_statuscode != null">
  498. pb_statuscode = #{pb_statuscode,jdbcType=DECIMAL},
  499. </if>
  500. <if test="pb_remark != null">
  501. pb_remark = #{pb_remark,jdbcType=VARCHAR},
  502. </if>
  503. <if test="companyid != null">
  504. companyid = #{companyid,jdbcType=INTEGER},
  505. </if>
  506. <if test="updaterId != null">
  507. updaterId = #{updaterId,jdbcType=INTEGER},
  508. </if>
  509. <if test="updatedate != null">
  510. updatedate = #{updatedate,jdbcType=TIMESTAMP},
  511. </if>
  512. <if test="pb_text1 != null">
  513. pb_text1 = #{pb_text1,jdbcType=VARCHAR},
  514. </if>
  515. <if test="pb_text2 != null">
  516. pb_text2 = #{pb_text2,jdbcType=VARCHAR},
  517. </if>
  518. <if test="pb_text3 != null">
  519. pb_text3 = #{pb_text3,jdbcType=VARCHAR},
  520. </if>
  521. <if test="pb_text4 != null">
  522. pb_text4 = #{pb_text4,jdbcType=VARCHAR},
  523. </if>
  524. <if test="pb_text5 != null">
  525. pb_text5 = #{pb_text5,jdbcType=VARCHAR},
  526. </if>
  527. </set>
  528. where pb_id = #{pb_id,jdbcType=INTEGER}
  529. </update>
  530. <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Paybalance">
  531. update paybalance
  532. set pb_code = #{pb_code,jdbcType=VARCHAR},
  533. pb_kind = #{pb_kind,jdbcType=VARCHAR},
  534. pb_date = #{pb_date,jdbcType=TIMESTAMP},
  535. pb_vendid = #{pb_vendid,jdbcType=INTEGER},
  536. pb_vendcode = #{pb_vendcode,jdbcType=VARCHAR},
  537. pb_vendname = #{pb_vendname,jdbcType=VARCHAR},
  538. pb_manname = #{pb_manname,jdbcType=VARCHAR},
  539. pb_pdamount = #{pb_pdamount,jdbcType=DOUBLE},
  540. pb_pbdamount = #{pb_pbdamount,jdbcType=DOUBLE},
  541. pb_preamount = #{pb_preamount,jdbcType=DOUBLE},
  542. pb_discounts = #{pb_discounts,jdbcType=DOUBLE},
  543. pb_havebalance = #{pb_havebalance,jdbcType=DOUBLE},
  544. pb_recorderid = #{pb_recorderid,jdbcType=INTEGER},
  545. pb_recorder = #{pb_recorder,jdbcType=VARCHAR},
  546. pb_recorddate = #{pb_recorddate,jdbcType=TIMESTAMP},
  547. pb_status = #{pb_status,jdbcType=INTEGER},
  548. pb_statuscode = #{pb_statuscode,jdbcType=DECIMAL},
  549. pb_remark = #{pb_remark,jdbcType=VARCHAR},
  550. companyid = #{companyid,jdbcType=INTEGER},
  551. updaterId = #{updaterId,jdbcType=INTEGER},
  552. updatedate = #{updatedate,jdbcType=TIMESTAMP},
  553. pb_text1 = #{pb_text1,jdbcType=VARCHAR},
  554. pb_text2 = #{pb_text2,jdbcType=VARCHAR},
  555. pb_text3 = #{pb_text3,jdbcType=VARCHAR},
  556. pb_text4 = #{pb_text4,jdbcType=VARCHAR},
  557. pb_text5 = #{pb_text5,jdbcType=VARCHAR}
  558. where pb_id = #{pb_id,jdbcType=INTEGER}
  559. </update>
  560. </mapper>