WindsubstationMapper.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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.WindsubstationMapper">
  4. <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Windsubstation">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id 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="ANAME" jdbcType="VARCHAR" property="aname" />
  13. <result column="WINDPOWERSTATIONID" jdbcType="VARCHAR" property="windpowerstationid" />
  14. <result column="ORDERNUM" jdbcType="DECIMAL" property="ordernum" />
  15. <result column="CAPACITY" jdbcType="DECIMAL" property="capacity" />
  16. <result column="CAPACITYUNIT" jdbcType="VARCHAR" property="capacityunit" />
  17. <result column="QUANTITY" jdbcType="DECIMAL" property="quantity" />
  18. <result column="AGCSCALE" jdbcType="VARCHAR" property="agcscale" />
  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. ID, CODE, NAME, ANAME, WINDPOWERSTATIONID, ORDERNUM, CAPACITY, CAPACITYUNIT, QUANTITY,
  92. AGCSCALE
  93. </sql>
  94. <select id="selectByExample" parameterType="com.gyee.frame.model.auto.WindsubstationExample" 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 WINDSUBSTATION
  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="BaseResultMap">
  113. <!--
  114. WARNING - @mbg.generated
  115. This element is automatically generated by MyBatis Generator, do not modify.
  116. -->
  117. select
  118. <include refid="Base_Column_List" />
  119. from WINDSUBSTATION
  120. where ID = #{id,jdbcType=VARCHAR}
  121. </select>
  122. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  123. <!--
  124. WARNING - @mbg.generated
  125. This element is automatically generated by MyBatis Generator, do not modify.
  126. -->
  127. delete from WINDSUBSTATION
  128. where ID = #{id,jdbcType=VARCHAR}
  129. </delete>
  130. <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.WindsubstationExample">
  131. <!--
  132. WARNING - @mbg.generated
  133. This element is automatically generated by MyBatis Generator, do not modify.
  134. -->
  135. delete from WINDSUBSTATION
  136. <if test="_parameter != null">
  137. <include refid="Example_Where_Clause" />
  138. </if>
  139. </delete>
  140. <insert id="insert" parameterType="com.gyee.frame.model.auto.Windsubstation">
  141. <!--
  142. WARNING - @mbg.generated
  143. This element is automatically generated by MyBatis Generator, do not modify.
  144. -->
  145. insert into WINDSUBSTATION (ID, CODE, NAME,
  146. ANAME, WINDPOWERSTATIONID, ORDERNUM,
  147. CAPACITY, CAPACITYUNIT, QUANTITY,
  148. AGCSCALE)
  149. values (#{id,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
  150. #{aname,jdbcType=VARCHAR}, #{windpowerstationid,jdbcType=VARCHAR}, #{ordernum,jdbcType=DECIMAL},
  151. #{capacity,jdbcType=DECIMAL}, #{capacityunit,jdbcType=VARCHAR}, #{quantity,jdbcType=DECIMAL},
  152. #{agcscale,jdbcType=VARCHAR})
  153. </insert>
  154. <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Windsubstation">
  155. <!--
  156. WARNING - @mbg.generated
  157. This element is automatically generated by MyBatis Generator, do not modify.
  158. -->
  159. insert into WINDSUBSTATION
  160. <trim prefix="(" suffix=")" suffixOverrides=",">
  161. <if test="id != null">
  162. ID,
  163. </if>
  164. <if test="code != null">
  165. CODE,
  166. </if>
  167. <if test="name != null">
  168. NAME,
  169. </if>
  170. <if test="aname != null">
  171. ANAME,
  172. </if>
  173. <if test="windpowerstationid != null">
  174. WINDPOWERSTATIONID,
  175. </if>
  176. <if test="ordernum != null">
  177. ORDERNUM,
  178. </if>
  179. <if test="capacity != null">
  180. CAPACITY,
  181. </if>
  182. <if test="capacityunit != null">
  183. CAPACITYUNIT,
  184. </if>
  185. <if test="quantity != null">
  186. QUANTITY,
  187. </if>
  188. <if test="agcscale != null">
  189. AGCSCALE,
  190. </if>
  191. </trim>
  192. <trim prefix="values (" suffix=")" suffixOverrides=",">
  193. <if test="id != null">
  194. #{id,jdbcType=VARCHAR},
  195. </if>
  196. <if test="code != null">
  197. #{code,jdbcType=VARCHAR},
  198. </if>
  199. <if test="name != null">
  200. #{name,jdbcType=VARCHAR},
  201. </if>
  202. <if test="aname != null">
  203. #{aname,jdbcType=VARCHAR},
  204. </if>
  205. <if test="windpowerstationid != null">
  206. #{windpowerstationid,jdbcType=VARCHAR},
  207. </if>
  208. <if test="ordernum != null">
  209. #{ordernum,jdbcType=DECIMAL},
  210. </if>
  211. <if test="capacity != null">
  212. #{capacity,jdbcType=DECIMAL},
  213. </if>
  214. <if test="capacityunit != null">
  215. #{capacityunit,jdbcType=VARCHAR},
  216. </if>
  217. <if test="quantity != null">
  218. #{quantity,jdbcType=DECIMAL},
  219. </if>
  220. <if test="agcscale != null">
  221. #{agcscale,jdbcType=VARCHAR},
  222. </if>
  223. </trim>
  224. </insert>
  225. <select id="countByExample" parameterType="com.gyee.frame.model.auto.WindsubstationExample" resultType="java.lang.Long">
  226. <!--
  227. WARNING - @mbg.generated
  228. This element is automatically generated by MyBatis Generator, do not modify.
  229. -->
  230. select count(*) from WINDSUBSTATION
  231. <if test="_parameter != null">
  232. <include refid="Example_Where_Clause" />
  233. </if>
  234. </select>
  235. <update id="updateByExampleSelective" parameterType="map">
  236. <!--
  237. WARNING - @mbg.generated
  238. This element is automatically generated by MyBatis Generator, do not modify.
  239. -->
  240. update WINDSUBSTATION
  241. <set>
  242. <if test="record.id != null">
  243. ID = #{record.id,jdbcType=VARCHAR},
  244. </if>
  245. <if test="record.code != null">
  246. CODE = #{record.code,jdbcType=VARCHAR},
  247. </if>
  248. <if test="record.name != null">
  249. NAME = #{record.name,jdbcType=VARCHAR},
  250. </if>
  251. <if test="record.aname != null">
  252. ANAME = #{record.aname,jdbcType=VARCHAR},
  253. </if>
  254. <if test="record.windpowerstationid != null">
  255. WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
  256. </if>
  257. <if test="record.ordernum != null">
  258. ORDERNUM = #{record.ordernum,jdbcType=DECIMAL},
  259. </if>
  260. <if test="record.capacity != null">
  261. CAPACITY = #{record.capacity,jdbcType=DECIMAL},
  262. </if>
  263. <if test="record.capacityunit != null">
  264. CAPACITYUNIT = #{record.capacityunit,jdbcType=VARCHAR},
  265. </if>
  266. <if test="record.quantity != null">
  267. QUANTITY = #{record.quantity,jdbcType=DECIMAL},
  268. </if>
  269. <if test="record.agcscale != null">
  270. AGCSCALE = #{record.agcscale,jdbcType=VARCHAR},
  271. </if>
  272. </set>
  273. <if test="_parameter != null">
  274. <include refid="Update_By_Example_Where_Clause" />
  275. </if>
  276. </update>
  277. <update id="updateByExample" parameterType="map">
  278. <!--
  279. WARNING - @mbg.generated
  280. This element is automatically generated by MyBatis Generator, do not modify.
  281. -->
  282. update WINDSUBSTATION
  283. set ID = #{record.id,jdbcType=VARCHAR},
  284. CODE = #{record.code,jdbcType=VARCHAR},
  285. NAME = #{record.name,jdbcType=VARCHAR},
  286. ANAME = #{record.aname,jdbcType=VARCHAR},
  287. WINDPOWERSTATIONID = #{record.windpowerstationid,jdbcType=VARCHAR},
  288. ORDERNUM = #{record.ordernum,jdbcType=DECIMAL},
  289. CAPACITY = #{record.capacity,jdbcType=DECIMAL},
  290. CAPACITYUNIT = #{record.capacityunit,jdbcType=VARCHAR},
  291. QUANTITY = #{record.quantity,jdbcType=DECIMAL},
  292. AGCSCALE = #{record.agcscale,jdbcType=VARCHAR}
  293. <if test="_parameter != null">
  294. <include refid="Update_By_Example_Where_Clause" />
  295. </if>
  296. </update>
  297. <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Windsubstation">
  298. <!--
  299. WARNING - @mbg.generated
  300. This element is automatically generated by MyBatis Generator, do not modify.
  301. -->
  302. update WINDSUBSTATION
  303. <set>
  304. <if test="code != null">
  305. CODE = #{code,jdbcType=VARCHAR},
  306. </if>
  307. <if test="name != null">
  308. NAME = #{name,jdbcType=VARCHAR},
  309. </if>
  310. <if test="aname != null">
  311. ANAME = #{aname,jdbcType=VARCHAR},
  312. </if>
  313. <if test="windpowerstationid != null">
  314. WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
  315. </if>
  316. <if test="ordernum != null">
  317. ORDERNUM = #{ordernum,jdbcType=DECIMAL},
  318. </if>
  319. <if test="capacity != null">
  320. CAPACITY = #{capacity,jdbcType=DECIMAL},
  321. </if>
  322. <if test="capacityunit != null">
  323. CAPACITYUNIT = #{capacityunit,jdbcType=VARCHAR},
  324. </if>
  325. <if test="quantity != null">
  326. QUANTITY = #{quantity,jdbcType=DECIMAL},
  327. </if>
  328. <if test="agcscale != null">
  329. AGCSCALE = #{agcscale,jdbcType=VARCHAR},
  330. </if>
  331. </set>
  332. where ID = #{id,jdbcType=VARCHAR}
  333. </update>
  334. <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Windsubstation">
  335. <!--
  336. WARNING - @mbg.generated
  337. This element is automatically generated by MyBatis Generator, do not modify.
  338. -->
  339. update WINDSUBSTATION
  340. set CODE = #{code,jdbcType=VARCHAR},
  341. NAME = #{name,jdbcType=VARCHAR},
  342. ANAME = #{aname,jdbcType=VARCHAR},
  343. WINDPOWERSTATIONID = #{windpowerstationid,jdbcType=VARCHAR},
  344. ORDERNUM = #{ordernum,jdbcType=DECIMAL},
  345. CAPACITY = #{capacity,jdbcType=DECIMAL},
  346. CAPACITYUNIT = #{capacityunit,jdbcType=VARCHAR},
  347. QUANTITY = #{quantity,jdbcType=DECIMAL},
  348. AGCSCALE = #{agcscale,jdbcType=VARCHAR}
  349. where ID = #{id,jdbcType=VARCHAR}
  350. </update>
  351. </mapper>