ImFlowRoleMapper.xml 9.3 KB

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