SysConfigMapper.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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.platform.yijia.dao.SysConfigMapper">
  4. <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.SysConfig">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <result column="config_id" jdbcType="INTEGER" property="configId" />
  10. <result column="config_name" jdbcType="VARCHAR" property="configName" />
  11. <result column="config_key" jdbcType="VARCHAR" property="configKey" />
  12. <result column="config_value" jdbcType="VARCHAR" property="configValue" />
  13. <result column="config_type" jdbcType="CHAR" property="configType" />
  14. <result column="create_by" jdbcType="VARCHAR" property="createBy" />
  15. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  16. <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
  17. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  18. <result column="remark" jdbcType="VARCHAR" property="remark" />
  19. </resultMap>
  20. <sql id="Example_Where_Clause">
  21. <!--
  22. WARNING - @mbg.generated
  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="(" prefixOverrides="and" suffix=")">
  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 close=")" collection="criterion.value" item="listItem" open="(" 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 - @mbg.generated
  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="(" prefixOverrides="and" suffix=")">
  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 close=")" collection="criterion.value" item="listItem" open="(" 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 - @mbg.generated
  89. This element is automatically generated by MyBatis Generator, do not modify.
  90. -->
  91. config_id, config_name, config_key, config_value, config_type, create_by, create_time,
  92. update_by, update_time, remark
  93. </sql>
  94. <select id="selectByExample" parameterType="com.platform.yijia.pojo.SysConfigExample" resultMap="BaseResultMap">
  95. <!--
  96. WARNING - @mbg.generated
  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 sys_config
  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. <delete id="deleteByExample" parameterType="com.platform.yijia.pojo.SysConfigExample">
  113. <!--
  114. WARNING - @mbg.generated
  115. This element is automatically generated by MyBatis Generator, do not modify.
  116. -->
  117. delete from sys_config
  118. <if test="_parameter != null">
  119. <include refid="Example_Where_Clause" />
  120. </if>
  121. </delete>
  122. <insert id="insert" parameterType="com.platform.yijia.pojo.SysConfig">
  123. <!--
  124. WARNING - @mbg.generated
  125. This element is automatically generated by MyBatis Generator, do not modify.
  126. -->
  127. insert into sys_config (config_id, config_name, config_key,
  128. config_value, config_type, create_by,
  129. create_time, update_by, update_time,
  130. remark)
  131. values (#{configId,jdbcType=INTEGER}, #{configName,jdbcType=VARCHAR}, #{configKey,jdbcType=VARCHAR},
  132. #{configValue,jdbcType=VARCHAR}, #{configType,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR},
  133. #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
  134. #{remark,jdbcType=VARCHAR})
  135. </insert>
  136. <insert id="insertSelective" parameterType="com.platform.yijia.pojo.SysConfig">
  137. <!--
  138. WARNING - @mbg.generated
  139. This element is automatically generated by MyBatis Generator, do not modify.
  140. -->
  141. insert into sys_config
  142. <trim prefix="(" suffix=")" suffixOverrides=",">
  143. <if test="configId != null">
  144. config_id,
  145. </if>
  146. <if test="configName != null">
  147. config_name,
  148. </if>
  149. <if test="configKey != null">
  150. config_key,
  151. </if>
  152. <if test="configValue != null">
  153. config_value,
  154. </if>
  155. <if test="configType != null">
  156. config_type,
  157. </if>
  158. <if test="createBy != null">
  159. create_by,
  160. </if>
  161. <if test="createTime != null">
  162. create_time,
  163. </if>
  164. <if test="updateBy != null">
  165. update_by,
  166. </if>
  167. <if test="updateTime != null">
  168. update_time,
  169. </if>
  170. <if test="remark != null">
  171. remark,
  172. </if>
  173. </trim>
  174. <trim prefix="values (" suffix=")" suffixOverrides=",">
  175. <if test="configId != null">
  176. #{configId,jdbcType=INTEGER},
  177. </if>
  178. <if test="configName != null">
  179. #{configName,jdbcType=VARCHAR},
  180. </if>
  181. <if test="configKey != null">
  182. #{configKey,jdbcType=VARCHAR},
  183. </if>
  184. <if test="configValue != null">
  185. #{configValue,jdbcType=VARCHAR},
  186. </if>
  187. <if test="configType != null">
  188. #{configType,jdbcType=CHAR},
  189. </if>
  190. <if test="createBy != null">
  191. #{createBy,jdbcType=VARCHAR},
  192. </if>
  193. <if test="createTime != null">
  194. #{createTime,jdbcType=TIMESTAMP},
  195. </if>
  196. <if test="updateBy != null">
  197. #{updateBy,jdbcType=VARCHAR},
  198. </if>
  199. <if test="updateTime != null">
  200. #{updateTime,jdbcType=TIMESTAMP},
  201. </if>
  202. <if test="remark != null">
  203. #{remark,jdbcType=VARCHAR},
  204. </if>
  205. </trim>
  206. </insert>
  207. <select id="countByExample" parameterType="com.platform.yijia.pojo.SysConfigExample" resultType="java.lang.Long">
  208. <!--
  209. WARNING - @mbg.generated
  210. This element is automatically generated by MyBatis Generator, do not modify.
  211. -->
  212. select count(*) from sys_config
  213. <if test="_parameter != null">
  214. <include refid="Example_Where_Clause" />
  215. </if>
  216. </select>
  217. <update id="updateByExampleSelective" parameterType="map">
  218. <!--
  219. WARNING - @mbg.generated
  220. This element is automatically generated by MyBatis Generator, do not modify.
  221. -->
  222. update sys_config
  223. <set>
  224. <if test="record.configId != null">
  225. config_id = #{record.configId,jdbcType=INTEGER},
  226. </if>
  227. <if test="record.configName != null">
  228. config_name = #{record.configName,jdbcType=VARCHAR},
  229. </if>
  230. <if test="record.configKey != null">
  231. config_key = #{record.configKey,jdbcType=VARCHAR},
  232. </if>
  233. <if test="record.configValue != null">
  234. config_value = #{record.configValue,jdbcType=VARCHAR},
  235. </if>
  236. <if test="record.configType != null">
  237. config_type = #{record.configType,jdbcType=CHAR},
  238. </if>
  239. <if test="record.createBy != null">
  240. create_by = #{record.createBy,jdbcType=VARCHAR},
  241. </if>
  242. <if test="record.createTime != null">
  243. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  244. </if>
  245. <if test="record.updateBy != null">
  246. update_by = #{record.updateBy,jdbcType=VARCHAR},
  247. </if>
  248. <if test="record.updateTime != null">
  249. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  250. </if>
  251. <if test="record.remark != null">
  252. remark = #{record.remark,jdbcType=VARCHAR},
  253. </if>
  254. </set>
  255. <if test="_parameter != null">
  256. <include refid="Update_By_Example_Where_Clause" />
  257. </if>
  258. </update>
  259. <update id="updateByExample" parameterType="map">
  260. <!--
  261. WARNING - @mbg.generated
  262. This element is automatically generated by MyBatis Generator, do not modify.
  263. -->
  264. update sys_config
  265. set config_id = #{record.configId,jdbcType=INTEGER},
  266. config_name = #{record.configName,jdbcType=VARCHAR},
  267. config_key = #{record.configKey,jdbcType=VARCHAR},
  268. config_value = #{record.configValue,jdbcType=VARCHAR},
  269. config_type = #{record.configType,jdbcType=CHAR},
  270. create_by = #{record.createBy,jdbcType=VARCHAR},
  271. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  272. update_by = #{record.updateBy,jdbcType=VARCHAR},
  273. update_time = #{record.updateTime,jdbcType=TIMESTAMP},
  274. remark = #{record.remark,jdbcType=VARCHAR}
  275. <if test="_parameter != null">
  276. <include refid="Update_By_Example_Where_Clause" />
  277. </if>
  278. </update>
  279. </mapper>