AchievementMapper.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  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.goafanti.common.dao.AchievementMapper">
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.Achievement">
  5. <id column="id" jdbcType="VARCHAR" property="id" />
  6. <result column="serial_number" jdbcType="INTEGER" property="serialNumber" />
  7. <result column="data_category" jdbcType="INTEGER" property="dataCategory" />
  8. <result column="name" jdbcType="VARCHAR" property="name" />
  9. <result column="keyword" jdbcType="VARCHAR" property="keyword" />
  10. <result column="category" jdbcType="INTEGER" property="category" />
  11. <result column="summary" jdbcType="VARCHAR" property="summary" />
  12. <result column="introduction" jdbcType="VARCHAR" property="introduction" />
  13. <result column="technical_picture_url" jdbcType="VARCHAR" property="technicalPictureUrl" />
  14. <result column="field_a" jdbcType="INTEGER" property="fieldA" />
  15. <result column="field_b" jdbcType="INTEGER" property="fieldB" />
  16. <result column="field_c" jdbcType="INTEGER" property="fieldC" />
  17. <result column="maturity" jdbcType="INTEGER" property="maturity" />
  18. <result column="maturity_picture_url" jdbcType="VARCHAR" property="maturityPictureUrl" />
  19. <result column="maturity_text_file_url" jdbcType="VARCHAR" property="maturityTextFileUrl" />
  20. <result column="maturity_video_url" jdbcType="VARCHAR" property="maturityVideoUrl" />
  21. <result column="innovation" jdbcType="INTEGER" property="innovation" />
  22. <result column="owner_name" jdbcType="VARCHAR" property="ownerName" />
  23. <result column="owner_type" jdbcType="INTEGER" property="ownerType" />
  24. <result column="owner_id_number" jdbcType="VARCHAR" property="ownerIdNumber" />
  25. <result column="owner_mobile" jdbcType="VARCHAR" property="ownerMobile" />
  26. <result column="owner_email" jdbcType="VARCHAR" property="ownerEmail" />
  27. <result column="owner_postal_address" jdbcType="VARCHAR" property="ownerPostalAddress" />
  28. <result column="cooperation_mode" jdbcType="INTEGER" property="cooperationMode" />
  29. <result column="transfer_mode" jdbcType="INTEGER" property="transferMode" />
  30. <result column="bargaining_mode" jdbcType="INTEGER" property="bargainingMode" />
  31. <result column="transfer_price" jdbcType="DECIMAL" property="transferPrice" />
  32. <result column="technical_scene" jdbcType="VARCHAR" property="technicalScene" />
  33. <result column="breakthrough" jdbcType="VARCHAR" property="breakthrough" />
  34. <result column="patent_case" jdbcType="VARCHAR" property="patentCase" />
  35. <result column="awards" jdbcType="VARCHAR" property="awards" />
  36. <result column="team_des" jdbcType="VARCHAR" property="teamDes" />
  37. <result column="parameter" jdbcType="VARCHAR" property="parameter" />
  38. <result column="tech_plan_url" jdbcType="VARCHAR" property="techPlanUrl" />
  39. <result column="business_plan_url" jdbcType="VARCHAR" property="businessPlanUrl" />
  40. <result column="org_id" jdbcType="VARCHAR" property="orgId" />
  41. <result column="org_name" jdbcType="VARCHAR" property="orgName" />
  42. <result column="org_address" jdbcType="VARCHAR" property="orgAddress" />
  43. <result column="org_email" jdbcType="VARCHAR" property="orgEmail" />
  44. <result column="org_contacts" jdbcType="VARCHAR" property="orgContacts" />
  45. <result column="org_contacts_mobile" jdbcType="VARCHAR" property="orgContactsMobile" />
  46. <result column="contacts" jdbcType="VARCHAR" property="contacts" />
  47. <result column="manager_id" jdbcType="VARCHAR" property="managerId" />
  48. <result column="salesman_id" jdbcType="VARCHAR" property="salesmanId" />
  49. <result column="status" jdbcType="INTEGER" property="status" />
  50. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  51. <result column="release_status" jdbcType="INTEGER" property="releaseStatus" />
  52. <result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
  53. <result column="deleted_sign" jdbcType="INTEGER" property="deletedSign" />
  54. </resultMap>
  55. <sql id="Base_Column_List">
  56. id, serial_number, data_category, name, keyword, category, summary, introduction,
  57. technical_picture_url, field_a, field_b, field_c, maturity, maturity_picture_url,
  58. maturity_text_file_url, maturity_video_url, innovation, owner_name, owner_type, owner_id_number,
  59. owner_mobile, owner_email, owner_postal_address, cooperation_mode, transfer_mode,
  60. bargaining_mode, transfer_price, technical_scene, breakthrough, patent_case, awards,
  61. team_des, parameter, tech_plan_url, business_plan_url, org_id, org_name, org_address,
  62. org_email, org_contacts, org_contacts_mobile, contacts, manager_id, salesman_id,
  63. status, create_time, release_status, release_date, deleted_sign
  64. </sql>
  65. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  66. select
  67. <include refid="Base_Column_List" />
  68. from achievement
  69. where id = #{id,jdbcType=VARCHAR}
  70. </select>
  71. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  72. delete from achievement
  73. where id = #{id,jdbcType=VARCHAR}
  74. </delete>
  75. <insert id="insert" parameterType="com.goafanti.common.model.Achievement">
  76. insert into achievement (id, serial_number, data_category,
  77. name, keyword, category,
  78. summary, introduction, technical_picture_url,
  79. field_a, field_b, field_c,
  80. maturity, maturity_picture_url, maturity_text_file_url,
  81. maturity_video_url, innovation, owner_name,
  82. owner_type, owner_id_number, owner_mobile,
  83. owner_email, owner_postal_address, cooperation_mode,
  84. transfer_mode, bargaining_mode, transfer_price,
  85. technical_scene, breakthrough, patent_case,
  86. awards, team_des, parameter,
  87. tech_plan_url, business_plan_url, org_id,
  88. org_name, org_address, org_email,
  89. org_contacts, org_contacts_mobile, contacts,
  90. manager_id, salesman_id, status,
  91. create_time, release_status, release_date,
  92. deleted_sign)
  93. values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
  94. #{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
  95. #{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
  96. #{fieldA,jdbcType=INTEGER}, #{fieldB,jdbcType=INTEGER}, #{fieldC,jdbcType=INTEGER},
  97. #{maturity,jdbcType=INTEGER}, #{maturityPictureUrl,jdbcType=VARCHAR}, #{maturityTextFileUrl,jdbcType=VARCHAR},
  98. #{maturityVideoUrl,jdbcType=VARCHAR}, #{innovation,jdbcType=INTEGER}, #{ownerName,jdbcType=VARCHAR},
  99. #{ownerType,jdbcType=INTEGER}, #{ownerIdNumber,jdbcType=VARCHAR}, #{ownerMobile,jdbcType=VARCHAR},
  100. #{ownerEmail,jdbcType=VARCHAR}, #{ownerPostalAddress,jdbcType=VARCHAR}, #{cooperationMode,jdbcType=INTEGER},
  101. #{transferMode,jdbcType=INTEGER}, #{bargainingMode,jdbcType=INTEGER}, #{transferPrice,jdbcType=DECIMAL},
  102. #{technicalScene,jdbcType=VARCHAR}, #{breakthrough,jdbcType=VARCHAR}, #{patentCase,jdbcType=VARCHAR},
  103. #{awards,jdbcType=VARCHAR}, #{teamDes,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR},
  104. #{techPlanUrl,jdbcType=VARCHAR}, #{businessPlanUrl,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR},
  105. #{orgName,jdbcType=VARCHAR}, #{orgAddress,jdbcType=VARCHAR}, #{orgEmail,jdbcType=VARCHAR},
  106. #{orgContacts,jdbcType=VARCHAR}, #{orgContactsMobile,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
  107. #{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
  108. #{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
  109. #{deletedSign,jdbcType=INTEGER})
  110. </insert>
  111. <insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
  112. insert into achievement
  113. <trim prefix="(" suffix=")" suffixOverrides=",">
  114. <if test="id != null">
  115. id,
  116. </if>
  117. <if test="serialNumber != null">
  118. serial_number,
  119. </if>
  120. <if test="dataCategory != null">
  121. data_category,
  122. </if>
  123. <if test="name != null">
  124. name,
  125. </if>
  126. <if test="keyword != null">
  127. keyword,
  128. </if>
  129. <if test="category != null">
  130. category,
  131. </if>
  132. <if test="summary != null">
  133. summary,
  134. </if>
  135. <if test="introduction != null">
  136. introduction,
  137. </if>
  138. <if test="technicalPictureUrl != null">
  139. technical_picture_url,
  140. </if>
  141. <if test="fieldA != null">
  142. field_a,
  143. </if>
  144. <if test="fieldB != null">
  145. field_b,
  146. </if>
  147. <if test="fieldC != null">
  148. field_c,
  149. </if>
  150. <if test="maturity != null">
  151. maturity,
  152. </if>
  153. <if test="maturityPictureUrl != null">
  154. maturity_picture_url,
  155. </if>
  156. <if test="maturityTextFileUrl != null">
  157. maturity_text_file_url,
  158. </if>
  159. <if test="maturityVideoUrl != null">
  160. maturity_video_url,
  161. </if>
  162. <if test="innovation != null">
  163. innovation,
  164. </if>
  165. <if test="ownerName != null">
  166. owner_name,
  167. </if>
  168. <if test="ownerType != null">
  169. owner_type,
  170. </if>
  171. <if test="ownerIdNumber != null">
  172. owner_id_number,
  173. </if>
  174. <if test="ownerMobile != null">
  175. owner_mobile,
  176. </if>
  177. <if test="ownerEmail != null">
  178. owner_email,
  179. </if>
  180. <if test="ownerPostalAddress != null">
  181. owner_postal_address,
  182. </if>
  183. <if test="cooperationMode != null">
  184. cooperation_mode,
  185. </if>
  186. <if test="transferMode != null">
  187. transfer_mode,
  188. </if>
  189. <if test="bargainingMode != null">
  190. bargaining_mode,
  191. </if>
  192. <if test="transferPrice != null">
  193. transfer_price,
  194. </if>
  195. <if test="technicalScene != null">
  196. technical_scene,
  197. </if>
  198. <if test="breakthrough != null">
  199. breakthrough,
  200. </if>
  201. <if test="patentCase != null">
  202. patent_case,
  203. </if>
  204. <if test="awards != null">
  205. awards,
  206. </if>
  207. <if test="teamDes != null">
  208. team_des,
  209. </if>
  210. <if test="parameter != null">
  211. parameter,
  212. </if>
  213. <if test="techPlanUrl != null">
  214. tech_plan_url,
  215. </if>
  216. <if test="businessPlanUrl != null">
  217. business_plan_url,
  218. </if>
  219. <if test="orgId != null">
  220. org_id,
  221. </if>
  222. <if test="orgName != null">
  223. org_name,
  224. </if>
  225. <if test="orgAddress != null">
  226. org_address,
  227. </if>
  228. <if test="orgEmail != null">
  229. org_email,
  230. </if>
  231. <if test="orgContacts != null">
  232. org_contacts,
  233. </if>
  234. <if test="orgContactsMobile != null">
  235. org_contacts_mobile,
  236. </if>
  237. <if test="contacts != null">
  238. contacts,
  239. </if>
  240. <if test="managerId != null">
  241. manager_id,
  242. </if>
  243. <if test="salesmanId != null">
  244. salesman_id,
  245. </if>
  246. <if test="status != null">
  247. status,
  248. </if>
  249. <if test="createTime != null">
  250. create_time,
  251. </if>
  252. <if test="releaseStatus != null">
  253. release_status,
  254. </if>
  255. <if test="releaseDate != null">
  256. release_date,
  257. </if>
  258. <if test="deletedSign != null">
  259. deleted_sign,
  260. </if>
  261. </trim>
  262. <trim prefix="values (" suffix=")" suffixOverrides=",">
  263. <if test="id != null">
  264. #{id,jdbcType=VARCHAR},
  265. </if>
  266. <if test="serialNumber != null">
  267. #{serialNumber,jdbcType=INTEGER},
  268. </if>
  269. <if test="dataCategory != null">
  270. #{dataCategory,jdbcType=INTEGER},
  271. </if>
  272. <if test="name != null">
  273. #{name,jdbcType=VARCHAR},
  274. </if>
  275. <if test="keyword != null">
  276. #{keyword,jdbcType=VARCHAR},
  277. </if>
  278. <if test="category != null">
  279. #{category,jdbcType=INTEGER},
  280. </if>
  281. <if test="summary != null">
  282. #{summary,jdbcType=VARCHAR},
  283. </if>
  284. <if test="introduction != null">
  285. #{introduction,jdbcType=VARCHAR},
  286. </if>
  287. <if test="technicalPictureUrl != null">
  288. #{technicalPictureUrl,jdbcType=VARCHAR},
  289. </if>
  290. <if test="fieldA != null">
  291. #{fieldA,jdbcType=INTEGER},
  292. </if>
  293. <if test="fieldB != null">
  294. #{fieldB,jdbcType=INTEGER},
  295. </if>
  296. <if test="fieldC != null">
  297. #{fieldC,jdbcType=INTEGER},
  298. </if>
  299. <if test="maturity != null">
  300. #{maturity,jdbcType=INTEGER},
  301. </if>
  302. <if test="maturityPictureUrl != null">
  303. #{maturityPictureUrl,jdbcType=VARCHAR},
  304. </if>
  305. <if test="maturityTextFileUrl != null">
  306. #{maturityTextFileUrl,jdbcType=VARCHAR},
  307. </if>
  308. <if test="maturityVideoUrl != null">
  309. #{maturityVideoUrl,jdbcType=VARCHAR},
  310. </if>
  311. <if test="innovation != null">
  312. #{innovation,jdbcType=INTEGER},
  313. </if>
  314. <if test="ownerName != null">
  315. #{ownerName,jdbcType=VARCHAR},
  316. </if>
  317. <if test="ownerType != null">
  318. #{ownerType,jdbcType=INTEGER},
  319. </if>
  320. <if test="ownerIdNumber != null">
  321. #{ownerIdNumber,jdbcType=VARCHAR},
  322. </if>
  323. <if test="ownerMobile != null">
  324. #{ownerMobile,jdbcType=VARCHAR},
  325. </if>
  326. <if test="ownerEmail != null">
  327. #{ownerEmail,jdbcType=VARCHAR},
  328. </if>
  329. <if test="ownerPostalAddress != null">
  330. #{ownerPostalAddress,jdbcType=VARCHAR},
  331. </if>
  332. <if test="cooperationMode != null">
  333. #{cooperationMode,jdbcType=INTEGER},
  334. </if>
  335. <if test="transferMode != null">
  336. #{transferMode,jdbcType=INTEGER},
  337. </if>
  338. <if test="bargainingMode != null">
  339. #{bargainingMode,jdbcType=INTEGER},
  340. </if>
  341. <if test="transferPrice != null">
  342. #{transferPrice,jdbcType=DECIMAL},
  343. </if>
  344. <if test="technicalScene != null">
  345. #{technicalScene,jdbcType=VARCHAR},
  346. </if>
  347. <if test="breakthrough != null">
  348. #{breakthrough,jdbcType=VARCHAR},
  349. </if>
  350. <if test="patentCase != null">
  351. #{patentCase,jdbcType=VARCHAR},
  352. </if>
  353. <if test="awards != null">
  354. #{awards,jdbcType=VARCHAR},
  355. </if>
  356. <if test="teamDes != null">
  357. #{teamDes,jdbcType=VARCHAR},
  358. </if>
  359. <if test="parameter != null">
  360. #{parameter,jdbcType=VARCHAR},
  361. </if>
  362. <if test="techPlanUrl != null">
  363. #{techPlanUrl,jdbcType=VARCHAR},
  364. </if>
  365. <if test="businessPlanUrl != null">
  366. #{businessPlanUrl,jdbcType=VARCHAR},
  367. </if>
  368. <if test="orgId != null">
  369. #{orgId,jdbcType=VARCHAR},
  370. </if>
  371. <if test="orgName != null">
  372. #{orgName,jdbcType=VARCHAR},
  373. </if>
  374. <if test="orgAddress != null">
  375. #{orgAddress,jdbcType=VARCHAR},
  376. </if>
  377. <if test="orgEmail != null">
  378. #{orgEmail,jdbcType=VARCHAR},
  379. </if>
  380. <if test="orgContacts != null">
  381. #{orgContacts,jdbcType=VARCHAR},
  382. </if>
  383. <if test="orgContactsMobile != null">
  384. #{orgContactsMobile,jdbcType=VARCHAR},
  385. </if>
  386. <if test="contacts != null">
  387. #{contacts,jdbcType=VARCHAR},
  388. </if>
  389. <if test="managerId != null">
  390. #{managerId,jdbcType=VARCHAR},
  391. </if>
  392. <if test="salesmanId != null">
  393. #{salesmanId,jdbcType=VARCHAR},
  394. </if>
  395. <if test="status != null">
  396. #{status,jdbcType=INTEGER},
  397. </if>
  398. <if test="createTime != null">
  399. #{createTime,jdbcType=TIMESTAMP},
  400. </if>
  401. <if test="releaseStatus != null">
  402. #{releaseStatus,jdbcType=INTEGER},
  403. </if>
  404. <if test="releaseDate != null">
  405. #{releaseDate,jdbcType=TIMESTAMP},
  406. </if>
  407. <if test="deletedSign != null">
  408. #{deletedSign,jdbcType=INTEGER},
  409. </if>
  410. </trim>
  411. </insert>
  412. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
  413. update achievement
  414. <set>
  415. <if test="serialNumber != null">
  416. serial_number = #{serialNumber,jdbcType=INTEGER},
  417. </if>
  418. <if test="dataCategory != null">
  419. data_category = #{dataCategory,jdbcType=INTEGER},
  420. </if>
  421. <if test="name != null">
  422. name = #{name,jdbcType=VARCHAR},
  423. </if>
  424. <if test="keyword != null">
  425. keyword = #{keyword,jdbcType=VARCHAR},
  426. </if>
  427. <if test="category != null">
  428. category = #{category,jdbcType=INTEGER},
  429. </if>
  430. <if test="summary != null">
  431. summary = #{summary,jdbcType=VARCHAR},
  432. </if>
  433. <if test="introduction != null">
  434. introduction = #{introduction,jdbcType=VARCHAR},
  435. </if>
  436. <if test="technicalPictureUrl != null">
  437. technical_picture_url = #{technicalPictureUrl,jdbcType=VARCHAR},
  438. </if>
  439. <if test="fieldA != null">
  440. field_a = #{fieldA,jdbcType=INTEGER},
  441. </if>
  442. <if test="fieldB != null">
  443. field_b = #{fieldB,jdbcType=INTEGER},
  444. </if>
  445. <if test="fieldC != null">
  446. field_c = #{fieldC,jdbcType=INTEGER},
  447. </if>
  448. <if test="maturity != null">
  449. maturity = #{maturity,jdbcType=INTEGER},
  450. </if>
  451. <if test="maturityPictureUrl != null">
  452. maturity_picture_url = #{maturityPictureUrl,jdbcType=VARCHAR},
  453. </if>
  454. <if test="maturityTextFileUrl != null">
  455. maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
  456. </if>
  457. <if test="maturityVideoUrl != null">
  458. maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
  459. </if>
  460. <if test="innovation != null">
  461. innovation = #{innovation,jdbcType=INTEGER},
  462. </if>
  463. <if test="ownerName != null">
  464. owner_name = #{ownerName,jdbcType=VARCHAR},
  465. </if>
  466. <if test="ownerType != null">
  467. owner_type = #{ownerType,jdbcType=INTEGER},
  468. </if>
  469. <if test="ownerIdNumber != null">
  470. owner_id_number = #{ownerIdNumber,jdbcType=VARCHAR},
  471. </if>
  472. <if test="ownerMobile != null">
  473. owner_mobile = #{ownerMobile,jdbcType=VARCHAR},
  474. </if>
  475. <if test="ownerEmail != null">
  476. owner_email = #{ownerEmail,jdbcType=VARCHAR},
  477. </if>
  478. <if test="ownerPostalAddress != null">
  479. owner_postal_address = #{ownerPostalAddress,jdbcType=VARCHAR},
  480. </if>
  481. <if test="cooperationMode != null">
  482. cooperation_mode = #{cooperationMode,jdbcType=INTEGER},
  483. </if>
  484. <if test="transferMode != null">
  485. transfer_mode = #{transferMode,jdbcType=INTEGER},
  486. </if>
  487. <if test="bargainingMode != null">
  488. bargaining_mode = #{bargainingMode,jdbcType=INTEGER},
  489. </if>
  490. <if test="transferPrice != null">
  491. transfer_price = #{transferPrice,jdbcType=DECIMAL},
  492. </if>
  493. <if test="technicalScene != null">
  494. technical_scene = #{technicalScene,jdbcType=VARCHAR},
  495. </if>
  496. <if test="breakthrough != null">
  497. breakthrough = #{breakthrough,jdbcType=VARCHAR},
  498. </if>
  499. <if test="patentCase != null">
  500. patent_case = #{patentCase,jdbcType=VARCHAR},
  501. </if>
  502. <if test="awards != null">
  503. awards = #{awards,jdbcType=VARCHAR},
  504. </if>
  505. <if test="teamDes != null">
  506. team_des = #{teamDes,jdbcType=VARCHAR},
  507. </if>
  508. <if test="parameter != null">
  509. parameter = #{parameter,jdbcType=VARCHAR},
  510. </if>
  511. <if test="techPlanUrl != null">
  512. tech_plan_url = #{techPlanUrl,jdbcType=VARCHAR},
  513. </if>
  514. <if test="businessPlanUrl != null">
  515. business_plan_url = #{businessPlanUrl,jdbcType=VARCHAR},
  516. </if>
  517. <if test="orgId != null">
  518. org_id = #{orgId,jdbcType=VARCHAR},
  519. </if>
  520. <if test="orgName != null">
  521. org_name = #{orgName,jdbcType=VARCHAR},
  522. </if>
  523. <if test="orgAddress != null">
  524. org_address = #{orgAddress,jdbcType=VARCHAR},
  525. </if>
  526. <if test="orgEmail != null">
  527. org_email = #{orgEmail,jdbcType=VARCHAR},
  528. </if>
  529. <if test="orgContacts != null">
  530. org_contacts = #{orgContacts,jdbcType=VARCHAR},
  531. </if>
  532. <if test="orgContactsMobile != null">
  533. org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
  534. </if>
  535. <if test="contacts != null">
  536. contacts = #{contacts,jdbcType=VARCHAR},
  537. </if>
  538. <if test="managerId != null">
  539. manager_id = #{managerId,jdbcType=VARCHAR},
  540. </if>
  541. <if test="salesmanId != null">
  542. salesman_id = #{salesmanId,jdbcType=VARCHAR},
  543. </if>
  544. <if test="status != null">
  545. status = #{status,jdbcType=INTEGER},
  546. </if>
  547. <if test="createTime != null">
  548. create_time = #{createTime,jdbcType=TIMESTAMP},
  549. </if>
  550. <if test="releaseStatus != null">
  551. release_status = #{releaseStatus,jdbcType=INTEGER},
  552. </if>
  553. <if test="releaseDate != null">
  554. release_date = #{releaseDate,jdbcType=TIMESTAMP},
  555. </if>
  556. <if test="deletedSign != null">
  557. deleted_sign = #{deletedSign,jdbcType=INTEGER},
  558. </if>
  559. </set>
  560. where id = #{id,jdbcType=VARCHAR}
  561. </update>
  562. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Achievement">
  563. update achievement
  564. set serial_number = #{serialNumber,jdbcType=INTEGER},
  565. data_category = #{dataCategory,jdbcType=INTEGER},
  566. name = #{name,jdbcType=VARCHAR},
  567. keyword = #{keyword,jdbcType=VARCHAR},
  568. category = #{category,jdbcType=INTEGER},
  569. summary = #{summary,jdbcType=VARCHAR},
  570. introduction = #{introduction,jdbcType=VARCHAR},
  571. technical_picture_url = #{technicalPictureUrl,jdbcType=VARCHAR},
  572. field_a = #{fieldA,jdbcType=INTEGER},
  573. field_b = #{fieldB,jdbcType=INTEGER},
  574. field_c = #{fieldC,jdbcType=INTEGER},
  575. maturity = #{maturity,jdbcType=INTEGER},
  576. maturity_picture_url = #{maturityPictureUrl,jdbcType=VARCHAR},
  577. maturity_text_file_url = #{maturityTextFileUrl,jdbcType=VARCHAR},
  578. maturity_video_url = #{maturityVideoUrl,jdbcType=VARCHAR},
  579. innovation = #{innovation,jdbcType=INTEGER},
  580. owner_name = #{ownerName,jdbcType=VARCHAR},
  581. owner_type = #{ownerType,jdbcType=INTEGER},
  582. owner_id_number = #{ownerIdNumber,jdbcType=VARCHAR},
  583. owner_mobile = #{ownerMobile,jdbcType=VARCHAR},
  584. owner_email = #{ownerEmail,jdbcType=VARCHAR},
  585. owner_postal_address = #{ownerPostalAddress,jdbcType=VARCHAR},
  586. cooperation_mode = #{cooperationMode,jdbcType=INTEGER},
  587. transfer_mode = #{transferMode,jdbcType=INTEGER},
  588. bargaining_mode = #{bargainingMode,jdbcType=INTEGER},
  589. transfer_price = #{transferPrice,jdbcType=DECIMAL},
  590. technical_scene = #{technicalScene,jdbcType=VARCHAR},
  591. breakthrough = #{breakthrough,jdbcType=VARCHAR},
  592. patent_case = #{patentCase,jdbcType=VARCHAR},
  593. awards = #{awards,jdbcType=VARCHAR},
  594. team_des = #{teamDes,jdbcType=VARCHAR},
  595. parameter = #{parameter,jdbcType=VARCHAR},
  596. tech_plan_url = #{techPlanUrl,jdbcType=VARCHAR},
  597. business_plan_url = #{businessPlanUrl,jdbcType=VARCHAR},
  598. org_id = #{orgId,jdbcType=VARCHAR},
  599. org_name = #{orgName,jdbcType=VARCHAR},
  600. org_address = #{orgAddress,jdbcType=VARCHAR},
  601. org_email = #{orgEmail,jdbcType=VARCHAR},
  602. org_contacts = #{orgContacts,jdbcType=VARCHAR},
  603. org_contacts_mobile = #{orgContactsMobile,jdbcType=VARCHAR},
  604. contacts = #{contacts,jdbcType=VARCHAR},
  605. manager_id = #{managerId,jdbcType=VARCHAR},
  606. salesman_id = #{salesmanId,jdbcType=VARCHAR},
  607. status = #{status,jdbcType=INTEGER},
  608. create_time = #{createTime,jdbcType=TIMESTAMP},
  609. release_status = #{releaseStatus,jdbcType=INTEGER},
  610. release_date = #{releaseDate,jdbcType=TIMESTAMP},
  611. deleted_sign = #{deletedSign,jdbcType=INTEGER}
  612. where id = #{id,jdbcType=VARCHAR}
  613. </update>
  614. <select id="findManageAchievementListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.AchievementListBo">
  615. select
  616. id, serial_number as serialNumber, data_category as dataCategory,
  617. name, keyword, category,
  618. owner_name as ownerName, owner_type as ownerType, owner_mobile as ownerMobile,
  619. status, release_date as releaseDate
  620. from achievement
  621. where deleted_sign = 0
  622. <if test="serialNumber != null">
  623. and serial_number = #{serialNumber,jdbcType=INTEGER}
  624. </if>
  625. <if test="name != null">
  626. and name = #{name,jdbcType=VARCHAR}
  627. </if>
  628. <if test="keyword != null">
  629. and keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
  630. </if>
  631. <if test="category != null">
  632. and category = #{category,jdbcType=INTEGER}
  633. </if>
  634. <if test="ownerType != null">
  635. and owner_type = #{ownerType,jdbcType=INTEGER}
  636. </if>
  637. <if test="status != null">
  638. and status = #{status,jdbcType=INTEGER}
  639. </if>
  640. <if test="rStart != null">
  641. and release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
  642. </if>
  643. <if test="rEnd != null">
  644. and release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
  645. </if>
  646. <if test="releaseStatus != null">
  647. and release_status = #{releaseStatus,jdbcType=INTEGER}
  648. </if>
  649. order by serial_number desc
  650. <if test="page_sql!=null">
  651. ${page_sql}
  652. </if>
  653. </select>
  654. <select id="findManageAchievementCount" parameterType="String" resultType="java.lang.Integer">
  655. select
  656. count(1)
  657. from achievement
  658. where deleted_sign = 0
  659. <if test="serialNumber != null">
  660. and serial_number = #{serialNumber,jdbcType=INTEGER}
  661. </if>
  662. <if test="name != null">
  663. and name = #{name,jdbcType=VARCHAR}
  664. </if>
  665. <if test="keyword != null">
  666. and keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
  667. </if>
  668. <if test="category != null">
  669. and category = #{category,jdbcType=INTEGER}
  670. </if>
  671. <if test="ownerType != null">
  672. and owner_type = #{ownerType,jdbcType=INTEGER}
  673. </if>
  674. <if test="status != null">
  675. and status = #{status,jdbcType=INTEGER}
  676. </if>
  677. <if test="rStart != null">
  678. and release_date <![CDATA[ > ]]> #{rStart,jdbcType=TIMESTAMP}
  679. </if>
  680. <if test="rEnd != null">
  681. and release_date <![CDATA[ < ]]> #{rEnd,jdbcType=TIMESTAMP}
  682. </if>
  683. <if test="releaseStatus != null">
  684. and release_status = #{releaseStatus,jdbcType=INTEGER}
  685. </if>
  686. </select>
  687. </mapper>