value
2024-05-14 eb1a57285bb3468a4efe051781b8cc7a13ec23c6
framework/src/main/java/com/yuanchu/mom/mapper/SystemLogMapper.java
@@ -7,6 +7,7 @@
import com.yuanchu.mom.pojo.PageSystemLogDto;
import com.yuanchu.mom.pojo.SystemLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
/**
 * 系统日志(SystemLog)表数据库访问层
@@ -18,5 +19,8 @@
public interface SystemLogMapper extends BaseMapper<SystemLog> {
    IPage<PageSystemLogDto> selectSystemLogList(Page page, QueryWrapper<PageSystemLogDto> ew);
    @Select("select coalesce(count(id), 0) from ${tableName} where create_time like concat('%', #{date}, '%')")
    int countRowsByNow(String tableName, String date);
}