BusinessNoticeReceiveMapper.xml 30 KB

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