|
@@ -23,13 +23,19 @@
|
|
|
group by tower_code) aotr on at.anemometer_code = aotr.tower_code
|
|
|
where 1=1 and del_state = 0
|
|
|
<if test="item.anemometerName!=null">
|
|
|
- and anemometer_name = #{item.anemometerName}
|
|
|
+ and at.anemometer_name = #{item.anemometerName}
|
|
|
</if>
|
|
|
<if test="item.anemometerCode!=null">
|
|
|
- and anemometer_code = #{item.anemometerCode}
|
|
|
+ and at.anemometer_code = #{item.anemometerCode}
|
|
|
</if>
|
|
|
<if test="item.state!=null">
|
|
|
- and state = #{item.state}
|
|
|
+ and at.state = #{item.state}
|
|
|
+ </if>
|
|
|
+ <if test="item.beginTime != null and item.beginTime != ''">
|
|
|
+ and at.create_time <![CDATA[>= ]]> #{item.beginTime}
|
|
|
+ </if>
|
|
|
+ <if test="item.endTime != null and item.endTime != ''">
|
|
|
+ and at.create_time <![CDATA[<= ]]> #{item.endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
|