PhotovoltaicStandardPointMapper.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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.gyee.frame.mapper.auto.PhotovoltaicStandardPointMapper">
  4. <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.PhotovoltaicStandardPoint">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <result column="id" jdbcType="VARCHAR" property="id" />
  10. <result column="code" jdbcType="VARCHAR" property="code" />
  11. <result column="name" jdbcType="VARCHAR" property="name" />
  12. <result column="uniformcode" jdbcType="VARCHAR" property="uniformcode" />
  13. <result column="ordernum" jdbcType="VARCHAR" property="ordernum" />
  14. </resultMap>
  15. <sql id="Example_Where_Clause">
  16. <!--
  17. WARNING - @mbg.generated
  18. This element is automatically generated by MyBatis Generator, do not modify.
  19. -->
  20. <where>
  21. <foreach collection="oredCriteria" item="criteria" separator="or">
  22. <if test="criteria.valid">
  23. <trim prefix="(" prefixOverrides="and" suffix=")">
  24. <foreach collection="criteria.criteria" item="criterion">
  25. <choose>
  26. <when test="criterion.noValue">
  27. and ${criterion.condition}
  28. </when>
  29. <when test="criterion.singleValue">
  30. and ${criterion.condition} #{criterion.value}
  31. </when>
  32. <when test="criterion.betweenValue">
  33. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  34. </when>
  35. <when test="criterion.listValue">
  36. and ${criterion.condition}
  37. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  38. #{listItem}
  39. </foreach>
  40. </when>
  41. </choose>
  42. </foreach>
  43. </trim>
  44. </if>
  45. </foreach>
  46. </where>
  47. </sql>
  48. <sql id="Update_By_Example_Where_Clause">
  49. <!--
  50. WARNING - @mbg.generated
  51. This element is automatically generated by MyBatis Generator, do not modify.
  52. -->
  53. <where>
  54. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  55. <if test="criteria.valid">
  56. <trim prefix="(" prefixOverrides="and" suffix=")">
  57. <foreach collection="criteria.criteria" item="criterion">
  58. <choose>
  59. <when test="criterion.noValue">
  60. and ${criterion.condition}
  61. </when>
  62. <when test="criterion.singleValue">
  63. and ${criterion.condition} #{criterion.value}
  64. </when>
  65. <when test="criterion.betweenValue">
  66. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  67. </when>
  68. <when test="criterion.listValue">
  69. and ${criterion.condition}
  70. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  71. #{listItem}
  72. </foreach>
  73. </when>
  74. </choose>
  75. </foreach>
  76. </trim>
  77. </if>
  78. </foreach>
  79. </where>
  80. </sql>
  81. <sql id="Base_Column_List">
  82. <!--
  83. WARNING - @mbg.generated
  84. This element is automatically generated by MyBatis Generator, do not modify.
  85. -->
  86. id, code, name, uniformcode, ordernum
  87. </sql>
  88. <select id="selectByExample" parameterType="com.gyee.frame.model.auto.PhotovoltaicStandardPointExample" resultMap="BaseResultMap">
  89. <!--
  90. WARNING - @mbg.generated
  91. This element is automatically generated by MyBatis Generator, do not modify.
  92. -->
  93. select
  94. <if test="distinct">
  95. distinct
  96. </if>
  97. <include refid="Base_Column_List" />
  98. from photovoltaicstandardpoint
  99. <if test="_parameter != null">
  100. <include refid="Example_Where_Clause" />
  101. </if>
  102. <if test="orderByClause != null">
  103. order by ${orderByClause}
  104. </if>
  105. </select>
  106. <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.PhotovoltaicStandardPointExample">
  107. <!--
  108. WARNING - @mbg.generated
  109. This element is automatically generated by MyBatis Generator, do not modify.
  110. -->
  111. delete from photovoltaicstandardpoint
  112. <if test="_parameter != null">
  113. <include refid="Example_Where_Clause" />
  114. </if>
  115. </delete>
  116. <insert id="insert" parameterType="com.gyee.frame.model.auto.PhotovoltaicStandardPoint">
  117. <!--
  118. WARNING - @mbg.generated
  119. This element is automatically generated by MyBatis Generator, do not modify.
  120. -->
  121. insert into photovoltaicstandardpoint (id, code, name,
  122. uniformcode, ordernum)
  123. values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
  124. #{uniformcode,jdbcType=VARCHAR}, #{ordernum,jdbcType=VARCHAR})
  125. </insert>
  126. <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.PhotovoltaicStandardPoint">
  127. <!--
  128. WARNING - @mbg.generated
  129. This element is automatically generated by MyBatis Generator, do not modify.
  130. -->
  131. insert into photovoltaicstandardpoint
  132. <trim prefix="(" suffix=")" suffixOverrides=",">
  133. <if test="id != null">
  134. id,
  135. </if>
  136. <if test="code != null">
  137. code,
  138. </if>
  139. <if test="name != null">
  140. name,
  141. </if>
  142. <if test="uniformcode != null">
  143. uniformcode,
  144. </if>
  145. <if test="ordernum != null">
  146. ordernum,
  147. </if>
  148. </trim>
  149. <trim prefix="values (" suffix=")" suffixOverrides=",">
  150. <if test="id != null">
  151. #{id,jdbcType=VARCHAR},
  152. </if>
  153. <if test="code != null">
  154. #{code,jdbcType=VARCHAR},
  155. </if>
  156. <if test="name != null">
  157. #{name,jdbcType=VARCHAR},
  158. </if>
  159. <if test="uniformcode != null">
  160. #{uniformcode,jdbcType=VARCHAR},
  161. </if>
  162. <if test="ordernum != null">
  163. #{ordernum,jdbcType=VARCHAR},
  164. </if>
  165. </trim>
  166. </insert>
  167. <select id="countByExample" parameterType="com.gyee.frame.model.auto.PhotovoltaicStandardPointExample" resultType="java.lang.Long">
  168. <!--
  169. WARNING - @mbg.generated
  170. This element is automatically generated by MyBatis Generator, do not modify.
  171. -->
  172. select count(*) from photovoltaicstandardpoint
  173. <if test="_parameter != null">
  174. <include refid="Example_Where_Clause" />
  175. </if>
  176. </select>
  177. <update id="updateByExampleSelective" parameterType="map">
  178. <!--
  179. WARNING - @mbg.generated
  180. This element is automatically generated by MyBatis Generator, do not modify.
  181. -->
  182. update photovoltaicstandardpoint
  183. <set>
  184. <if test="record.id != null">
  185. id = #{record.id,jdbcType=VARCHAR},
  186. </if>
  187. <if test="record.code != null">
  188. code = #{record.code,jdbcType=VARCHAR},
  189. </if>
  190. <if test="record.name != null">
  191. name = #{record.name,jdbcType=VARCHAR},
  192. </if>
  193. <if test="record.uniformcode != null">
  194. uniformcode = #{record.uniformcode,jdbcType=VARCHAR},
  195. </if>
  196. <if test="record.ordernum != null">
  197. ordernum = #{record.ordernum,jdbcType=VARCHAR},
  198. </if>
  199. </set>
  200. <if test="_parameter != null">
  201. <include refid="Update_By_Example_Where_Clause" />
  202. </if>
  203. </update>
  204. <update id="updateByExample" parameterType="map">
  205. <!--
  206. WARNING - @mbg.generated
  207. This element is automatically generated by MyBatis Generator, do not modify.
  208. -->
  209. update photovoltaicstandardpoint
  210. set id = #{record.id,jdbcType=VARCHAR},
  211. code = #{record.code,jdbcType=VARCHAR},
  212. name = #{record.name,jdbcType=VARCHAR},
  213. uniformcode = #{record.uniformcode,jdbcType=VARCHAR},
  214. ordernum = #{record.ordernum,jdbcType=VARCHAR}
  215. <if test="_parameter != null">
  216. <include refid="Update_By_Example_Where_Clause" />
  217. </if>
  218. </update>
  219. </mapper>