ソースを参照

优化代码bug

java110 5 年 前
コミット
cce36fc365
共有1 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 4 4
      java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

+ 4 - 4
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

@@ -778,10 +778,10 @@
             and t.community_id= #{communityId}
             and t.community_id= #{communityId}
         </if>
         </if>
         <if test="startTime !=null">
         <if test="startTime !=null">
-            and t.create_time &gt;= #{startTime}
+            and t.end_time &gt;= #{startTime}
         </if>
         </if>
         <if test="endTime !=null">
         <if test="endTime !=null">
-            and t.create_time &lt;= #{endTime}
+            and t.end_time &lt;= #{endTime}
         </if>
         </if>
         ) t
         ) t
     </select>
     </select>
@@ -802,10 +802,10 @@
             and t.community_id= #{communityId}
             and t.community_id= #{communityId}
         </if>
         </if>
         <if test="startTime !=null">
         <if test="startTime !=null">
-            and t.create_time &gt;= #{startTime}
+            and t.end_time &gt;= #{startTime}
         </if>
         </if>
         <if test="endTime !=null">
         <if test="endTime !=null">
-            and t.create_time &lt;= #{endTime}
+            and t.end_time &lt;= #{endTime}
         </if>
         </if>
         <if test="page != -1 and page != null ">
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
             limit #{page}, #{row}