PubAppparMapper.xml 11 KB

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