chore: 更新 .gitignore 文件
- 添加 .vscode 目录到 IntelliJ IDEA 忽略列表 - 新增 /logs/、/ruoyi-admin/logs/ 和 /.vscode/ 目录到忽略列表
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -22,6 +22,7 @@ target/
|
|||||||
### IntelliJ IDEA ###
|
### IntelliJ IDEA ###
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
.lingma
|
||||||
*.iws
|
*.iws
|
||||||
*.iml
|
*.iml
|
||||||
*.ipr
|
*.ipr
|
||||||
@@ -50,3 +51,4 @@ nbdist/
|
|||||||
/logs/
|
/logs/
|
||||||
/ruoyi-admin/logs/
|
/ruoyi-admin/logs/
|
||||||
/.vscode/
|
/.vscode/
|
||||||
|
/.lingma/
|
||||||
|
|||||||
@@ -90,6 +90,9 @@ public class TpCoursesServiceImpl implements ITpCoursesService {
|
|||||||
public Map<String, Object> queryCount(TpCoursesBo bo) {
|
public Map<String, Object> queryCount(TpCoursesBo bo) {
|
||||||
LambdaQueryWrapper<TpCourses> lqw = buildQueryWrapper(bo);
|
LambdaQueryWrapper<TpCourses> lqw = buildQueryWrapper(bo);
|
||||||
List<TpCoursesVo> list = baseMapper.selectVoList(lqw);
|
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));
|
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<String, Object> map = new HashMap<>();
|
||||||
map.put("count", list.size());
|
map.put("count", list.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user