|
@@ -29,11 +29,9 @@
|
|
<if test="getWaterType !=null and getWaterType != ''">
|
|
<if test="getWaterType !=null and getWaterType != ''">
|
|
and `取水形式` = #{getWaterType}
|
|
and `取水形式` = #{getWaterType}
|
|
</if>
|
|
</if>
|
|
- <if test="startTime !=null">
|
|
|
|
- and `BDP_AUDIT` >= #{startTime}
|
|
|
|
- </if>
|
|
|
|
- <if test="endTime !=null">
|
|
|
|
- and `BDP_AUDIT` <= #{endTime}
|
|
|
|
|
|
+ <if test="startTime != null and endTime != null">
|
|
|
|
+ and `BDP_AUDIT` between STR_TO_DATE(#{startTime},'%Y-%m-%d %H:%i:%s')
|
|
|
|
+ and STR_TO_DATE(#{endTime},'%Y-%m-%d %H:%i:%s')
|
|
</if>
|
|
</if>
|
|
<if test="waterFlag !=null and waterFlag != ''">
|
|
<if test="waterFlag !=null and waterFlag != ''">
|
|
and `可用状态` = #{waterFlag}
|
|
and `可用状态` = #{waterFlag}
|