Pārlūkot izejas kodu

全省服请数据不再排除异地的

“lifuquan” 1 gadu atpakaļ
vecāks
revīzija
254b1d780c

+ 12 - 12
src/main/java/com/nokia/tsl_data/dao/CemMobileExperienceListMapper.java

@@ -9,7 +9,7 @@ import org.apache.ibatis.annotations.Select;
 
 
 @Mapper
 @Mapper
 public interface CemMobileExperienceListMapper {
 public interface CemMobileExperienceListMapper {
-    
+
     @Select("select count(1) from tsl_data.cem_mobile_experience_list where month_id = #{month_id} and day_id = #{day_id}")
     @Select("select count(1) from tsl_data.cem_mobile_experience_list where month_id = #{month_id} and day_id = #{day_id}")
     int countForDay(@Param("month_id") String monthId, @Param("day_id") String dayId);
     int countForDay(@Param("month_id") String monthId, @Param("day_id") String dayId);
 
 
@@ -24,9 +24,9 @@ public interface CemMobileExperienceListMapper {
             " order by day_id1, code_cust_area")
             " order by day_id1, code_cust_area")
     List<Map<String, Object>> selectCityCountForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
     List<Map<String, Object>> selectCityCountForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
 
 
-    default List<Map<String, Object>> selectCityCountForStat(String day){
-        return selectCityCountForStat(day.substring(0,6), day.substring(6));
-    } 
+    default List<Map<String, Object>> selectCityCountForStat(String day) {
+        return selectCityCountForStat(day.substring(0, 6), day.substring(6));
+    }
 
 
     @Select("select day_id1 as day_id, count(1) as num \n" + //
     @Select("select day_id1 as day_id, count(1) as num \n" + //
             " from tsl_data.cem_mobile_experience_list cmel\n" + //
             " from tsl_data.cem_mobile_experience_list cmel\n" + //
@@ -35,8 +35,8 @@ public interface CemMobileExperienceListMapper {
             " order by day_id1 ")
             " order by day_id1 ")
     List<Map<String, Object>> selectAllCountForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
     List<Map<String, Object>> selectAllCountForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
 
 
-    default List<Map<String, Object>> selectAllCountForStat(String day){
-        return selectAllCountForStat(day.substring(0,6), day.substring(6));
+    default List<Map<String, Object>> selectAllCountForStat(String day) {
+        return selectAllCountForStat(day.substring(0, 6), day.substring(6));
     }
     }
 
 
     @Select("select code_cust_area as city, count(1) as num\n" + //
     @Select("select code_cust_area as city, count(1) as num\n" + //
@@ -46,16 +46,16 @@ public interface CemMobileExperienceListMapper {
             " order by code_cust_area")
             " order by code_cust_area")
     List<Map<String, Object>> selectCityAllForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
     List<Map<String, Object>> selectCityAllForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
 
 
-    default List<Map<String, Object>> selectCityAllForStat(String day){
-        return selectCityAllForStat(day.substring(0,6), day.substring(6));
-    } 
+    default List<Map<String, Object>> selectCityAllForStat(String day) {
+        return selectCityAllForStat(day.substring(0, 6), day.substring(6));
+    }
 
 
     @Select("select count(1)\n" + //
     @Select("select count(1)\n" + //
             " from tsl_data.cem_mobile_experience_list cmel\n" + //
             " from tsl_data.cem_mobile_experience_list cmel\n" + //
-            " where month_id = #{monthId} and day_id = #{dayId} and code_cust_area != '异地'")
+            " where month_id = #{monthId} and day_id = #{dayId} ")
     int selectCountForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
     int selectCountForStat(@Param("monthId") String monthId, @Param("dayId") String dayId);
 
 
-    default int selectCountForStat(String day){
-        return selectCountForStat(day.substring(0,6), day.substring(6));
+    default int selectCountForStat(String day) {
+        return selectCountForStat(day.substring(0, 6), day.substring(6));
     }
     }
 }
 }