fix(mapper): 修复班级统计查询中的计数逻辑

dev
zhaokai 2026-02-25 10:40:37 +08:00
parent 1fff660e43
commit eb699e940b
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public class CurriculumChapterController {
return curriculumChapterService.listPage(qry);
}
@ApiOperation("所有数据")
/* @ApiOperation("所有数据")
@PostMapping("/listAll")
public MultiResponse<CurriculumChapterCO> listAll() {
return MultiResponse.of(new ArrayList<CurriculumChapterCO>());
@ -56,7 +56,7 @@ public class CurriculumChapterController {
@PostMapping("/getInfoById")
public SingleResponse<CurriculumChapterCO> getInfoById(@RequestParam("id") Long id) {
return SingleResponse.of(new CurriculumChapterCO());
}
}*/
@ApiOperation("删除")
@PostMapping("/remove/")

View File

@ -97,7 +97,7 @@
<select id="listStatistics" resultType="com.zcloud.edu.persistence.dataobject.study.ClassDO">
SELECT
c.class_id,
count(c.class_id) totalCount
count(s.student_id) totalCount
FROM
class c
left join student s on s.class_id = c.class_id and s.delete_enum = 'FALSE'