CurvefittingmonthmainMapper.xml 14 KB

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