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