BusinessNoticeReceiveMapper.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  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.chinaitop.depot.business.mapper.BusinessNoticeReceiveMapper" >
  4. <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  9. -->
  10. <id column="id" property="id" jdbcType="INTEGER" />
  11. <result column="notice_number" property="noticeNumber" jdbcType="VARCHAR" />
  12. <result column="crktype" property="crktype" jdbcType="VARCHAR" />
  13. <result column="contract_number" property="contractNumber" jdbcType="VARCHAR" />
  14. <result column="ywtype" property="ywtype" jdbcType="VARCHAR" />
  15. <result column="house_id" property="houseId" jdbcType="INTEGER" />
  16. <result column="ware_house_id" property="wareHouseId" jdbcType="INTEGER" />
  17. <result column="grain_kind" property="grainKind" jdbcType="INTEGER" />
  18. <result column="grain_grade" property="grainGrade" jdbcType="INTEGER" />
  19. <result column="count" property="count" jdbcType="VARCHAR" />
  20. <result column="outgoing_period" property="outgoingPeriod" jdbcType="VARCHAR" />
  21. <result column="forwarding_unit" property="forwardingUnit" jdbcType="VARCHAR" />
  22. <result column="receive_unit" property="receiveUnit" jdbcType="VARCHAR" />
  23. <result column="resion" property="resion" jdbcType="VARCHAR" />
  24. <result column="in_application" property="inApplication" jdbcType="INTEGER" />
  25. <result column="org_id" property="orgId" jdbcType="INTEGER" />
  26. <result column="grain_attribute" property="grainAttribute" jdbcType="INTEGER" />
  27. <result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
  28. <result column="receive_time" property="receiveTime" jdbcType="TIMESTAMP" />
  29. </resultMap>
  30. <sql id="Example_Where_Clause" >
  31. <!--
  32. WARNING - @mbggenerated
  33. This element is automatically generated by MyBatis Generator, do not modify.
  34. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  35. -->
  36. <where >
  37. <foreach collection="oredCriteria" item="criteria" separator="or" >
  38. <if test="criteria.valid" >
  39. <trim prefix="(" suffix=")" prefixOverrides="and" >
  40. <foreach collection="criteria.criteria" item="criterion" >
  41. <choose >
  42. <when test="criterion.noValue" >
  43. and ${criterion.condition}
  44. </when>
  45. <when test="criterion.singleValue" >
  46. and ${criterion.condition} #{criterion.value}
  47. </when>
  48. <when test="criterion.betweenValue" >
  49. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  50. </when>
  51. <when test="criterion.listValue" >
  52. and ${criterion.condition}
  53. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  54. #{listItem}
  55. </foreach>
  56. </when>
  57. </choose>
  58. </foreach>
  59. </trim>
  60. </if>
  61. </foreach>
  62. </where>
  63. </sql>
  64. <sql id="Update_By_Example_Where_Clause" >
  65. <!--
  66. WARNING - @mbggenerated
  67. This element is automatically generated by MyBatis Generator, do not modify.
  68. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  69. -->
  70. <where >
  71. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  72. <if test="criteria.valid" >
  73. <trim prefix="(" suffix=")" prefixOverrides="and" >
  74. <foreach collection="criteria.criteria" item="criterion" >
  75. <choose >
  76. <when test="criterion.noValue" >
  77. and ${criterion.condition}
  78. </when>
  79. <when test="criterion.singleValue" >
  80. and ${criterion.condition} #{criterion.value}
  81. </when>
  82. <when test="criterion.betweenValue" >
  83. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  84. </when>
  85. <when test="criterion.listValue" >
  86. and ${criterion.condition}
  87. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  88. #{listItem}
  89. </foreach>
  90. </when>
  91. </choose>
  92. </foreach>
  93. </trim>
  94. </if>
  95. </foreach>
  96. </where>
  97. </sql>
  98. <sql id="Base_Column_List" >
  99. <!--
  100. WARNING - @mbggenerated
  101. This element is automatically generated by MyBatis Generator, do not modify.
  102. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  103. -->
  104. id, notice_number, crktype, contract_number, ywtype, house_id, ware_house_id, grain_kind,
  105. grain_grade, count, outgoing_period, forwarding_unit, receive_unit, resion, in_application,
  106. org_id, grain_attribute, grain_detail_kind, receive_time
  107. </sql>
  108. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
  109. <!--
  110. WARNING - @mbggenerated
  111. This element is automatically generated by MyBatis Generator, do not modify.
  112. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  113. -->
  114. select
  115. <if test="distinct" >
  116. distinct
  117. </if>
  118. <include refid="Base_Column_List" />
  119. from business_notice_receive
  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" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  128. <!--
  129. WARNING - @mbggenerated
  130. This element is automatically generated by MyBatis Generator, do not modify.
  131. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  132. -->
  133. select
  134. <include refid="Base_Column_List" />
  135. from business_notice_receive
  136. where id = #{id,jdbcType=INTEGER}
  137. </select>
  138. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  139. <!--
  140. WARNING - @mbggenerated
  141. This element is automatically generated by MyBatis Generator, do not modify.
  142. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  143. -->
  144. delete from business_notice_receive
  145. where id = #{id,jdbcType=INTEGER}
  146. </delete>
  147. <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
  148. <!--
  149. WARNING - @mbggenerated
  150. This element is automatically generated by MyBatis Generator, do not modify.
  151. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  152. -->
  153. delete from business_notice_receive
  154. <if test="_parameter != null" >
  155. <include refid="Example_Where_Clause" />
  156. </if>
  157. </delete>
  158. <insert id="insert" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
  159. <!--
  160. WARNING - @mbggenerated
  161. This element is automatically generated by MyBatis Generator, do not modify.
  162. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  163. -->
  164. insert into business_notice_receive (id, notice_number, crktype,
  165. contract_number, ywtype, house_id,
  166. ware_house_id, grain_kind, grain_grade,
  167. count, outgoing_period, forwarding_unit,
  168. receive_unit, resion, in_application,
  169. org_id, grain_attribute, grain_detail_kind,
  170. receive_time)
  171. values (#{id,jdbcType=INTEGER}, #{noticeNumber,jdbcType=VARCHAR}, #{crktype,jdbcType=VARCHAR},
  172. #{contractNumber,jdbcType=VARCHAR}, #{ywtype,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
  173. #{wareHouseId,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER},
  174. #{count,jdbcType=VARCHAR}, #{outgoingPeriod,jdbcType=VARCHAR}, #{forwardingUnit,jdbcType=VARCHAR},
  175. #{receiveUnit,jdbcType=VARCHAR}, #{resion,jdbcType=VARCHAR}, #{inApplication,jdbcType=INTEGER},
  176. #{orgId,jdbcType=INTEGER}, #{grainAttribute,jdbcType=INTEGER}, #{grainDetailKind,jdbcType=INTEGER},
  177. #{receiveTime,jdbcType=TIMESTAMP})
  178. </insert>
  179. <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
  180. <!--
  181. WARNING - @mbggenerated
  182. This element is automatically generated by MyBatis Generator, do not modify.
  183. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  184. -->
  185. insert into business_notice_receive
  186. <trim prefix="(" suffix=")" suffixOverrides="," >
  187. <if test="id != null" >
  188. id,
  189. </if>
  190. <if test="noticeNumber != null" >
  191. notice_number,
  192. </if>
  193. <if test="crktype != null" >
  194. crktype,
  195. </if>
  196. <if test="contractNumber != null" >
  197. contract_number,
  198. </if>
  199. <if test="ywtype != null" >
  200. ywtype,
  201. </if>
  202. <if test="houseId != null" >
  203. house_id,
  204. </if>
  205. <if test="wareHouseId != null" >
  206. ware_house_id,
  207. </if>
  208. <if test="grainKind != null" >
  209. grain_kind,
  210. </if>
  211. <if test="grainGrade != null" >
  212. grain_grade,
  213. </if>
  214. <if test="count != null" >
  215. count,
  216. </if>
  217. <if test="outgoingPeriod != null" >
  218. outgoing_period,
  219. </if>
  220. <if test="forwardingUnit != null" >
  221. forwarding_unit,
  222. </if>
  223. <if test="receiveUnit != null" >
  224. receive_unit,
  225. </if>
  226. <if test="resion != null" >
  227. resion,
  228. </if>
  229. <if test="inApplication != null" >
  230. in_application,
  231. </if>
  232. <if test="orgId != null" >
  233. org_id,
  234. </if>
  235. <if test="grainAttribute != null" >
  236. grain_attribute,
  237. </if>
  238. <if test="grainDetailKind != null" >
  239. grain_detail_kind,
  240. </if>
  241. <if test="receiveTime != null" >
  242. receive_time,
  243. </if>
  244. </trim>
  245. <trim prefix="values (" suffix=")" suffixOverrides="," >
  246. <if test="id != null" >
  247. #{id,jdbcType=INTEGER},
  248. </if>
  249. <if test="noticeNumber != null" >
  250. #{noticeNumber,jdbcType=VARCHAR},
  251. </if>
  252. <if test="crktype != null" >
  253. #{crktype,jdbcType=VARCHAR},
  254. </if>
  255. <if test="contractNumber != null" >
  256. #{contractNumber,jdbcType=VARCHAR},
  257. </if>
  258. <if test="ywtype != null" >
  259. #{ywtype,jdbcType=VARCHAR},
  260. </if>
  261. <if test="houseId != null" >
  262. #{houseId,jdbcType=INTEGER},
  263. </if>
  264. <if test="wareHouseId != null" >
  265. #{wareHouseId,jdbcType=INTEGER},
  266. </if>
  267. <if test="grainKind != null" >
  268. #{grainKind,jdbcType=INTEGER},
  269. </if>
  270. <if test="grainGrade != null" >
  271. #{grainGrade,jdbcType=INTEGER},
  272. </if>
  273. <if test="count != null" >
  274. #{count,jdbcType=VARCHAR},
  275. </if>
  276. <if test="outgoingPeriod != null" >
  277. #{outgoingPeriod,jdbcType=VARCHAR},
  278. </if>
  279. <if test="forwardingUnit != null" >
  280. #{forwardingUnit,jdbcType=VARCHAR},
  281. </if>
  282. <if test="receiveUnit != null" >
  283. #{receiveUnit,jdbcType=VARCHAR},
  284. </if>
  285. <if test="resion != null" >
  286. #{resion,jdbcType=VARCHAR},
  287. </if>
  288. <if test="inApplication != null" >
  289. #{inApplication,jdbcType=INTEGER},
  290. </if>
  291. <if test="orgId != null" >
  292. #{orgId,jdbcType=INTEGER},
  293. </if>
  294. <if test="grainAttribute != null" >
  295. #{grainAttribute,jdbcType=INTEGER},
  296. </if>
  297. <if test="grainDetailKind != null" >
  298. #{grainDetailKind,jdbcType=INTEGER},
  299. </if>
  300. <if test="receiveTime != null" >
  301. #{receiveTime,jdbcType=TIMESTAMP},
  302. </if>
  303. </trim>
  304. </insert>
  305. <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
  306. <!--
  307. WARNING - @mbggenerated
  308. This element is automatically generated by MyBatis Generator, do not modify.
  309. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  310. -->
  311. select count(*) from business_notice_receive
  312. <if test="_parameter != null" >
  313. <include refid="Example_Where_Clause" />
  314. </if>
  315. </select>
  316. <update id="updateByExampleSelective" parameterType="map" >
  317. <!--
  318. WARNING - @mbggenerated
  319. This element is automatically generated by MyBatis Generator, do not modify.
  320. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  321. -->
  322. update business_notice_receive
  323. <set >
  324. <if test="record.id != null" >
  325. id = #{record.id,jdbcType=INTEGER},
  326. </if>
  327. <if test="record.noticeNumber != null" >
  328. notice_number = #{record.noticeNumber,jdbcType=VARCHAR},
  329. </if>
  330. <if test="record.crktype != null" >
  331. crktype = #{record.crktype,jdbcType=VARCHAR},
  332. </if>
  333. <if test="record.contractNumber != null" >
  334. contract_number = #{record.contractNumber,jdbcType=VARCHAR},
  335. </if>
  336. <if test="record.ywtype != null" >
  337. ywtype = #{record.ywtype,jdbcType=VARCHAR},
  338. </if>
  339. <if test="record.houseId != null" >
  340. house_id = #{record.houseId,jdbcType=INTEGER},
  341. </if>
  342. <if test="record.wareHouseId != null" >
  343. ware_house_id = #{record.wareHouseId,jdbcType=INTEGER},
  344. </if>
  345. <if test="record.grainKind != null" >
  346. grain_kind = #{record.grainKind,jdbcType=INTEGER},
  347. </if>
  348. <if test="record.grainGrade != null" >
  349. grain_grade = #{record.grainGrade,jdbcType=INTEGER},
  350. </if>
  351. <if test="record.count != null" >
  352. count = #{record.count,jdbcType=VARCHAR},
  353. </if>
  354. <if test="record.outgoingPeriod != null" >
  355. outgoing_period = #{record.outgoingPeriod,jdbcType=VARCHAR},
  356. </if>
  357. <if test="record.forwardingUnit != null" >
  358. forwarding_unit = #{record.forwardingUnit,jdbcType=VARCHAR},
  359. </if>
  360. <if test="record.receiveUnit != null" >
  361. receive_unit = #{record.receiveUnit,jdbcType=VARCHAR},
  362. </if>
  363. <if test="record.resion != null" >
  364. resion = #{record.resion,jdbcType=VARCHAR},
  365. </if>
  366. <if test="record.inApplication != null" >
  367. in_application = #{record.inApplication,jdbcType=INTEGER},
  368. </if>
  369. <if test="record.orgId != null" >
  370. org_id = #{record.orgId,jdbcType=INTEGER},
  371. </if>
  372. <if test="record.grainAttribute != null" >
  373. grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
  374. </if>
  375. <if test="record.grainDetailKind != null" >
  376. grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
  377. </if>
  378. <if test="record.receiveTime != null" >
  379. receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
  380. </if>
  381. </set>
  382. <if test="_parameter != null" >
  383. <include refid="Update_By_Example_Where_Clause" />
  384. </if>
  385. </update>
  386. <update id="updateByExample" parameterType="map" >
  387. <!--
  388. WARNING - @mbggenerated
  389. This element is automatically generated by MyBatis Generator, do not modify.
  390. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  391. -->
  392. update business_notice_receive
  393. set id = #{record.id,jdbcType=INTEGER},
  394. notice_number = #{record.noticeNumber,jdbcType=VARCHAR},
  395. crktype = #{record.crktype,jdbcType=VARCHAR},
  396. contract_number = #{record.contractNumber,jdbcType=VARCHAR},
  397. ywtype = #{record.ywtype,jdbcType=VARCHAR},
  398. house_id = #{record.houseId,jdbcType=INTEGER},
  399. ware_house_id = #{record.wareHouseId,jdbcType=INTEGER},
  400. grain_kind = #{record.grainKind,jdbcType=INTEGER},
  401. grain_grade = #{record.grainGrade,jdbcType=INTEGER},
  402. count = #{record.count,jdbcType=VARCHAR},
  403. outgoing_period = #{record.outgoingPeriod,jdbcType=VARCHAR},
  404. forwarding_unit = #{record.forwardingUnit,jdbcType=VARCHAR},
  405. receive_unit = #{record.receiveUnit,jdbcType=VARCHAR},
  406. resion = #{record.resion,jdbcType=VARCHAR},
  407. in_application = #{record.inApplication,jdbcType=INTEGER},
  408. org_id = #{record.orgId,jdbcType=INTEGER},
  409. grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
  410. grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
  411. receive_time = #{record.receiveTime,jdbcType=TIMESTAMP}
  412. <if test="_parameter != null" >
  413. <include refid="Update_By_Example_Where_Clause" />
  414. </if>
  415. </update>
  416. <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
  417. <!--
  418. WARNING - @mbggenerated
  419. This element is automatically generated by MyBatis Generator, do not modify.
  420. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  421. -->
  422. update business_notice_receive
  423. <set >
  424. <if test="noticeNumber != null" >
  425. notice_number = #{noticeNumber,jdbcType=VARCHAR},
  426. </if>
  427. <if test="crktype != null" >
  428. crktype = #{crktype,jdbcType=VARCHAR},
  429. </if>
  430. <if test="contractNumber != null" >
  431. contract_number = #{contractNumber,jdbcType=VARCHAR},
  432. </if>
  433. <if test="ywtype != null" >
  434. ywtype = #{ywtype,jdbcType=VARCHAR},
  435. </if>
  436. <if test="houseId != null" >
  437. house_id = #{houseId,jdbcType=INTEGER},
  438. </if>
  439. <if test="wareHouseId != null" >
  440. ware_house_id = #{wareHouseId,jdbcType=INTEGER},
  441. </if>
  442. <if test="grainKind != null" >
  443. grain_kind = #{grainKind,jdbcType=INTEGER},
  444. </if>
  445. <if test="grainGrade != null" >
  446. grain_grade = #{grainGrade,jdbcType=INTEGER},
  447. </if>
  448. <if test="count != null" >
  449. count = #{count,jdbcType=VARCHAR},
  450. </if>
  451. <if test="outgoingPeriod != null" >
  452. outgoing_period = #{outgoingPeriod,jdbcType=VARCHAR},
  453. </if>
  454. <if test="forwardingUnit != null" >
  455. forwarding_unit = #{forwardingUnit,jdbcType=VARCHAR},
  456. </if>
  457. <if test="receiveUnit != null" >
  458. receive_unit = #{receiveUnit,jdbcType=VARCHAR},
  459. </if>
  460. <if test="resion != null" >
  461. resion = #{resion,jdbcType=VARCHAR},
  462. </if>
  463. <if test="inApplication != null" >
  464. in_application = #{inApplication,jdbcType=INTEGER},
  465. </if>
  466. <if test="orgId != null" >
  467. org_id = #{orgId,jdbcType=INTEGER},
  468. </if>
  469. <if test="grainAttribute != null" >
  470. grain_attribute = #{grainAttribute,jdbcType=INTEGER},
  471. </if>
  472. <if test="grainDetailKind != null" >
  473. grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
  474. </if>
  475. <if test="receiveTime != null" >
  476. receive_time = #{receiveTime,jdbcType=TIMESTAMP},
  477. </if>
  478. </set>
  479. where id = #{id,jdbcType=INTEGER}
  480. </update>
  481. <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
  482. <!--
  483. WARNING - @mbggenerated
  484. This element is automatically generated by MyBatis Generator, do not modify.
  485. This element was generated on Wed Jul 08 09:57:43 CST 2020.
  486. -->
  487. update business_notice_receive
  488. set notice_number = #{noticeNumber,jdbcType=VARCHAR},
  489. crktype = #{crktype,jdbcType=VARCHAR},
  490. contract_number = #{contractNumber,jdbcType=VARCHAR},
  491. ywtype = #{ywtype,jdbcType=VARCHAR},
  492. house_id = #{houseId,jdbcType=INTEGER},
  493. ware_house_id = #{wareHouseId,jdbcType=INTEGER},
  494. grain_kind = #{grainKind,jdbcType=INTEGER},
  495. grain_grade = #{grainGrade,jdbcType=INTEGER},
  496. count = #{count,jdbcType=VARCHAR},
  497. outgoing_period = #{outgoingPeriod,jdbcType=VARCHAR},
  498. forwarding_unit = #{forwardingUnit,jdbcType=VARCHAR},
  499. receive_unit = #{receiveUnit,jdbcType=VARCHAR},
  500. resion = #{resion,jdbcType=VARCHAR},
  501. in_application = #{inApplication,jdbcType=INTEGER},
  502. org_id = #{orgId,jdbcType=INTEGER},
  503. grain_attribute = #{grainAttribute,jdbcType=INTEGER},
  504. grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
  505. receive_time = #{receiveTime,jdbcType=TIMESTAMP}
  506. where id = #{id,jdbcType=INTEGER}
  507. </update>
  508. </mapper>