FlowMainLogMapper.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  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.idea.oa.flow2.mapper.FlowMainLogMapper">
  4. <resultMap id="BaseResultMap" type="com.idea.oa.flow2.model.FlowMainLog">
  5. <id column="id" jdbcType="VARCHAR" property="id" />
  6. <result column="flow_main_id" jdbcType="VARCHAR" property="flowMainId" />
  7. <result column="form_id" jdbcType="VARCHAR" property="formId" />
  8. <result column="audit_user" jdbcType="VARCHAR" property="auditUser" />
  9. <result column="audit_content" jdbcType="VARCHAR" property="auditContent" />
  10. <result column="audit_result" jdbcType="VARCHAR" property="auditResult" />
  11. <result column="audit_type" jdbcType="VARCHAR" property="auditType" />
  12. <result column="flow_type" jdbcType="VARCHAR" property="flowType" />
  13. <result column="flow_post" jdbcType="VARCHAR" property="flowPost" />
  14. <result column="flow_id" jdbcType="VARCHAR" property="flowId" />
  15. <result column="task_id" jdbcType="VARCHAR" property="taskId" />
  16. <result column="next_persons" jdbcType="VARCHAR" property="nextPersons" />
  17. <result column="up_main_log_id" jdbcType="VARCHAR" property="upMainLogId" />
  18. <result column="cc_list" jdbcType="VARCHAR" property="ccList" />
  19. <result column="push_user_key" jdbcType="VARCHAR" property="pushUserKey" />
  20. <result column="node_name" jdbcType="VARCHAR" property="nodeName" />
  21. <result column="status" jdbcType="INTEGER" property="status" />
  22. <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
  23. <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
  24. <result column="group_id" jdbcType="VARCHAR" property="groupId" />
  25. <result column="remark" jdbcType="VARCHAR" property="remark" />
  26. </resultMap>
  27. <sql id="Example_Where_Clause">
  28. <where>
  29. <foreach collection="oredCriteria" item="criteria" separator="or">
  30. <if test="criteria.valid">
  31. <trim prefix="(" prefixOverrides="and" suffix=")">
  32. <foreach collection="criteria.criteria" item="criterion">
  33. <choose>
  34. <when test="criterion.noValue">
  35. and ${criterion.condition}
  36. </when>
  37. <when test="criterion.singleValue">
  38. and ${criterion.condition} #{criterion.value}
  39. </when>
  40. <when test="criterion.betweenValue">
  41. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  42. </when>
  43. <when test="criterion.listValue">
  44. and ${criterion.condition}
  45. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  46. #{listItem}
  47. </foreach>
  48. </when>
  49. </choose>
  50. </foreach>
  51. </trim>
  52. </if>
  53. </foreach>
  54. </where>
  55. </sql>
  56. <sql id="Update_By_Example_Where_Clause">
  57. <where>
  58. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  59. <if test="criteria.valid">
  60. <trim prefix="(" prefixOverrides="and" suffix=")">
  61. <foreach collection="criteria.criteria" item="criterion">
  62. <choose>
  63. <when test="criterion.noValue">
  64. and ${criterion.condition}
  65. </when>
  66. <when test="criterion.singleValue">
  67. and ${criterion.condition} #{criterion.value}
  68. </when>
  69. <when test="criterion.betweenValue">
  70. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  71. </when>
  72. <when test="criterion.listValue">
  73. and ${criterion.condition}
  74. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  75. #{listItem}
  76. </foreach>
  77. </when>
  78. </choose>
  79. </foreach>
  80. </trim>
  81. </if>
  82. </foreach>
  83. </where>
  84. </sql>
  85. <sql id="Base_Column_List">
  86. id, flow_main_id, form_id, audit_user, audit_content, audit_result, audit_type, flow_type,
  87. flow_post, flow_id, task_id, next_persons, up_main_log_id, cc_list, push_user_key,
  88. node_name, status, created_by, created_at, group_id, remark
  89. </sql>
  90. <select id="selectByExample" parameterType="com.idea.oa.flow2.model.FlowMainLogExample" resultMap="BaseResultMap">
  91. select
  92. <if test="distinct">
  93. distinct
  94. </if>
  95. <include refid="Base_Column_List" />
  96. from flow_main_log
  97. <if test="_parameter != null">
  98. <include refid="Example_Where_Clause" />
  99. </if>
  100. <if test="orderByClause != null">
  101. order by ${orderByClause}
  102. </if>
  103. </select>
  104. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  105. select
  106. <include refid="Base_Column_List" />
  107. from flow_main_log
  108. where id = #{id,jdbcType=VARCHAR}
  109. </select>
  110. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  111. delete from flow_main_log
  112. where id = #{id,jdbcType=VARCHAR}
  113. </delete>
  114. <delete id="deleteByExample" parameterType="com.idea.oa.flow2.model.FlowMainLogExample">
  115. delete from flow_main_log
  116. <if test="_parameter != null">
  117. <include refid="Example_Where_Clause" />
  118. </if>
  119. </delete>
  120. <insert id="insert" parameterType="com.idea.oa.flow2.model.FlowMainLog">
  121. insert into flow_main_log (id, flow_main_id, form_id,
  122. audit_user, audit_content, audit_result,
  123. audit_type, flow_type, flow_post,
  124. flow_id, task_id, next_persons,
  125. up_main_log_id, cc_list, push_user_key,
  126. node_name, status, created_by,
  127. created_at, group_id, remark
  128. )
  129. values (#{id,jdbcType=VARCHAR}, #{flowMainId,jdbcType=VARCHAR}, #{formId,jdbcType=VARCHAR},
  130. #{auditUser,jdbcType=VARCHAR}, #{auditContent,jdbcType=VARCHAR}, #{auditResult,jdbcType=VARCHAR},
  131. #{auditType,jdbcType=VARCHAR}, #{flowType,jdbcType=VARCHAR}, #{flowPost,jdbcType=VARCHAR},
  132. #{flowId,jdbcType=VARCHAR}, #{taskId,jdbcType=VARCHAR}, #{nextPersons,jdbcType=VARCHAR},
  133. #{upMainLogId,jdbcType=VARCHAR}, #{ccList,jdbcType=VARCHAR}, #{pushUserKey,jdbcType=VARCHAR},
  134. #{nodeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR},
  135. #{createdAt,jdbcType=TIMESTAMP}, #{groupId,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}
  136. )
  137. </insert>
  138. <insert id="insertSelective" parameterType="com.idea.oa.flow2.model.FlowMainLog">
  139. insert into flow_main_log
  140. <trim prefix="(" suffix=")" suffixOverrides=",">
  141. <if test="id != null">
  142. id,
  143. </if>
  144. <if test="flowMainId != null">
  145. flow_main_id,
  146. </if>
  147. <if test="formId != null">
  148. form_id,
  149. </if>
  150. <if test="auditUser != null">
  151. audit_user,
  152. </if>
  153. <if test="auditContent != null">
  154. audit_content,
  155. </if>
  156. <if test="auditResult != null">
  157. audit_result,
  158. </if>
  159. <if test="auditType != null">
  160. audit_type,
  161. </if>
  162. <if test="flowType != null">
  163. flow_type,
  164. </if>
  165. <if test="flowPost != null">
  166. flow_post,
  167. </if>
  168. <if test="flowId != null">
  169. flow_id,
  170. </if>
  171. <if test="taskId != null">
  172. task_id,
  173. </if>
  174. <if test="nextPersons != null">
  175. next_persons,
  176. </if>
  177. <if test="upMainLogId != null">
  178. up_main_log_id,
  179. </if>
  180. <if test="ccList != null">
  181. cc_list,
  182. </if>
  183. <if test="pushUserKey != null">
  184. push_user_key,
  185. </if>
  186. <if test="nodeName != null">
  187. node_name,
  188. </if>
  189. <if test="status != null">
  190. status,
  191. </if>
  192. <if test="createdBy != null">
  193. created_by,
  194. </if>
  195. <if test="createdAt != null">
  196. created_at,
  197. </if>
  198. <if test="groupId != null">
  199. group_id,
  200. </if>
  201. <if test="remark != null">
  202. remark,
  203. </if>
  204. </trim>
  205. <trim prefix="values (" suffix=")" suffixOverrides=",">
  206. <if test="id != null">
  207. #{id,jdbcType=VARCHAR},
  208. </if>
  209. <if test="flowMainId != null">
  210. #{flowMainId,jdbcType=VARCHAR},
  211. </if>
  212. <if test="formId != null">
  213. #{formId,jdbcType=VARCHAR},
  214. </if>
  215. <if test="auditUser != null">
  216. #{auditUser,jdbcType=VARCHAR},
  217. </if>
  218. <if test="auditContent != null">
  219. #{auditContent,jdbcType=VARCHAR},
  220. </if>
  221. <if test="auditResult != null">
  222. #{auditResult,jdbcType=VARCHAR},
  223. </if>
  224. <if test="auditType != null">
  225. #{auditType,jdbcType=VARCHAR},
  226. </if>
  227. <if test="flowType != null">
  228. #{flowType,jdbcType=VARCHAR},
  229. </if>
  230. <if test="flowPost != null">
  231. #{flowPost,jdbcType=VARCHAR},
  232. </if>
  233. <if test="flowId != null">
  234. #{flowId,jdbcType=VARCHAR},
  235. </if>
  236. <if test="taskId != null">
  237. #{taskId,jdbcType=VARCHAR},
  238. </if>
  239. <if test="nextPersons != null">
  240. #{nextPersons,jdbcType=VARCHAR},
  241. </if>
  242. <if test="upMainLogId != null">
  243. #{upMainLogId,jdbcType=VARCHAR},
  244. </if>
  245. <if test="ccList != null">
  246. #{ccList,jdbcType=VARCHAR},
  247. </if>
  248. <if test="pushUserKey != null">
  249. #{pushUserKey,jdbcType=VARCHAR},
  250. </if>
  251. <if test="nodeName != null">
  252. #{nodeName,jdbcType=VARCHAR},
  253. </if>
  254. <if test="status != null">
  255. #{status,jdbcType=INTEGER},
  256. </if>
  257. <if test="createdBy != null">
  258. #{createdBy,jdbcType=VARCHAR},
  259. </if>
  260. <if test="createdAt != null">
  261. #{createdAt,jdbcType=TIMESTAMP},
  262. </if>
  263. <if test="groupId != null">
  264. #{groupId,jdbcType=VARCHAR},
  265. </if>
  266. <if test="remark != null">
  267. #{remark,jdbcType=VARCHAR},
  268. </if>
  269. </trim>
  270. </insert>
  271. <select id="countByExample" parameterType="com.idea.oa.flow2.model.FlowMainLogExample" resultType="java.lang.Long">
  272. select count(*) from flow_main_log
  273. <if test="_parameter != null">
  274. <include refid="Example_Where_Clause" />
  275. </if>
  276. </select>
  277. <update id="updateByExampleSelective" parameterType="map">
  278. update flow_main_log
  279. <set>
  280. <if test="record.id != null">
  281. id = #{record.id,jdbcType=VARCHAR},
  282. </if>
  283. <if test="record.flowMainId != null">
  284. flow_main_id = #{record.flowMainId,jdbcType=VARCHAR},
  285. </if>
  286. <if test="record.formId != null">
  287. form_id = #{record.formId,jdbcType=VARCHAR},
  288. </if>
  289. <if test="record.auditUser != null">
  290. audit_user = #{record.auditUser,jdbcType=VARCHAR},
  291. </if>
  292. <if test="record.auditContent != null">
  293. audit_content = #{record.auditContent,jdbcType=VARCHAR},
  294. </if>
  295. <if test="record.auditResult != null">
  296. audit_result = #{record.auditResult,jdbcType=VARCHAR},
  297. </if>
  298. <if test="record.auditType != null">
  299. audit_type = #{record.auditType,jdbcType=VARCHAR},
  300. </if>
  301. <if test="record.flowType != null">
  302. flow_type = #{record.flowType,jdbcType=VARCHAR},
  303. </if>
  304. <if test="record.flowPost != null">
  305. flow_post = #{record.flowPost,jdbcType=VARCHAR},
  306. </if>
  307. <if test="record.flowId != null">
  308. flow_id = #{record.flowId,jdbcType=VARCHAR},
  309. </if>
  310. <if test="record.taskId != null">
  311. task_id = #{record.taskId,jdbcType=VARCHAR},
  312. </if>
  313. <if test="record.nextPersons != null">
  314. next_persons = #{record.nextPersons,jdbcType=VARCHAR},
  315. </if>
  316. <if test="record.upMainLogId != null">
  317. up_main_log_id = #{record.upMainLogId,jdbcType=VARCHAR},
  318. </if>
  319. <if test="record.ccList != null">
  320. cc_list = #{record.ccList,jdbcType=VARCHAR},
  321. </if>
  322. <if test="record.pushUserKey != null">
  323. push_user_key = #{record.pushUserKey,jdbcType=VARCHAR},
  324. </if>
  325. <if test="record.nodeName != null">
  326. node_name = #{record.nodeName,jdbcType=VARCHAR},
  327. </if>
  328. <if test="record.status != null">
  329. status = #{record.status,jdbcType=INTEGER},
  330. </if>
  331. <if test="record.createdBy != null">
  332. created_by = #{record.createdBy,jdbcType=VARCHAR},
  333. </if>
  334. <if test="record.createdAt != null">
  335. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  336. </if>
  337. <if test="record.groupId != null">
  338. group_id = #{record.groupId,jdbcType=VARCHAR},
  339. </if>
  340. <if test="record.remark != null">
  341. remark = #{record.remark,jdbcType=VARCHAR},
  342. </if>
  343. </set>
  344. <if test="_parameter != null">
  345. <include refid="Update_By_Example_Where_Clause" />
  346. </if>
  347. </update>
  348. <update id="updateByExample" parameterType="map">
  349. update flow_main_log
  350. set id = #{record.id,jdbcType=VARCHAR},
  351. flow_main_id = #{record.flowMainId,jdbcType=VARCHAR},
  352. form_id = #{record.formId,jdbcType=VARCHAR},
  353. audit_user = #{record.auditUser,jdbcType=VARCHAR},
  354. audit_content = #{record.auditContent,jdbcType=VARCHAR},
  355. audit_result = #{record.auditResult,jdbcType=VARCHAR},
  356. audit_type = #{record.auditType,jdbcType=VARCHAR},
  357. flow_type = #{record.flowType,jdbcType=VARCHAR},
  358. flow_post = #{record.flowPost,jdbcType=VARCHAR},
  359. flow_id = #{record.flowId,jdbcType=VARCHAR},
  360. task_id = #{record.taskId,jdbcType=VARCHAR},
  361. next_persons = #{record.nextPersons,jdbcType=VARCHAR},
  362. up_main_log_id = #{record.upMainLogId,jdbcType=VARCHAR},
  363. cc_list = #{record.ccList,jdbcType=VARCHAR},
  364. push_user_key = #{record.pushUserKey,jdbcType=VARCHAR},
  365. node_name = #{record.nodeName,jdbcType=VARCHAR},
  366. status = #{record.status,jdbcType=INTEGER},
  367. created_by = #{record.createdBy,jdbcType=VARCHAR},
  368. created_at = #{record.createdAt,jdbcType=TIMESTAMP},
  369. group_id = #{record.groupId,jdbcType=VARCHAR},
  370. remark = #{record.remark,jdbcType=VARCHAR}
  371. <if test="_parameter != null">
  372. <include refid="Update_By_Example_Where_Clause" />
  373. </if>
  374. </update>
  375. <update id="updateByPrimaryKeySelective" parameterType="com.idea.oa.flow2.model.FlowMainLog">
  376. update flow_main_log
  377. <set>
  378. <if test="flowMainId != null">
  379. flow_main_id = #{flowMainId,jdbcType=VARCHAR},
  380. </if>
  381. <if test="formId != null">
  382. form_id = #{formId,jdbcType=VARCHAR},
  383. </if>
  384. <if test="auditUser != null">
  385. audit_user = #{auditUser,jdbcType=VARCHAR},
  386. </if>
  387. <if test="auditContent != null">
  388. audit_content = #{auditContent,jdbcType=VARCHAR},
  389. </if>
  390. <if test="auditResult != null">
  391. audit_result = #{auditResult,jdbcType=VARCHAR},
  392. </if>
  393. <if test="auditType != null">
  394. audit_type = #{auditType,jdbcType=VARCHAR},
  395. </if>
  396. <if test="flowType != null">
  397. flow_type = #{flowType,jdbcType=VARCHAR},
  398. </if>
  399. <if test="flowPost != null">
  400. flow_post = #{flowPost,jdbcType=VARCHAR},
  401. </if>
  402. <if test="flowId != null">
  403. flow_id = #{flowId,jdbcType=VARCHAR},
  404. </if>
  405. <if test="taskId != null">
  406. task_id = #{taskId,jdbcType=VARCHAR},
  407. </if>
  408. <if test="nextPersons != null">
  409. next_persons = #{nextPersons,jdbcType=VARCHAR},
  410. </if>
  411. <if test="upMainLogId != null">
  412. up_main_log_id = #{upMainLogId,jdbcType=VARCHAR},
  413. </if>
  414. <if test="ccList != null">
  415. cc_list = #{ccList,jdbcType=VARCHAR},
  416. </if>
  417. <if test="pushUserKey != null">
  418. push_user_key = #{pushUserKey,jdbcType=VARCHAR},
  419. </if>
  420. <if test="nodeName != null">
  421. node_name = #{nodeName,jdbcType=VARCHAR},
  422. </if>
  423. <if test="status != null">
  424. status = #{status,jdbcType=INTEGER},
  425. </if>
  426. <if test="createdBy != null">
  427. created_by = #{createdBy,jdbcType=VARCHAR},
  428. </if>
  429. <if test="createdAt != null">
  430. created_at = #{createdAt,jdbcType=TIMESTAMP},
  431. </if>
  432. <if test="groupId != null">
  433. group_id = #{groupId,jdbcType=VARCHAR},
  434. </if>
  435. <if test="remark != null">
  436. remark = #{remark,jdbcType=VARCHAR},
  437. </if>
  438. </set>
  439. where id = #{id,jdbcType=VARCHAR}
  440. </update>
  441. <update id="updateByPrimaryKey" parameterType="com.idea.oa.flow2.model.FlowMainLog">
  442. update flow_main_log
  443. set flow_main_id = #{flowMainId,jdbcType=VARCHAR},
  444. form_id = #{formId,jdbcType=VARCHAR},
  445. audit_user = #{auditUser,jdbcType=VARCHAR},
  446. audit_content = #{auditContent,jdbcType=VARCHAR},
  447. audit_result = #{auditResult,jdbcType=VARCHAR},
  448. audit_type = #{auditType,jdbcType=VARCHAR},
  449. flow_type = #{flowType,jdbcType=VARCHAR},
  450. flow_post = #{flowPost,jdbcType=VARCHAR},
  451. flow_id = #{flowId,jdbcType=VARCHAR},
  452. task_id = #{taskId,jdbcType=VARCHAR},
  453. next_persons = #{nextPersons,jdbcType=VARCHAR},
  454. up_main_log_id = #{upMainLogId,jdbcType=VARCHAR},
  455. cc_list = #{ccList,jdbcType=VARCHAR},
  456. push_user_key = #{pushUserKey,jdbcType=VARCHAR},
  457. node_name = #{nodeName,jdbcType=VARCHAR},
  458. status = #{status,jdbcType=INTEGER},
  459. created_by = #{createdBy,jdbcType=VARCHAR},
  460. created_at = #{createdAt,jdbcType=TIMESTAMP},
  461. group_id = #{groupId,jdbcType=VARCHAR},
  462. remark = #{remark,jdbcType=VARCHAR}
  463. where id = #{id,jdbcType=VARCHAR}
  464. </update>
  465. </mapper>