ApNavigationInfMapper.xml 13 KB

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