chore: 更新 .gitignore 文件

- 添加 .vscode 目录到 IntelliJ IDEA 忽略列表
- 新增 /logs/、/ruoyi-admin/logs/ 和 /.vscode/ 目录到忽略列表
This commit is contained in:
清晨
2025-04-21 17:38:07 +08:00
parent d646a3e009
commit 91fb5c361a
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@@ -22,6 +22,7 @@ target/
### IntelliJ IDEA ###
.idea
.vscode
.lingma
*.iws
*.iml
*.ipr
@@ -50,3 +51,4 @@ nbdist/
/logs/
/ruoyi-admin/logs/
/.vscode/
/.lingma/

View File

@@ -90,6 +90,9 @@ public class TpCoursesServiceImpl implements ITpCoursesService {
public Map<String, Object> queryCount(TpCoursesBo bo) {
LambdaQueryWrapper<TpCourses> lqw = buildQueryWrapper(bo);
List<TpCoursesVo> list = baseMapper.selectVoList(lqw);
if (list.isEmpty()) {
return new HashMap<>();
}
List<TpOrder> orderList = orderMapper.selectList(new LambdaQueryWrapper<TpOrder>().in(TpOrder::getCourseId, list.stream().map(TpCoursesVo::getId).toList()).ne(TpOrder::getPayState, 1));
Map<String, Object> map = new HashMap<>();
map.put("count", list.size());