ImFlowInitMapper.xml 10 KB

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