BusinessApprovalMapper.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  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.intelligent.ventilation.mapper.BusinessApprovalMapper" >
  4. <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.ventilation.model.BusinessApproval" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  9. -->
  10. <id column="id" property="id" jdbcType="INTEGER" />
  11. <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
  12. <result column="is_deleted" property="isDeleted" jdbcType="INTEGER" />
  13. <result column="remark" property="remark" jdbcType="VARCHAR" />
  14. <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
  15. <result column="content" property="content" jdbcType="VARCHAR" />
  16. <result column="from_department" property="fromDepartment" jdbcType="VARCHAR" />
  17. <result column="from_people" property="fromPeople" jdbcType="VARCHAR" />
  18. <result column="from_user_name" property="fromUserName" jdbcType="VARCHAR" />
  19. <result column="last_people" property="lastPeople" jdbcType="VARCHAR" />
  20. <result column="operate_time" property="operateTime" jdbcType="VARCHAR" />
  21. <result column="operator" property="operator" jdbcType="VARCHAR" />
  22. <result column="operator_name" property="operatorName" jdbcType="VARCHAR" />
  23. <result column="process_instance_id" property="processInstanceId" jdbcType="VARCHAR" />
  24. <result column="project_id" property="projectId" jdbcType="INTEGER" />
  25. <result column="project_name" property="projectName" jdbcType="VARCHAR" />
  26. <result column="result" property="result" jdbcType="VARCHAR" />
  27. <result column="task_id" property="taskId" jdbcType="VARCHAR" />
  28. <result column="task_info" property="taskInfo" jdbcType="VARCHAR" />
  29. <result column="task_name" property="taskName" jdbcType="VARCHAR" />
  30. <result column="task_type" property="taskType" jdbcType="VARCHAR" />
  31. <result column="title" property="title" jdbcType="VARCHAR" />
  32. <result column="version" property="version" jdbcType="INTEGER" />
  33. <result column="task_type_name" property="taskTypeName" jdbcType="VARCHAR" />
  34. <result column="is_hide" property="isHide" jdbcType="INTEGER" />
  35. <result column="is_countersign" property="isCountersign" jdbcType="INTEGER" />
  36. <result column="apply_name" property="applyName" jdbcType="VARCHAR" />
  37. <result column="apply_name_id" property="applyNameId" jdbcType="VARCHAR" />
  38. <result column="apply_time" property="applyTime" jdbcType="TIMESTAMP" />
  39. </resultMap>
  40. <sql id="Example_Where_Clause" >
  41. <!--
  42. WARNING - @mbggenerated
  43. This element is automatically generated by MyBatis Generator, do not modify.
  44. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  45. -->
  46. <where >
  47. <foreach collection="oredCriteria" item="criteria" separator="or" >
  48. <if test="criteria.valid" >
  49. <trim prefix="(" suffix=")" prefixOverrides="and" >
  50. <foreach collection="criteria.criteria" item="criterion" >
  51. <choose >
  52. <when test="criterion.noValue" >
  53. and ${criterion.condition}
  54. </when>
  55. <when test="criterion.singleValue" >
  56. and ${criterion.condition} #{criterion.value}
  57. </when>
  58. <when test="criterion.betweenValue" >
  59. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  60. </when>
  61. <when test="criterion.listValue" >
  62. and ${criterion.condition}
  63. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  64. #{listItem}
  65. </foreach>
  66. </when>
  67. </choose>
  68. </foreach>
  69. </trim>
  70. </if>
  71. </foreach>
  72. </where>
  73. </sql>
  74. <sql id="Update_By_Example_Where_Clause" >
  75. <!--
  76. WARNING - @mbggenerated
  77. This element is automatically generated by MyBatis Generator, do not modify.
  78. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  79. -->
  80. <where >
  81. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  82. <if test="criteria.valid" >
  83. <trim prefix="(" suffix=")" prefixOverrides="and" >
  84. <foreach collection="criteria.criteria" item="criterion" >
  85. <choose >
  86. <when test="criterion.noValue" >
  87. and ${criterion.condition}
  88. </when>
  89. <when test="criterion.singleValue" >
  90. and ${criterion.condition} #{criterion.value}
  91. </when>
  92. <when test="criterion.betweenValue" >
  93. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  94. </when>
  95. <when test="criterion.listValue" >
  96. and ${criterion.condition}
  97. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  98. #{listItem}
  99. </foreach>
  100. </when>
  101. </choose>
  102. </foreach>
  103. </trim>
  104. </if>
  105. </foreach>
  106. </where>
  107. </sql>
  108. <sql id="Base_Column_List" >
  109. <!--
  110. WARNING - @mbggenerated
  111. This element is automatically generated by MyBatis Generator, do not modify.
  112. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  113. -->
  114. id, create_time, is_deleted, remark, update_time, content, from_department, from_people,
  115. from_user_name, last_people, operate_time, operator, operator_name, process_instance_id,
  116. project_id, project_name, result, task_id, task_info, task_name, task_type, title,
  117. version, task_type_name, is_hide, is_countersign, apply_name, apply_name_id, apply_time
  118. </sql>
  119. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApprovalExample" >
  120. <!--
  121. WARNING - @mbggenerated
  122. This element is automatically generated by MyBatis Generator, do not modify.
  123. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  124. -->
  125. select
  126. <if test="distinct" >
  127. distinct
  128. </if>
  129. <include refid="Base_Column_List" />
  130. from business_approval
  131. <if test="_parameter != null" >
  132. <include refid="Example_Where_Clause" />
  133. </if>
  134. <if test="orderByClause != null" >
  135. order by ${orderByClause}
  136. </if>
  137. </select>
  138. <select id="selectByPrimaryKey" resultMap="BaseResultMap" 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 Thu Oct 26 14:47:31 CST 2017.
  143. -->
  144. select
  145. <include refid="Base_Column_List" />
  146. from business_approval
  147. where id = #{id,jdbcType=INTEGER}
  148. </select>
  149. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  150. <!--
  151. WARNING - @mbggenerated
  152. This element is automatically generated by MyBatis Generator, do not modify.
  153. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  154. -->
  155. delete from business_approval
  156. where id = #{id,jdbcType=INTEGER}
  157. </delete>
  158. <delete id="deleteByExample" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApprovalExample" >
  159. <!--
  160. WARNING - @mbggenerated
  161. This element is automatically generated by MyBatis Generator, do not modify.
  162. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  163. -->
  164. delete from business_approval
  165. <if test="_parameter != null" >
  166. <include refid="Example_Where_Clause" />
  167. </if>
  168. </delete>
  169. <insert id="insert" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApproval" >
  170. <!--
  171. WARNING - @mbggenerated
  172. This element is automatically generated by MyBatis Generator, do not modify.
  173. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  174. -->
  175. insert into business_approval (id, create_time, is_deleted,
  176. remark, update_time, content,
  177. from_department, from_people, from_user_name,
  178. last_people, operate_time, operator,
  179. operator_name, process_instance_id, project_id,
  180. project_name, result, task_id,
  181. task_info, task_name, task_type,
  182. title, version, task_type_name,
  183. is_hide, is_countersign, apply_name,
  184. apply_name_id, apply_time)
  185. values (#{id,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=INTEGER},
  186. #{remark,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{content,jdbcType=VARCHAR},
  187. #{fromDepartment,jdbcType=VARCHAR}, #{fromPeople,jdbcType=VARCHAR}, #{fromUserName,jdbcType=VARCHAR},
  188. #{lastPeople,jdbcType=VARCHAR}, #{operateTime,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR},
  189. #{operatorName,jdbcType=VARCHAR}, #{processInstanceId,jdbcType=VARCHAR}, #{projectId,jdbcType=INTEGER},
  190. #{projectName,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR},
  191. #{taskInfo,jdbcType=VARCHAR}, #{taskName,jdbcType=VARCHAR}, #{taskType,jdbcType=VARCHAR},
  192. #{title,jdbcType=VARCHAR}, #{version,jdbcType=INTEGER}, #{taskTypeName,jdbcType=VARCHAR},
  193. #{isHide,jdbcType=INTEGER}, #{isCountersign,jdbcType=INTEGER}, #{applyName,jdbcType=VARCHAR},
  194. #{applyNameId,jdbcType=VARCHAR}, #{applyTime,jdbcType=TIMESTAMP})
  195. </insert>
  196. <insert id="insertSelective" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApproval" >
  197. <!--
  198. WARNING - @mbggenerated
  199. This element is automatically generated by MyBatis Generator, do not modify.
  200. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  201. -->
  202. insert into business_approval
  203. <trim prefix="(" suffix=")" suffixOverrides="," >
  204. <if test="id != null" >
  205. id,
  206. </if>
  207. <if test="createTime != null" >
  208. create_time,
  209. </if>
  210. <if test="isDeleted != null" >
  211. is_deleted,
  212. </if>
  213. <if test="remark != null" >
  214. remark,
  215. </if>
  216. <if test="updateTime != null" >
  217. update_time,
  218. </if>
  219. <if test="content != null" >
  220. content,
  221. </if>
  222. <if test="fromDepartment != null" >
  223. from_department,
  224. </if>
  225. <if test="fromPeople != null" >
  226. from_people,
  227. </if>
  228. <if test="fromUserName != null" >
  229. from_user_name,
  230. </if>
  231. <if test="lastPeople != null" >
  232. last_people,
  233. </if>
  234. <if test="operateTime != null" >
  235. operate_time,
  236. </if>
  237. <if test="operator != null" >
  238. operator,
  239. </if>
  240. <if test="operatorName != null" >
  241. operator_name,
  242. </if>
  243. <if test="processInstanceId != null" >
  244. process_instance_id,
  245. </if>
  246. <if test="projectId != null" >
  247. project_id,
  248. </if>
  249. <if test="projectName != null" >
  250. project_name,
  251. </if>
  252. <if test="result != null" >
  253. result,
  254. </if>
  255. <if test="taskId != null" >
  256. task_id,
  257. </if>
  258. <if test="taskInfo != null" >
  259. task_info,
  260. </if>
  261. <if test="taskName != null" >
  262. task_name,
  263. </if>
  264. <if test="taskType != null" >
  265. task_type,
  266. </if>
  267. <if test="title != null" >
  268. title,
  269. </if>
  270. <if test="version != null" >
  271. version,
  272. </if>
  273. <if test="taskTypeName != null" >
  274. task_type_name,
  275. </if>
  276. <if test="isHide != null" >
  277. is_hide,
  278. </if>
  279. <if test="isCountersign != null" >
  280. is_countersign,
  281. </if>
  282. <if test="applyName != null" >
  283. apply_name,
  284. </if>
  285. <if test="applyNameId != null" >
  286. apply_name_id,
  287. </if>
  288. <if test="applyTime != null" >
  289. apply_time,
  290. </if>
  291. </trim>
  292. <trim prefix="values (" suffix=")" suffixOverrides="," >
  293. <if test="id != null" >
  294. #{id,jdbcType=INTEGER},
  295. </if>
  296. <if test="createTime != null" >
  297. #{createTime,jdbcType=TIMESTAMP},
  298. </if>
  299. <if test="isDeleted != null" >
  300. #{isDeleted,jdbcType=INTEGER},
  301. </if>
  302. <if test="remark != null" >
  303. #{remark,jdbcType=VARCHAR},
  304. </if>
  305. <if test="updateTime != null" >
  306. #{updateTime,jdbcType=TIMESTAMP},
  307. </if>
  308. <if test="content != null" >
  309. #{content,jdbcType=VARCHAR},
  310. </if>
  311. <if test="fromDepartment != null" >
  312. #{fromDepartment,jdbcType=VARCHAR},
  313. </if>
  314. <if test="fromPeople != null" >
  315. #{fromPeople,jdbcType=VARCHAR},
  316. </if>
  317. <if test="fromUserName != null" >
  318. #{fromUserName,jdbcType=VARCHAR},
  319. </if>
  320. <if test="lastPeople != null" >
  321. #{lastPeople,jdbcType=VARCHAR},
  322. </if>
  323. <if test="operateTime != null" >
  324. #{operateTime,jdbcType=VARCHAR},
  325. </if>
  326. <if test="operator != null" >
  327. #{operator,jdbcType=VARCHAR},
  328. </if>
  329. <if test="operatorName != null" >
  330. #{operatorName,jdbcType=VARCHAR},
  331. </if>
  332. <if test="processInstanceId != null" >
  333. #{processInstanceId,jdbcType=VARCHAR},
  334. </if>
  335. <if test="projectId != null" >
  336. #{projectId,jdbcType=INTEGER},
  337. </if>
  338. <if test="projectName != null" >
  339. #{projectName,jdbcType=VARCHAR},
  340. </if>
  341. <if test="result != null" >
  342. #{result,jdbcType=VARCHAR},
  343. </if>
  344. <if test="taskId != null" >
  345. #{taskId,jdbcType=VARCHAR},
  346. </if>
  347. <if test="taskInfo != null" >
  348. #{taskInfo,jdbcType=VARCHAR},
  349. </if>
  350. <if test="taskName != null" >
  351. #{taskName,jdbcType=VARCHAR},
  352. </if>
  353. <if test="taskType != null" >
  354. #{taskType,jdbcType=VARCHAR},
  355. </if>
  356. <if test="title != null" >
  357. #{title,jdbcType=VARCHAR},
  358. </if>
  359. <if test="version != null" >
  360. #{version,jdbcType=INTEGER},
  361. </if>
  362. <if test="taskTypeName != null" >
  363. #{taskTypeName,jdbcType=VARCHAR},
  364. </if>
  365. <if test="isHide != null" >
  366. #{isHide,jdbcType=INTEGER},
  367. </if>
  368. <if test="isCountersign != null" >
  369. #{isCountersign,jdbcType=INTEGER},
  370. </if>
  371. <if test="applyName != null" >
  372. #{applyName,jdbcType=VARCHAR},
  373. </if>
  374. <if test="applyNameId != null" >
  375. #{applyNameId,jdbcType=VARCHAR},
  376. </if>
  377. <if test="applyTime != null" >
  378. #{applyTime,jdbcType=TIMESTAMP},
  379. </if>
  380. </trim>
  381. </insert>
  382. <select id="countByExample" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApprovalExample" resultType="java.lang.Integer" >
  383. <!--
  384. WARNING - @mbggenerated
  385. This element is automatically generated by MyBatis Generator, do not modify.
  386. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  387. -->
  388. select count(*) from business_approval
  389. <if test="_parameter != null" >
  390. <include refid="Example_Where_Clause" />
  391. </if>
  392. </select>
  393. <update id="updateByExampleSelective" parameterType="map" >
  394. <!--
  395. WARNING - @mbggenerated
  396. This element is automatically generated by MyBatis Generator, do not modify.
  397. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  398. -->
  399. update business_approval
  400. <set >
  401. <if test="record.id != null" >
  402. id = #{record.id,jdbcType=INTEGER},
  403. </if>
  404. <if test="record.createTime != null" >
  405. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  406. </if>
  407. <if test="record.isDeleted != null" >
  408. is_deleted = #{record.isDeleted,jdbcType=INTEGER},
  409. </if>
  410. <if test="record.remark != null" >
  411. remark = #{record.remark,jdbcType=VARCHAR},
  412. </if>
  413. <if test="record.updateTime != null" >
  414. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  415. </if>
  416. <if test="record.content != null" >
  417. content = #{record.content,jdbcType=VARCHAR},
  418. </if>
  419. <if test="record.fromDepartment != null" >
  420. from_department = #{record.fromDepartment,jdbcType=VARCHAR},
  421. </if>
  422. <if test="record.fromPeople != null" >
  423. from_people = #{record.fromPeople,jdbcType=VARCHAR},
  424. </if>
  425. <if test="record.fromUserName != null" >
  426. from_user_name = #{record.fromUserName,jdbcType=VARCHAR},
  427. </if>
  428. <if test="record.lastPeople != null" >
  429. last_people = #{record.lastPeople,jdbcType=VARCHAR},
  430. </if>
  431. <if test="record.operateTime != null" >
  432. operate_time = #{record.operateTime,jdbcType=VARCHAR},
  433. </if>
  434. <if test="record.operator != null" >
  435. operator = #{record.operator,jdbcType=VARCHAR},
  436. </if>
  437. <if test="record.operatorName != null" >
  438. operator_name = #{record.operatorName,jdbcType=VARCHAR},
  439. </if>
  440. <if test="record.processInstanceId != null" >
  441. process_instance_id = #{record.processInstanceId,jdbcType=VARCHAR},
  442. </if>
  443. <if test="record.projectId != null" >
  444. project_id = #{record.projectId,jdbcType=INTEGER},
  445. </if>
  446. <if test="record.projectName != null" >
  447. project_name = #{record.projectName,jdbcType=VARCHAR},
  448. </if>
  449. <if test="record.result != null" >
  450. result = #{record.result,jdbcType=VARCHAR},
  451. </if>
  452. <if test="record.taskId != null" >
  453. task_id = #{record.taskId,jdbcType=VARCHAR},
  454. </if>
  455. <if test="record.taskInfo != null" >
  456. task_info = #{record.taskInfo,jdbcType=VARCHAR},
  457. </if>
  458. <if test="record.taskName != null" >
  459. task_name = #{record.taskName,jdbcType=VARCHAR},
  460. </if>
  461. <if test="record.taskType != null" >
  462. task_type = #{record.taskType,jdbcType=VARCHAR},
  463. </if>
  464. <if test="record.title != null" >
  465. title = #{record.title,jdbcType=VARCHAR},
  466. </if>
  467. <if test="record.version != null" >
  468. version = #{record.version,jdbcType=INTEGER},
  469. </if>
  470. <if test="record.taskTypeName != null" >
  471. task_type_name = #{record.taskTypeName,jdbcType=VARCHAR},
  472. </if>
  473. <if test="record.isHide != null" >
  474. is_hide = #{record.isHide,jdbcType=INTEGER},
  475. </if>
  476. <if test="record.isCountersign != null" >
  477. is_countersign = #{record.isCountersign,jdbcType=INTEGER},
  478. </if>
  479. <if test="record.applyName != null" >
  480. apply_name = #{record.applyName,jdbcType=VARCHAR},
  481. </if>
  482. <if test="record.applyNameId != null" >
  483. apply_name_id = #{record.applyNameId,jdbcType=VARCHAR},
  484. </if>
  485. <if test="record.applyTime != null" >
  486. apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
  487. </if>
  488. </set>
  489. <if test="_parameter != null" >
  490. <include refid="Update_By_Example_Where_Clause" />
  491. </if>
  492. </update>
  493. <update id="updateByExample" parameterType="map" >
  494. <!--
  495. WARNING - @mbggenerated
  496. This element is automatically generated by MyBatis Generator, do not modify.
  497. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  498. -->
  499. update business_approval
  500. set id = #{record.id,jdbcType=INTEGER},
  501. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  502. is_deleted = #{record.isDeleted,jdbcType=INTEGER},
  503. remark = #{record.remark,jdbcType=VARCHAR},
  504. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  505. content = #{record.content,jdbcType=VARCHAR},
  506. from_department = #{record.fromDepartment,jdbcType=VARCHAR},
  507. from_people = #{record.fromPeople,jdbcType=VARCHAR},
  508. from_user_name = #{record.fromUserName,jdbcType=VARCHAR},
  509. last_people = #{record.lastPeople,jdbcType=VARCHAR},
  510. operate_time = #{record.operateTime,jdbcType=VARCHAR},
  511. operator = #{record.operator,jdbcType=VARCHAR},
  512. operator_name = #{record.operatorName,jdbcType=VARCHAR},
  513. process_instance_id = #{record.processInstanceId,jdbcType=VARCHAR},
  514. project_id = #{record.projectId,jdbcType=INTEGER},
  515. project_name = #{record.projectName,jdbcType=VARCHAR},
  516. result = #{record.result,jdbcType=VARCHAR},
  517. task_id = #{record.taskId,jdbcType=VARCHAR},
  518. task_info = #{record.taskInfo,jdbcType=VARCHAR},
  519. task_name = #{record.taskName,jdbcType=VARCHAR},
  520. task_type = #{record.taskType,jdbcType=VARCHAR},
  521. title = #{record.title,jdbcType=VARCHAR},
  522. version = #{record.version,jdbcType=INTEGER},
  523. task_type_name = #{record.taskTypeName,jdbcType=VARCHAR},
  524. is_hide = #{record.isHide,jdbcType=INTEGER},
  525. is_countersign = #{record.isCountersign,jdbcType=INTEGER},
  526. apply_name = #{record.applyName,jdbcType=VARCHAR},
  527. apply_name_id = #{record.applyNameId,jdbcType=VARCHAR},
  528. apply_time = #{record.applyTime,jdbcType=TIMESTAMP}
  529. <if test="_parameter != null" >
  530. <include refid="Update_By_Example_Where_Clause" />
  531. </if>
  532. </update>
  533. <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApproval" >
  534. <!--
  535. WARNING - @mbggenerated
  536. This element is automatically generated by MyBatis Generator, do not modify.
  537. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  538. -->
  539. update business_approval
  540. <set >
  541. <if test="createTime != null" >
  542. create_time = #{createTime,jdbcType=TIMESTAMP},
  543. </if>
  544. <if test="isDeleted != null" >
  545. is_deleted = #{isDeleted,jdbcType=INTEGER},
  546. </if>
  547. <if test="remark != null" >
  548. remark = #{remark,jdbcType=VARCHAR},
  549. </if>
  550. <if test="updateTime != null" >
  551. update_time = #{updateTime,jdbcType=TIMESTAMP},
  552. </if>
  553. <if test="content != null" >
  554. content = #{content,jdbcType=VARCHAR},
  555. </if>
  556. <if test="fromDepartment != null" >
  557. from_department = #{fromDepartment,jdbcType=VARCHAR},
  558. </if>
  559. <if test="fromPeople != null" >
  560. from_people = #{fromPeople,jdbcType=VARCHAR},
  561. </if>
  562. <if test="fromUserName != null" >
  563. from_user_name = #{fromUserName,jdbcType=VARCHAR},
  564. </if>
  565. <if test="lastPeople != null" >
  566. last_people = #{lastPeople,jdbcType=VARCHAR},
  567. </if>
  568. <if test="operateTime != null" >
  569. operate_time = #{operateTime,jdbcType=VARCHAR},
  570. </if>
  571. <if test="operator != null" >
  572. operator = #{operator,jdbcType=VARCHAR},
  573. </if>
  574. <if test="operatorName != null" >
  575. operator_name = #{operatorName,jdbcType=VARCHAR},
  576. </if>
  577. <if test="processInstanceId != null" >
  578. process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
  579. </if>
  580. <if test="projectId != null" >
  581. project_id = #{projectId,jdbcType=INTEGER},
  582. </if>
  583. <if test="projectName != null" >
  584. project_name = #{projectName,jdbcType=VARCHAR},
  585. </if>
  586. <if test="result != null" >
  587. result = #{result,jdbcType=VARCHAR},
  588. </if>
  589. <if test="taskId != null" >
  590. task_id = #{taskId,jdbcType=VARCHAR},
  591. </if>
  592. <if test="taskInfo != null" >
  593. task_info = #{taskInfo,jdbcType=VARCHAR},
  594. </if>
  595. <if test="taskName != null" >
  596. task_name = #{taskName,jdbcType=VARCHAR},
  597. </if>
  598. <if test="taskType != null" >
  599. task_type = #{taskType,jdbcType=VARCHAR},
  600. </if>
  601. <if test="title != null" >
  602. title = #{title,jdbcType=VARCHAR},
  603. </if>
  604. <if test="version != null" >
  605. version = #{version,jdbcType=INTEGER},
  606. </if>
  607. <if test="taskTypeName != null" >
  608. task_type_name = #{taskTypeName,jdbcType=VARCHAR},
  609. </if>
  610. <if test="isHide != null" >
  611. is_hide = #{isHide,jdbcType=INTEGER},
  612. </if>
  613. <if test="isCountersign != null" >
  614. is_countersign = #{isCountersign,jdbcType=INTEGER},
  615. </if>
  616. <if test="applyName != null" >
  617. apply_name = #{applyName,jdbcType=VARCHAR},
  618. </if>
  619. <if test="applyNameId != null" >
  620. apply_name_id = #{applyNameId,jdbcType=VARCHAR},
  621. </if>
  622. <if test="applyTime != null" >
  623. apply_time = #{applyTime,jdbcType=TIMESTAMP},
  624. </if>
  625. </set>
  626. where id = #{id,jdbcType=INTEGER}
  627. </update>
  628. <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.intelligent.ventilation.model.BusinessApproval" >
  629. <!--
  630. WARNING - @mbggenerated
  631. This element is automatically generated by MyBatis Generator, do not modify.
  632. This element was generated on Thu Oct 26 14:47:31 CST 2017.
  633. -->
  634. update business_approval
  635. set create_time = #{createTime,jdbcType=TIMESTAMP},
  636. is_deleted = #{isDeleted,jdbcType=INTEGER},
  637. remark = #{remark,jdbcType=VARCHAR},
  638. update_time = #{updateTime,jdbcType=TIMESTAMP},
  639. content = #{content,jdbcType=VARCHAR},
  640. from_department = #{fromDepartment,jdbcType=VARCHAR},
  641. from_people = #{fromPeople,jdbcType=VARCHAR},
  642. from_user_name = #{fromUserName,jdbcType=VARCHAR},
  643. last_people = #{lastPeople,jdbcType=VARCHAR},
  644. operate_time = #{operateTime,jdbcType=VARCHAR},
  645. operator = #{operator,jdbcType=VARCHAR},
  646. operator_name = #{operatorName,jdbcType=VARCHAR},
  647. process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
  648. project_id = #{projectId,jdbcType=INTEGER},
  649. project_name = #{projectName,jdbcType=VARCHAR},
  650. result = #{result,jdbcType=VARCHAR},
  651. task_id = #{taskId,jdbcType=VARCHAR},
  652. task_info = #{taskInfo,jdbcType=VARCHAR},
  653. task_name = #{taskName,jdbcType=VARCHAR},
  654. task_type = #{taskType,jdbcType=VARCHAR},
  655. title = #{title,jdbcType=VARCHAR},
  656. version = #{version,jdbcType=INTEGER},
  657. task_type_name = #{taskTypeName,jdbcType=VARCHAR},
  658. is_hide = #{isHide,jdbcType=INTEGER},
  659. is_countersign = #{isCountersign,jdbcType=INTEGER},
  660. apply_name = #{applyName,jdbcType=VARCHAR},
  661. apply_name_id = #{applyNameId,jdbcType=VARCHAR},
  662. apply_time = #{applyTime,jdbcType=TIMESTAMP}
  663. where id = #{id,jdbcType=INTEGER}
  664. </update>
  665. </mapper>