src/main/java/com/ruoyi/collaborativeApproval/service/impl/NoticeServiceImpl.java
@@ -42,7 +42,8 @@ @Override public List<NoticeDTO> selectCount() { List<Notice> notices = noticeMapper.selectList(Wrappers.lambdaQuery(Notice.class).groupBy(Notice::getType)); // 只查 type 一列并按其分组(原写法 selectList+groupBy 会带出全部列,在 ONLY_FULL_GROUP_BY 下报 1055) List<Notice> notices = noticeMapper.selectList(Wrappers.lambdaQuery(Notice.class).select(Notice::getType).groupBy(Notice::getType)); List<NoticeDTO> result = new ArrayList<>(); for (Notice notice : notices) { NoticeDTO notice1 = new NoticeDTO();