2 Commits 0ea2aeda3a ... 35b94c2d70

Author SHA1 Message Date
  hanzhen 35b94c2d70 修改redis失效时间 3 years ago
  hanzhen 5222a00d30 查询统计》按年归档统计查询逻辑调整修复 3 years ago

+ 1 - 1
src/main/java/com/gz/common/DataGlobalVariable.java

@@ -86,7 +86,7 @@ public class DataGlobalVariable {
     /** ---------------------统计相关 ------------------------*/
     /** ---------------------统计相关 ------------------------*/
     public static final String STATISTICS_ML_CODE_KEY_FOMAT = "STATISTICS_CODE_%s";
     public static final String STATISTICS_ML_CODE_KEY_FOMAT = "STATISTICS_CODE_%s";
     /** 统计缓存时间*/
     /** 统计缓存时间*/
-    public static final Long CACHE_EXPIRES = 30L;
+    public static final Long CACHE_EXPIRES = 5L;
 
 
     /** 缓存时间单位*/
     /** 缓存时间单位*/
     public static final TimeUnit TIME_UNIT = TimeUnit.MINUTES;
     public static final TimeUnit TIME_UNIT = TimeUnit.MINUTES;

+ 3 - 0
src/main/resources/mapper/selectStatisticsMapper.xml

@@ -48,6 +48,9 @@
                 #{item}
                 #{item}
             </foreach>
             </foreach>
         </if>
         </if>
+        <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
+            AND t1.gdnd BETWEEN #{startTime} AND #{endTime}
+        </if>
         <if test="bgqx != null and bgqx != ''">
         <if test="bgqx != null and bgqx != ''">
             <choose>
             <choose>
                 <when test="bgqx == 'D10' or bgqx == '005'">
                 <when test="bgqx == 'D10' or bgqx == '005'">