PubSysparMapper.xml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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.PubSysparMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.PubSyspar" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="SPR_CODE" property="code" jdbcType="VARCHAR" />
  10. <result column="SPR_NAME" property="name" jdbcType="VARCHAR" />
  11. <result column="SPR_VALUE" property="value" jdbcType="VARCHAR" />
  12. <result column="SPR_TYPE" property="type" jdbcType="CHAR" />
  13. <result column="SPR_SCOPE" property="scope" jdbcType="CHAR" />
  14. <result column="SPR_MFLAG" property="mflag" jdbcType="CHAR" />
  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. SPR_CODE, SPR_NAME, SPR_VALUE, SPR_TYPE, SPR_SCOPE, SPR_MFLAG
  88. </sql>
  89. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.PubSysparExample" >
  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 pub_syspar
  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 pub_syspar
  115. where SPR_CODE = #{code,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 pub_syspar
  123. where SPR_CODE = #{code,jdbcType=VARCHAR}
  124. </delete>
  125. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.PubSysparExample" >
  126. <!--
  127. WARNING - @mbggenerated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. delete from pub_syspar
  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.PubSyspar" >
  136. <!--
  137. WARNING - @mbggenerated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. -->
  140. insert into pub_syspar (SPR_CODE, SPR_NAME, SPR_VALUE,
  141. SPR_TYPE, SPR_SCOPE, SPR_MFLAG)
  142. values (#{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
  143. #{type,jdbcType=CHAR}, #{scope,jdbcType=CHAR}, #{mflag,jdbcType=CHAR})
  144. </insert>
  145. <insert id="insertSelective" parameterType="com.minpay.db.table.model.PubSyspar" >
  146. <!--
  147. WARNING - @mbggenerated
  148. This element is automatically generated by MyBatis Generator, do not modify.
  149. -->
  150. insert into pub_syspar
  151. <trim prefix="(" suffix=")" suffixOverrides="," >
  152. <if test="code != null" >
  153. SPR_CODE,
  154. </if>
  155. <if test="name != null" >
  156. SPR_NAME,
  157. </if>
  158. <if test="value != null" >
  159. SPR_VALUE,
  160. </if>
  161. <if test="type != null" >
  162. SPR_TYPE,
  163. </if>
  164. <if test="scope != null" >
  165. SPR_SCOPE,
  166. </if>
  167. <if test="mflag != null" >
  168. SPR_MFLAG,
  169. </if>
  170. </trim>
  171. <trim prefix="values (" suffix=")" suffixOverrides="," >
  172. <if test="code != null" >
  173. #{code,jdbcType=VARCHAR},
  174. </if>
  175. <if test="name != null" >
  176. #{name,jdbcType=VARCHAR},
  177. </if>
  178. <if test="value != null" >
  179. #{value,jdbcType=VARCHAR},
  180. </if>
  181. <if test="type != null" >
  182. #{type,jdbcType=CHAR},
  183. </if>
  184. <if test="scope != null" >
  185. #{scope,jdbcType=CHAR},
  186. </if>
  187. <if test="mflag != null" >
  188. #{mflag,jdbcType=CHAR},
  189. </if>
  190. </trim>
  191. </insert>
  192. <select id="countByExample" parameterType="com.minpay.db.table.model.PubSysparExample" resultType="java.lang.Integer" >
  193. <!--
  194. WARNING - @mbggenerated
  195. This element is automatically generated by MyBatis Generator, do not modify.
  196. -->
  197. select count(*) from pub_syspar
  198. <if test="_parameter != null" >
  199. <include refid="Example_Where_Clause" />
  200. </if>
  201. </select>
  202. <update id="updateByExampleSelective" parameterType="map" >
  203. <!--
  204. WARNING - @mbggenerated
  205. This element is automatically generated by MyBatis Generator, do not modify.
  206. -->
  207. update pub_syspar
  208. <set >
  209. <if test="record.code != null" >
  210. SPR_CODE = #{record.code,jdbcType=VARCHAR},
  211. </if>
  212. <if test="record.name != null" >
  213. SPR_NAME = #{record.name,jdbcType=VARCHAR},
  214. </if>
  215. <if test="record.value != null" >
  216. SPR_VALUE = #{record.value,jdbcType=VARCHAR},
  217. </if>
  218. <if test="record.type != null" >
  219. SPR_TYPE = #{record.type,jdbcType=CHAR},
  220. </if>
  221. <if test="record.scope != null" >
  222. SPR_SCOPE = #{record.scope,jdbcType=CHAR},
  223. </if>
  224. <if test="record.mflag != null" >
  225. SPR_MFLAG = #{record.mflag,jdbcType=CHAR},
  226. </if>
  227. </set>
  228. <if test="_parameter != null" >
  229. <include refid="Update_By_Example_Where_Clause" />
  230. </if>
  231. </update>
  232. <update id="updateByExample" parameterType="map" >
  233. <!--
  234. WARNING - @mbggenerated
  235. This element is automatically generated by MyBatis Generator, do not modify.
  236. -->
  237. update pub_syspar
  238. set SPR_CODE = #{record.code,jdbcType=VARCHAR},
  239. SPR_NAME = #{record.name,jdbcType=VARCHAR},
  240. SPR_VALUE = #{record.value,jdbcType=VARCHAR},
  241. SPR_TYPE = #{record.type,jdbcType=CHAR},
  242. SPR_SCOPE = #{record.scope,jdbcType=CHAR},
  243. SPR_MFLAG = #{record.mflag,jdbcType=CHAR}
  244. <if test="_parameter != null" >
  245. <include refid="Update_By_Example_Where_Clause" />
  246. </if>
  247. </update>
  248. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.PubSyspar" >
  249. <!--
  250. WARNING - @mbggenerated
  251. This element is automatically generated by MyBatis Generator, do not modify.
  252. -->
  253. update pub_syspar
  254. <set >
  255. <if test="name != null" >
  256. SPR_NAME = #{name,jdbcType=VARCHAR},
  257. </if>
  258. <if test="value != null" >
  259. SPR_VALUE = #{value,jdbcType=VARCHAR},
  260. </if>
  261. <if test="type != null" >
  262. SPR_TYPE = #{type,jdbcType=CHAR},
  263. </if>
  264. <if test="scope != null" >
  265. SPR_SCOPE = #{scope,jdbcType=CHAR},
  266. </if>
  267. <if test="mflag != null" >
  268. SPR_MFLAG = #{mflag,jdbcType=CHAR},
  269. </if>
  270. </set>
  271. where SPR_CODE = #{code,jdbcType=VARCHAR}
  272. </update>
  273. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.PubSyspar" >
  274. <!--
  275. WARNING - @mbggenerated
  276. This element is automatically generated by MyBatis Generator, do not modify.
  277. -->
  278. update pub_syspar
  279. set SPR_NAME = #{name,jdbcType=VARCHAR},
  280. SPR_VALUE = #{value,jdbcType=VARCHAR},
  281. SPR_TYPE = #{type,jdbcType=CHAR},
  282. SPR_SCOPE = #{scope,jdbcType=CHAR},
  283. SPR_MFLAG = #{mflag,jdbcType=CHAR}
  284. where SPR_CODE = #{code,jdbcType=VARCHAR}
  285. </update>
  286. </mapper>