SysCbitErrorMapper.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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.ydtech.modules.admin.dao.SysCbitErrorMapper">
  4. <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.SysCbitError">
  5. <id column="reqno" jdbcType="VARCHAR" property="reqno"/>
  6. <result column="requrl" jdbcType="VARCHAR" property="requrl"/>
  7. <result column="reqparam" jdbcType="VARCHAR" property="reqparam"/>
  8. </resultMap>
  9. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ydtech.modules.admin.model.SysCbitError">
  10. <result column="errorinfo" jdbcType="LONGVARCHAR" property="errorinfo"/>
  11. </resultMap>
  12. <sql id="Example_Where_Clause">
  13. <where>
  14. <foreach collection="oredCriteria" item="criteria" separator="or">
  15. <if test="criteria.valid">
  16. <trim prefix="(" prefixOverrides="and" suffix=")">
  17. <foreach collection="criteria.criteria" item="criterion">
  18. <choose>
  19. <when test="criterion.noValue">
  20. and ${criterion.condition}
  21. </when>
  22. <when test="criterion.singleValue">
  23. and ${criterion.condition} #{criterion.value}
  24. </when>
  25. <when test="criterion.betweenValue">
  26. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  27. </when>
  28. <when test="criterion.listValue">
  29. and ${criterion.condition}
  30. <foreach close=")" collection="criterion.value" item="listItem" open="("
  31. separator=",">
  32. #{listItem}
  33. </foreach>
  34. </when>
  35. </choose>
  36. </foreach>
  37. </trim>
  38. </if>
  39. </foreach>
  40. </where>
  41. </sql>
  42. <sql id="Update_By_Example_Where_Clause">
  43. <where>
  44. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  45. <if test="criteria.valid">
  46. <trim prefix="(" prefixOverrides="and" suffix=")">
  47. <foreach collection="criteria.criteria" item="criterion">
  48. <choose>
  49. <when test="criterion.noValue">
  50. and ${criterion.condition}
  51. </when>
  52. <when test="criterion.singleValue">
  53. and ${criterion.condition} #{criterion.value}
  54. </when>
  55. <when test="criterion.betweenValue">
  56. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  57. </when>
  58. <when test="criterion.listValue">
  59. and ${criterion.condition}
  60. <foreach close=")" collection="criterion.value" item="listItem" open="("
  61. separator=",">
  62. #{listItem}
  63. </foreach>
  64. </when>
  65. </choose>
  66. </foreach>
  67. </trim>
  68. </if>
  69. </foreach>
  70. </where>
  71. </sql>
  72. <sql id="Base_Column_List">
  73. reqno, requrl, reqparam
  74. </sql>
  75. <sql id="Blob_Column_List">
  76. errorinfo
  77. </sql>
  78. <select id="selectByExampleWithBLOBs" parameterType="com.ydtech.modules.admin.model.SysCbitErrorExample"
  79. resultMap="ResultMapWithBLOBs">
  80. select
  81. <if test="distinct">
  82. distinct
  83. </if>
  84. 'true' as QUERYID,
  85. <include refid="Base_Column_List"/>
  86. ,
  87. <include refid="Blob_Column_List"/>
  88. from sys_cbit_error
  89. <if test="_parameter != null">
  90. <include refid="Example_Where_Clause"/>
  91. </if>
  92. <if test="orderByClause != null">
  93. order by ${orderByClause}
  94. </if>
  95. </select>
  96. <select id="selectByExample" parameterType="com.ydtech.modules.admin.model.SysCbitErrorExample"
  97. resultMap="BaseResultMap">
  98. select
  99. <if test="distinct">
  100. distinct
  101. </if>
  102. 'true' as QUERYID,
  103. <include refid="Base_Column_List"/>
  104. from sys_cbit_error
  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" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
  113. select
  114. <include refid="Base_Column_List"/>
  115. ,
  116. <include refid="Blob_Column_List"/>
  117. from sys_cbit_error
  118. where reqno = #{reqno,jdbcType=VARCHAR}
  119. </select>
  120. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  121. delete
  122. from sys_cbit_error
  123. where reqno = #{reqno,jdbcType=VARCHAR}
  124. </delete>
  125. <delete id="deleteByExample" parameterType="com.ydtech.modules.admin.model.SysCbitErrorExample">
  126. delete from sys_cbit_error
  127. <if test="_parameter != null">
  128. <include refid="Example_Where_Clause"/>
  129. </if>
  130. </delete>
  131. <insert id="insert" parameterType="com.ydtech.modules.admin.model.SysCbitError">
  132. insert into sys_cbit_error (reqno, requrl, reqparam,
  133. errorinfo)
  134. values (#{reqno,jdbcType=VARCHAR}, #{requrl,jdbcType=VARCHAR}, #{reqparam,jdbcType=VARCHAR},
  135. #{errorinfo,jdbcType=LONGVARCHAR})
  136. </insert>
  137. <insert id="insertSelective" parameterType="com.ydtech.modules.admin.model.SysCbitError">
  138. insert into sys_cbit_error
  139. <trim prefix="(" suffix=")" suffixOverrides=",">
  140. <if test="reqno != null">
  141. reqno,
  142. </if>
  143. <if test="requrl != null">
  144. requrl,
  145. </if>
  146. <if test="reqparam != null">
  147. reqparam,
  148. </if>
  149. <if test="errorinfo != null">
  150. errorinfo,
  151. </if>
  152. </trim>
  153. <trim prefix="values (" suffix=")" suffixOverrides=",">
  154. <if test="reqno != null">
  155. #{reqno,jdbcType=VARCHAR},
  156. </if>
  157. <if test="requrl != null">
  158. #{requrl,jdbcType=VARCHAR},
  159. </if>
  160. <if test="reqparam != null">
  161. #{reqparam,jdbcType=VARCHAR},
  162. </if>
  163. <if test="errorinfo != null">
  164. #{errorinfo,jdbcType=LONGVARCHAR},
  165. </if>
  166. </trim>
  167. </insert>
  168. <select id="countByExample" parameterType="com.ydtech.modules.admin.model.SysCbitErrorExample"
  169. resultType="java.lang.Long">
  170. select count(*) from sys_cbit_error
  171. <if test="_parameter != null">
  172. <include refid="Example_Where_Clause"/>
  173. </if>
  174. </select>
  175. <update id="updateByExampleSelective" parameterType="map">
  176. update sys_cbit_error
  177. <set>
  178. <if test="record.reqno != null">
  179. reqno = #{record.reqno,jdbcType=VARCHAR},
  180. </if>
  181. <if test="record.requrl != null">
  182. requrl = #{record.requrl,jdbcType=VARCHAR},
  183. </if>
  184. <if test="record.reqparam != null">
  185. reqparam = #{record.reqparam,jdbcType=VARCHAR},
  186. </if>
  187. <if test="record.errorinfo != null">
  188. errorinfo = #{record.errorinfo,jdbcType=LONGVARCHAR},
  189. </if>
  190. </set>
  191. <if test="_parameter != null">
  192. <include refid="Update_By_Example_Where_Clause"/>
  193. </if>
  194. </update>
  195. <update id="updateByExampleWithBLOBs" parameterType="map">
  196. update sys_cbit_error
  197. set reqno = #{record.reqno,jdbcType=VARCHAR},
  198. requrl = #{record.requrl,jdbcType=VARCHAR},
  199. reqparam = #{record.reqparam,jdbcType=VARCHAR},
  200. errorinfo = #{record.errorinfo,jdbcType=LONGVARCHAR}
  201. <if test="_parameter != null">
  202. <include refid="Update_By_Example_Where_Clause"/>
  203. </if>
  204. </update>
  205. <update id="updateByExample" parameterType="map">
  206. update sys_cbit_error
  207. set reqno = #{record.reqno,jdbcType=VARCHAR},
  208. requrl = #{record.requrl,jdbcType=VARCHAR},
  209. reqparam = #{record.reqparam,jdbcType=VARCHAR}
  210. <if test="_parameter != null">
  211. <include refid="Update_By_Example_Where_Clause"/>
  212. </if>
  213. </update>
  214. <update id="updateByPrimaryKeySelective" parameterType="com.ydtech.modules.admin.model.SysCbitError">
  215. update sys_cbit_error
  216. <set>
  217. <if test="requrl != null">
  218. requrl = #{requrl,jdbcType=VARCHAR},
  219. </if>
  220. <if test="reqparam != null">
  221. reqparam = #{reqparam,jdbcType=VARCHAR},
  222. </if>
  223. <if test="errorinfo != null">
  224. errorinfo = #{errorinfo,jdbcType=LONGVARCHAR},
  225. </if>
  226. </set>
  227. where reqno = #{reqno,jdbcType=VARCHAR}
  228. </update>
  229. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ydtech.modules.admin.model.SysCbitError">
  230. update sys_cbit_error
  231. set requrl = #{requrl,jdbcType=VARCHAR},
  232. reqparam = #{reqparam,jdbcType=VARCHAR},
  233. errorinfo = #{errorinfo,jdbcType=LONGVARCHAR}
  234. where reqno = #{reqno,jdbcType=VARCHAR}
  235. </update>
  236. <update id="updateByPrimaryKey" parameterType="com.ydtech.modules.admin.model.SysCbitError">
  237. update sys_cbit_error
  238. set requrl = #{requrl,jdbcType=VARCHAR},
  239. reqparam = #{reqparam,jdbcType=VARCHAR}
  240. where reqno = #{reqno,jdbcType=VARCHAR}
  241. </update>
  242. </mapper>