ested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, please exclude the tableName or statementId.\n Error SQL: select ask_id from asks\n where content like CONCAT('%',?,'%')\n and ask_id = ?\n \n \n content LIKE CONCAT('%', ?, '%')\n OR \n content LIKE CONCAT('%', ?, '%')\r\n### The error may exist in file [D:\\work\\lswz\\lswz\\trs-system\\target\\classes\\mapper\\system\\AskKeywordMapper.xml]\r\n### The error may involve com.trs.system.mapper.AskKeywordMapper.getAskIdByVagueLikeContent\r\n### The error occurred while executing a query\r\n### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, please exclude the tableName or statementId.\n Error SQL: select ask_id from asks\n where content like CONCAT('%',?,'%')\n and ask_id = ?\n \n \n content LIKE CONCAT('%', ?, '%')\n OR \n content LIKE CONCAT('%', ?, '%')"
时间: 2023-12-20 07:27:36 浏览: 137
根据错误信息来看,可能是以下几个原因:
1. SQL 语句中的占位符数量和参数数量不一致;
2. SQL 语句中的语法错误;
3. Mybatis-plus 框架的使用问题;
4. 数据库连接出现问题;
5. 数据库中不存在 `asks` 表。
你可以检查这些问题,看看哪一个是导致错误的原因。如果还有问题,可以提供更详细的错误信息或者 SQL 语句,我可以帮你进一步分析。
阅读全文