AlarmsnapMapper.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  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.AlarmsnapMapper">
  4. <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Alarmsnap">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="ID" jdbcType="DECIMAL" property="id"/>
  10. <result column="STATIONID" jdbcType="VARCHAR" property="stationid"/>
  11. <result column="PROJECTID" jdbcType="VARCHAR" property="projectid"/>
  12. <result column="LINEID" jdbcType="VARCHAR" property="lineid"/>
  13. <result column="WINDTURBINEID" jdbcType="VARCHAR" property="windturbineid"/>
  14. <result column="ALERTVALUE" jdbcType="DECIMAL" property="alertvalue"/>
  15. <result column="CATEGORY1" jdbcType="VARCHAR" property="category1"/>
  16. <result column="CATEGORY2" jdbcType="VARCHAR" property="category2"/>
  17. <result column="CATEGORY3" jdbcType="VARCHAR" property="category3"/>
  18. <result column="RANK" jdbcType="VARCHAR" property="rank"/>
  19. <result column="ISOPENED" jdbcType="DECIMAL" property="isopened"/>
  20. <result column="STATIONNAME" jdbcType="VARCHAR" property="stationname"/>
  21. <result column="PROJECTNAME" jdbcType="VARCHAR" property="projectname"/>
  22. <result column="LINENAME" jdbcType="VARCHAR" property="linename"/>
  23. <result column="WINDTURBINENAME" jdbcType="VARCHAR" property="windturbinename"/>
  24. <result column="ALERTTEXT" jdbcType="VARCHAR" property="alerttext"/>
  25. <result column="MODELID" jdbcType="VARCHAR" property="modelid"/>
  26. <result column="TESTINGPOINTKEY" jdbcType="VARCHAR" property="testingpointkey"/>
  27. <result column="LASTUPDATETIME" jdbcType="TIMESTAMP" property="lastupdatetime"/>
  28. <result column="DATAINFO" jdbcType="VARCHAR" property="datainfo"/>
  29. </resultMap>
  30. <sql id="Example_Where_Clause">
  31. <!--
  32. WARNING - @mbg.generated
  33. This element is automatically generated by MyBatis Generator, do not modify.
  34. -->
  35. <where>
  36. <foreach collection="oredCriteria" item="criteria" separator="or">
  37. <if test="criteria.valid">
  38. <trim prefix="(" prefixOverrides="and" suffix=")">
  39. <foreach collection="criteria.criteria" item="criterion">
  40. <choose>
  41. <when test="criterion.noValue">
  42. and ${criterion.condition}
  43. </when>
  44. <when test="criterion.singleValue">
  45. and ${criterion.condition} #{criterion.value}
  46. </when>
  47. <when test="criterion.betweenValue">
  48. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  49. </when>
  50. <when test="criterion.listValue">
  51. and ${criterion.condition}
  52. <foreach close=")" collection="criterion.value" item="listItem" open="("
  53. separator=",">
  54. #{listItem}
  55. </foreach>
  56. </when>
  57. </choose>
  58. </foreach>
  59. </trim>
  60. </if>
  61. </foreach>
  62. </where>
  63. </sql>
  64. <sql id="Update_By_Example_Where_Clause">
  65. <!--
  66. WARNING - @mbg.generated
  67. This element is automatically generated by MyBatis Generator, do not modify.
  68. -->
  69. <where>
  70. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  71. <if test="criteria.valid">
  72. <trim prefix="(" prefixOverrides="and" suffix=")">
  73. <foreach collection="criteria.criteria" item="criterion">
  74. <choose>
  75. <when test="criterion.noValue">
  76. and ${criterion.condition}
  77. </when>
  78. <when test="criterion.singleValue">
  79. and ${criterion.condition} #{criterion.value}
  80. </when>
  81. <when test="criterion.betweenValue">
  82. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  83. </when>
  84. <when test="criterion.listValue">
  85. and ${criterion.condition}
  86. <foreach close=")" collection="criterion.value" item="listItem" open="("
  87. separator=",">
  88. #{listItem}
  89. </foreach>
  90. </when>
  91. </choose>
  92. </foreach>
  93. </trim>
  94. </if>
  95. </foreach>
  96. </where>
  97. </sql>
  98. <sql id="Base_Column_List">
  99. <!--
  100. WARNING - @mbg.generated
  101. This element is automatically generated by MyBatis Generator, do not modify.
  102. -->
  103. ID, STATIONID, PROJECTID, LINEID, WINDTURBINEID, ALERTVALUE, CATEGORY1, CATEGORY2,
  104. CATEGORY3, RANK, ISOPENED, STATIONNAME, PROJECTNAME, LINENAME, WINDTURBINENAME, ALERTTEXT,
  105. MODELID, TESTINGPOINTKEY, LASTUPDATETIME, DATAINFO
  106. </sql>
  107. <select id="selectByExample" parameterType="com.gyee.frame.model.auto.AlarmsnapExample" resultMap="BaseResultMap">
  108. <!--
  109. WARNING - @mbg.generated
  110. This element is automatically generated by MyBatis Generator, do not modify.
  111. -->
  112. select
  113. <if test="distinct">
  114. distinct
  115. </if>
  116. <include refid="Base_Column_List"/>
  117. from ALARMSNAP
  118. <if test="_parameter != null">
  119. <include refid="Example_Where_Clause"/>
  120. </if>
  121. <if test="orderByClause != null">
  122. order by ${orderByClause}
  123. </if>
  124. </select>
  125. <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
  126. <!--
  127. WARNING - @mbg.generated
  128. This element is automatically generated by MyBatis Generator, do not modify.
  129. -->
  130. select
  131. <include refid="Base_Column_List"/>
  132. from ALARMSNAP
  133. where ID = #{id,jdbcType=DECIMAL}
  134. </select>
  135. <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
  136. <!--
  137. WARNING - @mbg.generated
  138. This element is automatically generated by MyBatis Generator, do not modify.
  139. -->
  140. delete from ALARMSNAP
  141. where ID = #{id,jdbcType=DECIMAL}
  142. </delete>
  143. <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.AlarmsnapExample">
  144. <!--
  145. WARNING - @mbg.generated
  146. This element is automatically generated by MyBatis Generator, do not modify.
  147. -->
  148. delete from ALARMSNAP
  149. <if test="_parameter != null">
  150. <include refid="Example_Where_Clause"/>
  151. </if>
  152. </delete>
  153. <insert id="insert" parameterType="com.gyee.frame.model.auto.Alarmsnap">
  154. <!--
  155. WARNING - @mbg.generated
  156. This element is automatically generated by MyBatis Generator, do not modify.
  157. -->
  158. insert into ALARMSNAP (ID, STATIONID, PROJECTID,
  159. LINEID, WINDTURBINEID, ALERTVALUE,
  160. CATEGORY1, CATEGORY2, CATEGORY3,
  161. RANK, ISOPENED, STATIONNAME,
  162. PROJECTNAME, LINENAME, WINDTURBINENAME,
  163. ALERTTEXT, MODELID, TESTINGPOINTKEY,
  164. LASTUPDATETIME, DATAINFO)
  165. values (#{id,jdbcType=DECIMAL}, #{stationid,jdbcType=VARCHAR}, #{projectid,jdbcType=VARCHAR},
  166. #{lineid,jdbcType=VARCHAR}, #{windturbineid,jdbcType=VARCHAR}, #{alertvalue,jdbcType=DECIMAL},
  167. #{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR}, #{category3,jdbcType=VARCHAR},
  168. #{rank,jdbcType=VARCHAR}, #{isopened,jdbcType=DECIMAL}, #{stationname,jdbcType=VARCHAR},
  169. #{projectname,jdbcType=VARCHAR}, #{linename,jdbcType=VARCHAR}, #{windturbinename,jdbcType=VARCHAR},
  170. #{alerttext,jdbcType=VARCHAR}, #{modelid,jdbcType=VARCHAR}, #{testingpointkey,jdbcType=VARCHAR},
  171. #{lastupdatetime,jdbcType=TIMESTAMP}, #{datainfo,jdbcType=VARCHAR})
  172. </insert>
  173. <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Alarmsnap">
  174. <!--
  175. WARNING - @mbg.generated
  176. This element is automatically generated by MyBatis Generator, do not modify.
  177. -->
  178. insert into ALARMSNAP
  179. <trim prefix="(" suffix=")" suffixOverrides=",">
  180. <if test="id != null">
  181. ID,
  182. </if>
  183. <if test="stationid != null">
  184. STATIONID,
  185. </if>
  186. <if test="projectid != null">
  187. PROJECTID,
  188. </if>
  189. <if test="lineid != null">
  190. LINEID,
  191. </if>
  192. <if test="windturbineid != null">
  193. WINDTURBINEID,
  194. </if>
  195. <if test="alertvalue != null">
  196. ALERTVALUE,
  197. </if>
  198. <if test="category1 != null">
  199. CATEGORY1,
  200. </if>
  201. <if test="category2 != null">
  202. CATEGORY2,
  203. </if>
  204. <if test="category3 != null">
  205. CATEGORY3,
  206. </if>
  207. <if test="rank != null">
  208. RANK,
  209. </if>
  210. <if test="isopened != null">
  211. ISOPENED,
  212. </if>
  213. <if test="stationname != null">
  214. STATIONNAME,
  215. </if>
  216. <if test="projectname != null">
  217. PROJECTNAME,
  218. </if>
  219. <if test="linename != null">
  220. LINENAME,
  221. </if>
  222. <if test="windturbinename != null">
  223. WINDTURBINENAME,
  224. </if>
  225. <if test="alerttext != null">
  226. ALERTTEXT,
  227. </if>
  228. <if test="modelid != null">
  229. MODELID,
  230. </if>
  231. <if test="testingpointkey != null">
  232. TESTINGPOINTKEY,
  233. </if>
  234. <if test="lastupdatetime != null">
  235. LASTUPDATETIME,
  236. </if>
  237. <if test="datainfo != null">
  238. DATAINFO,
  239. </if>
  240. </trim>
  241. <trim prefix="values (" suffix=")" suffixOverrides=",">
  242. <if test="id != null">
  243. #{id,jdbcType=DECIMAL},
  244. </if>
  245. <if test="stationid != null">
  246. #{stationid,jdbcType=VARCHAR},
  247. </if>
  248. <if test="projectid != null">
  249. #{projectid,jdbcType=VARCHAR},
  250. </if>
  251. <if test="lineid != null">
  252. #{lineid,jdbcType=VARCHAR},
  253. </if>
  254. <if test="windturbineid != null">
  255. #{windturbineid,jdbcType=VARCHAR},
  256. </if>
  257. <if test="alertvalue != null">
  258. #{alertvalue,jdbcType=DECIMAL},
  259. </if>
  260. <if test="category1 != null">
  261. #{category1,jdbcType=VARCHAR},
  262. </if>
  263. <if test="category2 != null">
  264. #{category2,jdbcType=VARCHAR},
  265. </if>
  266. <if test="category3 != null">
  267. #{category3,jdbcType=VARCHAR},
  268. </if>
  269. <if test="rank != null">
  270. #{rank,jdbcType=VARCHAR},
  271. </if>
  272. <if test="isopened != null">
  273. #{isopened,jdbcType=DECIMAL},
  274. </if>
  275. <if test="stationname != null">
  276. #{stationname,jdbcType=VARCHAR},
  277. </if>
  278. <if test="projectname != null">
  279. #{projectname,jdbcType=VARCHAR},
  280. </if>
  281. <if test="linename != null">
  282. #{linename,jdbcType=VARCHAR},
  283. </if>
  284. <if test="windturbinename != null">
  285. #{windturbinename,jdbcType=VARCHAR},
  286. </if>
  287. <if test="alerttext != null">
  288. #{alerttext,jdbcType=VARCHAR},
  289. </if>
  290. <if test="modelid != null">
  291. #{modelid,jdbcType=VARCHAR},
  292. </if>
  293. <if test="testingpointkey != null">
  294. #{testingpointkey,jdbcType=VARCHAR},
  295. </if>
  296. <if test="lastupdatetime != null">
  297. #{lastupdatetime,jdbcType=TIMESTAMP},
  298. </if>
  299. <if test="datainfo != null">
  300. #{datainfo,jdbcType=VARCHAR},
  301. </if>
  302. </trim>
  303. </insert>
  304. <select id="countByExample" parameterType="com.gyee.frame.model.auto.AlarmsnapExample" resultType="java.lang.Long">
  305. <!--
  306. WARNING - @mbg.generated
  307. This element is automatically generated by MyBatis Generator, do not modify.
  308. -->
  309. select count(*) from ALARMSNAP
  310. <if test="_parameter != null">
  311. <include refid="Example_Where_Clause"/>
  312. </if>
  313. </select>
  314. <update id="updateByExampleSelective" parameterType="map">
  315. <!--
  316. WARNING - @mbg.generated
  317. This element is automatically generated by MyBatis Generator, do not modify.
  318. -->
  319. update ALARMSNAP
  320. <set>
  321. <if test="record.id != null">
  322. ID = #{record.id,jdbcType=DECIMAL},
  323. </if>
  324. <if test="record.stationid != null">
  325. STATIONID = #{record.stationid,jdbcType=VARCHAR},
  326. </if>
  327. <if test="record.projectid != null">
  328. PROJECTID = #{record.projectid,jdbcType=VARCHAR},
  329. </if>
  330. <if test="record.lineid != null">
  331. LINEID = #{record.lineid,jdbcType=VARCHAR},
  332. </if>
  333. <if test="record.windturbineid != null">
  334. WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
  335. </if>
  336. <if test="record.alertvalue != null">
  337. ALERTVALUE = #{record.alertvalue,jdbcType=DECIMAL},
  338. </if>
  339. <if test="record.category1 != null">
  340. CATEGORY1 = #{record.category1,jdbcType=VARCHAR},
  341. </if>
  342. <if test="record.category2 != null">
  343. CATEGORY2 = #{record.category2,jdbcType=VARCHAR},
  344. </if>
  345. <if test="record.category3 != null">
  346. CATEGORY3 = #{record.category3,jdbcType=VARCHAR},
  347. </if>
  348. <if test="record.rank != null">
  349. RANK = #{record.rank,jdbcType=VARCHAR},
  350. </if>
  351. <if test="record.isopened != null">
  352. ISOPENED = #{record.isopened,jdbcType=DECIMAL},
  353. </if>
  354. <if test="record.stationname != null">
  355. STATIONNAME = #{record.stationname,jdbcType=VARCHAR},
  356. </if>
  357. <if test="record.projectname != null">
  358. PROJECTNAME = #{record.projectname,jdbcType=VARCHAR},
  359. </if>
  360. <if test="record.linename != null">
  361. LINENAME = #{record.linename,jdbcType=VARCHAR},
  362. </if>
  363. <if test="record.windturbinename != null">
  364. WINDTURBINENAME = #{record.windturbinename,jdbcType=VARCHAR},
  365. </if>
  366. <if test="record.alerttext != null">
  367. ALERTTEXT = #{record.alerttext,jdbcType=VARCHAR},
  368. </if>
  369. <if test="record.modelid != null">
  370. MODELID = #{record.modelid,jdbcType=VARCHAR},
  371. </if>
  372. <if test="record.testingpointkey != null">
  373. TESTINGPOINTKEY = #{record.testingpointkey,jdbcType=VARCHAR},
  374. </if>
  375. <if test="record.lastupdatetime != null">
  376. LASTUPDATETIME = #{record.lastupdatetime,jdbcType=TIMESTAMP},
  377. </if>
  378. <if test="record.datainfo != null">
  379. DATAINFO = #{record.datainfo,jdbcType=VARCHAR},
  380. </if>
  381. </set>
  382. <if test="_parameter != null">
  383. <include refid="Update_By_Example_Where_Clause"/>
  384. </if>
  385. </update>
  386. <update id="updateByExample" parameterType="map">
  387. <!--
  388. WARNING - @mbg.generated
  389. This element is automatically generated by MyBatis Generator, do not modify.
  390. -->
  391. update ALARMSNAP
  392. set ID = #{record.id,jdbcType=DECIMAL},
  393. STATIONID = #{record.stationid,jdbcType=VARCHAR},
  394. PROJECTID = #{record.projectid,jdbcType=VARCHAR},
  395. LINEID = #{record.lineid,jdbcType=VARCHAR},
  396. WINDTURBINEID = #{record.windturbineid,jdbcType=VARCHAR},
  397. ALERTVALUE = #{record.alertvalue,jdbcType=DECIMAL},
  398. CATEGORY1 = #{record.category1,jdbcType=VARCHAR},
  399. CATEGORY2 = #{record.category2,jdbcType=VARCHAR},
  400. CATEGORY3 = #{record.category3,jdbcType=VARCHAR},
  401. RANK = #{record.rank,jdbcType=VARCHAR},
  402. ISOPENED = #{record.isopened,jdbcType=DECIMAL},
  403. STATIONNAME = #{record.stationname,jdbcType=VARCHAR},
  404. PROJECTNAME = #{record.projectname,jdbcType=VARCHAR},
  405. LINENAME = #{record.linename,jdbcType=VARCHAR},
  406. WINDTURBINENAME = #{record.windturbinename,jdbcType=VARCHAR},
  407. ALERTTEXT = #{record.alerttext,jdbcType=VARCHAR},
  408. MODELID = #{record.modelid,jdbcType=VARCHAR},
  409. TESTINGPOINTKEY = #{record.testingpointkey,jdbcType=VARCHAR},
  410. LASTUPDATETIME = #{record.lastupdatetime,jdbcType=TIMESTAMP},
  411. DATAINFO = #{record.datainfo,jdbcType=VARCHAR}
  412. <if test="_parameter != null">
  413. <include refid="Update_By_Example_Where_Clause"/>
  414. </if>
  415. </update>
  416. <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Alarmsnap">
  417. <!--
  418. WARNING - @mbg.generated
  419. This element is automatically generated by MyBatis Generator, do not modify.
  420. -->
  421. update ALARMSNAP
  422. <set>
  423. <if test="stationid != null">
  424. STATIONID = #{stationid,jdbcType=VARCHAR},
  425. </if>
  426. <if test="projectid != null">
  427. PROJECTID = #{projectid,jdbcType=VARCHAR},
  428. </if>
  429. <if test="lineid != null">
  430. LINEID = #{lineid,jdbcType=VARCHAR},
  431. </if>
  432. <if test="windturbineid != null">
  433. WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
  434. </if>
  435. <if test="alertvalue != null">
  436. ALERTVALUE = #{alertvalue,jdbcType=DECIMAL},
  437. </if>
  438. <if test="category1 != null">
  439. CATEGORY1 = #{category1,jdbcType=VARCHAR},
  440. </if>
  441. <if test="category2 != null">
  442. CATEGORY2 = #{category2,jdbcType=VARCHAR},
  443. </if>
  444. <if test="category3 != null">
  445. CATEGORY3 = #{category3,jdbcType=VARCHAR},
  446. </if>
  447. <if test="rank != null">
  448. RANK = #{rank,jdbcType=VARCHAR},
  449. </if>
  450. <if test="isopened != null">
  451. ISOPENED = #{isopened,jdbcType=DECIMAL},
  452. </if>
  453. <if test="stationname != null">
  454. STATIONNAME = #{stationname,jdbcType=VARCHAR},
  455. </if>
  456. <if test="projectname != null">
  457. PROJECTNAME = #{projectname,jdbcType=VARCHAR},
  458. </if>
  459. <if test="linename != null">
  460. LINENAME = #{linename,jdbcType=VARCHAR},
  461. </if>
  462. <if test="windturbinename != null">
  463. WINDTURBINENAME = #{windturbinename,jdbcType=VARCHAR},
  464. </if>
  465. <if test="alerttext != null">
  466. ALERTTEXT = #{alerttext,jdbcType=VARCHAR},
  467. </if>
  468. <if test="modelid != null">
  469. MODELID = #{modelid,jdbcType=VARCHAR},
  470. </if>
  471. <if test="testingpointkey != null">
  472. TESTINGPOINTKEY = #{testingpointkey,jdbcType=VARCHAR},
  473. </if>
  474. <if test="lastupdatetime != null">
  475. LASTUPDATETIME = #{lastupdatetime,jdbcType=TIMESTAMP},
  476. </if>
  477. <if test="datainfo != null">
  478. DATAINFO = #{datainfo,jdbcType=VARCHAR},
  479. </if>
  480. </set>
  481. where ID = #{id,jdbcType=DECIMAL}
  482. </update>
  483. <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Alarmsnap">
  484. <!--
  485. WARNING - @mbg.generated
  486. This element is automatically generated by MyBatis Generator, do not modify.
  487. -->
  488. update ALARMSNAP
  489. set STATIONID = #{stationid,jdbcType=VARCHAR},
  490. PROJECTID = #{projectid,jdbcType=VARCHAR},
  491. LINEID = #{lineid,jdbcType=VARCHAR},
  492. WINDTURBINEID = #{windturbineid,jdbcType=VARCHAR},
  493. ALERTVALUE = #{alertvalue,jdbcType=DECIMAL},
  494. CATEGORY1 = #{category1,jdbcType=VARCHAR},
  495. CATEGORY2 = #{category2,jdbcType=VARCHAR},
  496. CATEGORY3 = #{category3,jdbcType=VARCHAR},
  497. RANK = #{rank,jdbcType=VARCHAR},
  498. ISOPENED = #{isopened,jdbcType=DECIMAL},
  499. STATIONNAME = #{stationname,jdbcType=VARCHAR},
  500. PROJECTNAME = #{projectname,jdbcType=VARCHAR},
  501. LINENAME = #{linename,jdbcType=VARCHAR},
  502. WINDTURBINENAME = #{windturbinename,jdbcType=VARCHAR},
  503. ALERTTEXT = #{alerttext,jdbcType=VARCHAR},
  504. MODELID = #{modelid,jdbcType=VARCHAR},
  505. TESTINGPOINTKEY = #{testingpointkey,jdbcType=VARCHAR},
  506. LASTUPDATETIME = #{lastupdatetime,jdbcType=TIMESTAMP},
  507. DATAINFO = #{datainfo,jdbcType=VARCHAR}
  508. where ID = #{id,jdbcType=DECIMAL}
  509. </update>
  510. <select id="getAlarmhistoryList" resultType="com.gyee.frame.model.custom.TotalNumsVo">
  511. select distinct b.windturbineid,b.alertvalue from ${tname} a,alarmsnap b
  512. where a.snapid = b.id and category1='windturbine' and b.category2 is not null
  513. and b.category2!='other'
  514. and a.alerttime>= to_date('${beginDate}','YYYY-MM-DD HH24:MI:SS') and a.alerttime &lt; to_date('${endDate}','YYYY-MM-DD HH24:MI:SS')
  515. </select>
  516. <select id="findAlertrulefailuresubMap" resultType="com.gyee.frame.model.custom.TotalNumVo">
  517. select t.altype typeId,r.ednavalue numbers,r.id,t.name from alertrule2 r,alertrulefailuresub t where t.tid=r.id and t.altype is not null
  518. </select>
  519. </mapper>