@Select({
        "<script>",
        "SELECT COUNT(id) FROM do_exception_log",
        "WHERE `exception_level` = #{level} AND created_at >= #{startDate} AND #{endDate} >= created_at",
        "<when test='moduleId != null'>",
        "AND `module_id` like \"%\" #{moduleId}" ,
        "</when>",
        "</script>"
    })
    Long getLevelCountByPeriod(@Param(value = "startDate") LocalDateTime startDate, @Param(value = "endDate") LocalDateTime endDate, @Param(value = "level") int levelCode, @Param(value="moduleId") String moduleId);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-04-07
  • 2021-11-19
  • 2021-12-14
  • 2022-03-06
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案