ImFlowLogMapper.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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.minpay.db.table.mapper.ImFlowLogMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ImFlowLog">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="FLL_ID" jdbcType="VARCHAR" property="id" />
  10. <result column="FLL_FLS_ID" jdbcType="VARCHAR" property="flsId" />
  11. <result column="FLL_NAME" jdbcType="VARCHAR" property="name" />
  12. <result column="FLL_ORDER_NUM" jdbcType="VARCHAR" property="orderNum" />
  13. <result column="FLL_STT" jdbcType="VARCHAR" property="stt" />
  14. <result column="FLL_REMARK" jdbcType="VARCHAR" property="remark" />
  15. <result column="FLL_FLOW_USER" jdbcType="VARCHAR" property="flowUser" />
  16. <result column="FLL_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
  17. </resultMap>
  18. <sql id="Example_Where_Clause">
  19. <!--
  20. WARNING - @mbggenerated
  21. This element is automatically generated by MyBatis Generator, do not modify.
  22. -->
  23. <where>
  24. <foreach collection="oredCriteria" item="criteria" separator="or">
  25. <if test="criteria.valid">
  26. <trim prefix="(" prefixOverrides="and" suffix=")">
  27. <foreach collection="criteria.criteria" item="criterion">
  28. <choose>
  29. <when test="criterion.noValue">
  30. and ${criterion.condition}
  31. </when>
  32. <when test="criterion.singleValue">
  33. and ${criterion.condition} #{criterion.value}
  34. </when>
  35. <when test="criterion.betweenValue">
  36. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  37. </when>
  38. <when test="criterion.listValue">
  39. and ${criterion.condition}
  40. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  41. #{listItem}
  42. </foreach>
  43. </when>
  44. </choose>
  45. </foreach>
  46. </trim>
  47. </if>
  48. </foreach>
  49. </where>
  50. </sql>
  51. <sql id="Update_By_Example_Where_Clause">
  52. <!--
  53. WARNING - @mbggenerated
  54. This element is automatically generated by MyBatis Generator, do not modify.
  55. -->
  56. <where>
  57. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  58. <if test="criteria.valid">
  59. <trim prefix="(" prefixOverrides="and" suffix=")">
  60. <foreach collection="criteria.criteria" item="criterion">
  61. <choose>
  62. <when test="criterion.noValue">
  63. and ${criterion.condition}
  64. </when>
  65. <when test="criterion.singleValue">
  66. and ${criterion.condition} #{criterion.value}
  67. </when>
  68. <when test="criterion.betweenValue">
  69. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  70. </when>
  71. <when test="criterion.listValue">
  72. and ${criterion.condition}
  73. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  74. #{listItem}
  75. </foreach>
  76. </when>
  77. </choose>
  78. </foreach>
  79. </trim>
  80. </if>
  81. </foreach>
  82. </where>
  83. </sql>
  84. <sql id="Base_Column_List">
  85. <!--
  86. WARNING - @mbggenerated
  87. This element is automatically generated by MyBatis Generator, do not modify.
  88. -->
  89. FLL_ID, FLL_FLS_ID, FLL_NAME, FLL_ORDER_NUM, FLL_STT, FLL_REMARK, FLL_FLOW_USER,
  90. FLL_MODIFY_TIME
  91. </sql>
  92. <select id="selectByExample" parameterType="com.minpay.db.table.model.ImFlowLogExample" resultMap="BaseResultMap">
  93. <!--
  94. WARNING - @mbggenerated
  95. This element is automatically generated by MyBatis Generator, do not modify.
  96. -->
  97. select
  98. <if test="distinct">
  99. distinct
  100. </if>
  101. <include refid="Base_Column_List" />
  102. from im_flow_log
  103. <if test="_parameter != null">
  104. <include refid="Example_Where_Clause" />
  105. </if>
  106. <if test="orderByClause != null">
  107. order by ${orderByClause}
  108. </if>
  109. </select>
  110. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  111. <!--
  112. WARNING - @mbggenerated
  113. This element is automatically generated by MyBatis Generator, do not modify.
  114. -->
  115. select
  116. <include refid="Base_Column_List" />
  117. from im_flow_log
  118. where FLL_ID = #{id,jdbcType=VARCHAR}
  119. </select>
  120. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  121. <!--
  122. WARNING - @mbggenerated
  123. This element is automatically generated by MyBatis Generator, do not modify.
  124. -->
  125. delete from im_flow_log
  126. where FLL_ID = #{id,jdbcType=VARCHAR}
  127. </delete>
  128. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ImFlowLogExample">
  129. <!--
  130. WARNING - @mbggenerated
  131. This element is automatically generated by MyBatis Generator, do not modify.
  132. -->
  133. delete from im_flow_log
  134. <if test="_parameter != null">
  135. <include refid="Example_Where_Clause" />
  136. </if>
  137. </delete>
  138. <insert id="insert" parameterType="com.minpay.db.table.model.ImFlowLog">
  139. <!--
  140. WARNING - @mbggenerated
  141. This element is automatically generated by MyBatis Generator, do not modify.
  142. -->
  143. insert into im_flow_log (FLL_ID, FLL_FLS_ID, FLL_NAME,
  144. FLL_ORDER_NUM, FLL_STT, FLL_REMARK,
  145. FLL_FLOW_USER, FLL_MODIFY_TIME)
  146. values (#{id,jdbcType=VARCHAR}, #{flsId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
  147. #{orderNum,jdbcType=VARCHAR}, #{stt,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
  148. #{flowUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR})
  149. </insert>
  150. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ImFlowLog">
  151. <!--
  152. WARNING - @mbggenerated
  153. This element is automatically generated by MyBatis Generator, do not modify.
  154. -->
  155. insert into im_flow_log
  156. <trim prefix="(" suffix=")" suffixOverrides=",">
  157. <if test="id != null">
  158. FLL_ID,
  159. </if>
  160. <if test="flsId != null">
  161. FLL_FLS_ID,
  162. </if>
  163. <if test="name != null">
  164. FLL_NAME,
  165. </if>
  166. <if test="orderNum != null">
  167. FLL_ORDER_NUM,
  168. </if>
  169. <if test="stt != null">
  170. FLL_STT,
  171. </if>
  172. <if test="remark != null">
  173. FLL_REMARK,
  174. </if>
  175. <if test="flowUser != null">
  176. FLL_FLOW_USER,
  177. </if>
  178. <if test="modifyTime != null">
  179. FLL_MODIFY_TIME,
  180. </if>
  181. </trim>
  182. <trim prefix="values (" suffix=")" suffixOverrides=",">
  183. <if test="id != null">
  184. #{id,jdbcType=VARCHAR},
  185. </if>
  186. <if test="flsId != null">
  187. #{flsId,jdbcType=VARCHAR},
  188. </if>
  189. <if test="name != null">
  190. #{name,jdbcType=VARCHAR},
  191. </if>
  192. <if test="orderNum != null">
  193. #{orderNum,jdbcType=VARCHAR},
  194. </if>
  195. <if test="stt != null">
  196. #{stt,jdbcType=VARCHAR},
  197. </if>
  198. <if test="remark != null">
  199. #{remark,jdbcType=VARCHAR},
  200. </if>
  201. <if test="flowUser != null">
  202. #{flowUser,jdbcType=VARCHAR},
  203. </if>
  204. <if test="modifyTime != null">
  205. #{modifyTime,jdbcType=VARCHAR},
  206. </if>
  207. </trim>
  208. </insert>
  209. <select id="countByExample" parameterType="com.minpay.db.table.model.ImFlowLogExample" resultType="java.lang.Integer">
  210. <!--
  211. WARNING - @mbggenerated
  212. This element is automatically generated by MyBatis Generator, do not modify.
  213. -->
  214. select count(*) from im_flow_log
  215. <if test="_parameter != null">
  216. <include refid="Example_Where_Clause" />
  217. </if>
  218. </select>
  219. <update id="updateByExampleSelective" parameterType="map">
  220. <!--
  221. WARNING - @mbggenerated
  222. This element is automatically generated by MyBatis Generator, do not modify.
  223. -->
  224. update im_flow_log
  225. <set>
  226. <if test="record.id != null">
  227. FLL_ID = #{record.id,jdbcType=VARCHAR},
  228. </if>
  229. <if test="record.flsId != null">
  230. FLL_FLS_ID = #{record.flsId,jdbcType=VARCHAR},
  231. </if>
  232. <if test="record.name != null">
  233. FLL_NAME = #{record.name,jdbcType=VARCHAR},
  234. </if>
  235. <if test="record.orderNum != null">
  236. FLL_ORDER_NUM = #{record.orderNum,jdbcType=VARCHAR},
  237. </if>
  238. <if test="record.stt != null">
  239. FLL_STT = #{record.stt,jdbcType=VARCHAR},
  240. </if>
  241. <if test="record.remark != null">
  242. FLL_REMARK = #{record.remark,jdbcType=VARCHAR},
  243. </if>
  244. <if test="record.flowUser != null">
  245. FLL_FLOW_USER = #{record.flowUser,jdbcType=VARCHAR},
  246. </if>
  247. <if test="record.modifyTime != null">
  248. FLL_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  249. </if>
  250. </set>
  251. <if test="_parameter != null">
  252. <include refid="Update_By_Example_Where_Clause" />
  253. </if>
  254. </update>
  255. <update id="updateByExample" parameterType="map">
  256. <!--
  257. WARNING - @mbggenerated
  258. This element is automatically generated by MyBatis Generator, do not modify.
  259. -->
  260. update im_flow_log
  261. set FLL_ID = #{record.id,jdbcType=VARCHAR},
  262. FLL_FLS_ID = #{record.flsId,jdbcType=VARCHAR},
  263. FLL_NAME = #{record.name,jdbcType=VARCHAR},
  264. FLL_ORDER_NUM = #{record.orderNum,jdbcType=VARCHAR},
  265. FLL_STT = #{record.stt,jdbcType=VARCHAR},
  266. FLL_REMARK = #{record.remark,jdbcType=VARCHAR},
  267. FLL_FLOW_USER = #{record.flowUser,jdbcType=VARCHAR},
  268. FLL_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR}
  269. <if test="_parameter != null">
  270. <include refid="Update_By_Example_Where_Clause" />
  271. </if>
  272. </update>
  273. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ImFlowLog">
  274. <!--
  275. WARNING - @mbggenerated
  276. This element is automatically generated by MyBatis Generator, do not modify.
  277. -->
  278. update im_flow_log
  279. <set>
  280. <if test="flsId != null">
  281. FLL_FLS_ID = #{flsId,jdbcType=VARCHAR},
  282. </if>
  283. <if test="name != null">
  284. FLL_NAME = #{name,jdbcType=VARCHAR},
  285. </if>
  286. <if test="orderNum != null">
  287. FLL_ORDER_NUM = #{orderNum,jdbcType=VARCHAR},
  288. </if>
  289. <if test="stt != null">
  290. FLL_STT = #{stt,jdbcType=VARCHAR},
  291. </if>
  292. <if test="remark != null">
  293. FLL_REMARK = #{remark,jdbcType=VARCHAR},
  294. </if>
  295. <if test="flowUser != null">
  296. FLL_FLOW_USER = #{flowUser,jdbcType=VARCHAR},
  297. </if>
  298. <if test="modifyTime != null">
  299. FLL_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  300. </if>
  301. </set>
  302. where FLL_ID = #{id,jdbcType=VARCHAR}
  303. </update>
  304. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ImFlowLog">
  305. <!--
  306. WARNING - @mbggenerated
  307. This element is automatically generated by MyBatis Generator, do not modify.
  308. -->
  309. update im_flow_log
  310. set FLL_FLS_ID = #{flsId,jdbcType=VARCHAR},
  311. FLL_NAME = #{name,jdbcType=VARCHAR},
  312. FLL_ORDER_NUM = #{orderNum,jdbcType=VARCHAR},
  313. FLL_STT = #{stt,jdbcType=VARCHAR},
  314. FLL_REMARK = #{remark,jdbcType=VARCHAR},
  315. FLL_FLOW_USER = #{flowUser,jdbcType=VARCHAR},
  316. FLL_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR}
  317. where FLL_ID = #{id,jdbcType=VARCHAR}
  318. </update>
  319. </mapper>