Browse Source

bug修复

lihui001 3 years ago
parent
commit
9d968bf54b

+ 3 - 0
zoniot-rmcp/zoniot-rmcp-core/src/main/java/com/zcxk/rmcp/core/mapper/ReadRate7Day.xml

@@ -67,6 +67,9 @@
     <if test="dto.readRateBegin == null and dto.readRateEnd != null">
       and #{dto.readRateEnd} >= rd.read_rate
     </if>
+    <if test="dto.readRateBegin != null and dto.readRateEnd != null">
+      and rd.read_rate BETWEEN #{dto.readRateBegin} and  #{dto.readRateEnd}
+    </if>
     <include refid="permissionCondition"></include>
   </select>
 

+ 3 - 0
zoniot-rmcp/zoniot-rmcp-core/src/main/java/com/zcxk/rmcp/core/mapper/ReadRateMonth.xml

@@ -66,6 +66,9 @@
     <if test="dto.readRateBegin == null and dto.readRateEnd != null">
       and #{dto.readRateEnd} >= rd.read_rate
     </if>
+    <if test="dto.readRateBegin != null and dto.readRateEnd != null">
+      and rd.read_rate BETWEEN #{dto.readRateBegin} and  #{dto.readRateEnd}
+    </if>
     <include refid="permissionCondition"></include>
   </select>
 

+ 3 - 0
zoniot-rmcp/zoniot-rmcp-core/src/main/java/com/zcxk/rmcp/core/mapper/ReadRateToday.xml

@@ -67,6 +67,9 @@
     <if test="dto.readRateBegin == null and dto.readRateEnd != null">
       and #{dto.readRateEnd} >= rd.read_rate
     </if>
+    <if test="dto.readRateBegin != null and dto.readRateEnd != null">
+      and rd.read_rate BETWEEN #{dto.readRateBegin} and  #{dto.readRateEnd}
+    </if>
     <include refid="permissionCondition"></include>
   </select>
 

+ 3 - 0
zoniot-rmcp/zoniot-rmcp-core/src/main/java/com/zcxk/rmcp/core/mapper/ReadRateYesterday.xml

@@ -66,6 +66,9 @@
     <if test="dto.readRateBegin == null and dto.readRateEnd != null">
       and #{dto.readRateEnd} >= rd.read_rate
     </if>
+    <if test="dto.readRateBegin != null and dto.readRateEnd != null">
+      and rd.read_rate BETWEEN #{dto.readRateBegin} and  #{dto.readRateEnd}
+    </if>
     <include refid="permissionCondition"></include>
   </select>