|
@@ -71,23 +71,23 @@ public interface FsCourseTrafficLogMapper
|
|
|
*/
|
|
*/
|
|
|
public int deleteFsCourseTrafficLogByLogIds(Long[] logIds);
|
|
public int deleteFsCourseTrafficLogByLogIds(Long[] logIds);
|
|
|
|
|
|
|
|
- @Select({"<script> " +
|
|
|
|
|
- "select c.company_name, SUM(l.internet_traffic) AS total_internet_traffic" +
|
|
|
|
|
- ",DATE_FORMAT(l.create_time, '%Y-%m') AS `month` from fs_course_traffic_log l " +
|
|
|
|
|
- "left join company c on c.company_id = l.company_id " +
|
|
|
|
|
- "where 1 = 1 " +
|
|
|
|
|
- "<if test= 'maps.year != null '>" +
|
|
|
|
|
- "and YEAR(l.create_time) = #{maps.year} " +
|
|
|
|
|
- "</if>" +
|
|
|
|
|
- "<if test= 'maps.month != null '>"+
|
|
|
|
|
- "and MONTH(l.create_time) = #{maps.month} " +
|
|
|
|
|
- "</if>" +
|
|
|
|
|
- "<if test = ' maps.companyId !=null '> " +
|
|
|
|
|
- "and l.company_id = #{maps.companyId} " +
|
|
|
|
|
- "</if>" +
|
|
|
|
|
- "group by l.company_id,`month` "+
|
|
|
|
|
- "</script>"})
|
|
|
|
|
- List<FsCourseTrafficLogListVO> selectTrafficByCompany(@Param("maps") FsCourseTrafficLogParam param);
|
|
|
|
|
|
|
+// @Select({"<script> " +
|
|
|
|
|
+// "select c.company_name, SUM(l.internet_traffic) AS total_internet_traffic" +
|
|
|
|
|
+// ",DATE_FORMAT(l.create_time, '%Y-%m') AS `month` from fs_course_traffic_log l " +
|
|
|
|
|
+// "left join company c on c.company_id = l.company_id " +
|
|
|
|
|
+// "where 1 = 1 " +
|
|
|
|
|
+// "<if test= 'maps.year != null '>" +
|
|
|
|
|
+// "and YEAR(l.create_time) = #{maps.year} " +
|
|
|
|
|
+// "</if>" +
|
|
|
|
|
+// "<if test= 'maps.month != null '>"+
|
|
|
|
|
+// "and MONTH(l.create_time) = #{maps.month} " +
|
|
|
|
|
+// "</if>" +
|
|
|
|
|
+// "<if test = ' maps.companyId !=null '> " +
|
|
|
|
|
+// "and l.company_id = #{maps.companyId} " +
|
|
|
|
|
+// "</if>" +
|
|
|
|
|
+// "group by l.company_id,`month` "+
|
|
|
|
|
+// "</script>"})
|
|
|
|
|
+ List<FsCourseTrafficLogListVO> selectTrafficByCompany(FsCourseTrafficLogParam param);
|
|
|
|
|
|
|
|
@Select("select * from fs_course_traffic_log where uu_id = #{uuId}")
|
|
@Select("select * from fs_course_traffic_log where uu_id = #{uuId}")
|
|
|
FsCourseTrafficLog selectFsCourseTrafficLogByuuId(@Param("uuId") String uuId);
|
|
FsCourseTrafficLog selectFsCourseTrafficLogByuuId(@Param("uuId") String uuId);
|