ApNavigationDetailMapper.xml 17 KB

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