FaultStatisticWindturbineMapper.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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.wisdom.alarm.sharding.mapper.FaultStatisticWindturbineMapper">
  4. <select id="selectFaultStatisticWindturbineByyearandmonth"
  5. resultType="com.gyee.wisdom.alarm.sharding.entity.FaultStatisticWindturbine">
  6. select *
  7. from FaultStatisticWindturbine
  8. <where>
  9. <if test="year !=null and year !=''">
  10. and year = #{year}
  11. </if>
  12. <if test="month !=null and month !=''">
  13. and month = #{month}
  14. </if>
  15. <if test="warningtype !=null and warningtype !=''">
  16. and warningtype =#{warningtype}
  17. </if>
  18. <if test="windturbineId !=null and windturbineId !=''">
  19. and windturbineId = #{windturbineId}
  20. </if>
  21. <if test="stationid !=null and stationid !=''">
  22. and windpowerstationid = #{stationid}
  23. </if>
  24. </where>
  25. </select>
  26. </mapper>