Commit Graph

25 Commits

Author SHA1 Message Date
80ce911b88 fix: add studentNo field to Student entity 2026-07-05 20:35:47 +08:00
194f25c3ad feat: add class roster export and attendance stats export
- GET /classes/:id/roster/export — Excel export with 姓名/学号/加入日期/状态
- GET /attendance-records/export — Excel export with 姓名/班级/日期/时段/状态/来源/备注/打卡时间
- Add findAllForExport to AttendanceService (no pagination)
- Both use ExcelJS following classrooms controller downloadTemplate pattern
2026-07-05 20:35:11 +08:00
66aadfe3ff fix: I2 add studentNo to class listing, I4 replace attendance edit placeholder with working edit modal 2026-07-05 20:31:53 +08:00
b7117ddf2d fix: review blockers — entity registration, session enum, conflict date-range, @Type decorators 2026-07-05 20:20:43 +08:00
d317cb4fc1 feat(dashboard): add classroom/attendance/income stats to dashboard API
- Add classroomCount, classroomOccupancyRate from Classroom + ClassSchedule
- Add todayAttendanceRate, attendanceTrend from AttendanceRecord
- Add monthlyIncome, incomeTrend from Bill
- Register Classroom, ClassSchedule, AttendanceRecord in dashboard module
2026-07-05 19:51:16 +08:00
41f381e941 feat: attendance frontend page + backend list/classes endpoints
- Create AttendancePage with filter bar, table, calendar view toggle, batch add modal
- Register /attendance route with PermissionRoute (attendance:view)
- Add menu item in MainLayout with CheckCircleOutlined icon
- Add GET /attendance-records with pagination and filters
- Add GET /attendance-records/classes for class dropdown
- Add source column to AttendanceRecord entity (default: manual)
- Frontend tsc --noEmit: clean; backend: only pre-existing test errors
2026-07-05 19:49:53 +08:00
b6e308ae2a feat: add Attendance module with batch, summary, calendar, and dingtalk endpoints 2026-07-05 19:44:10 +08:00
4ededb0338 feat: add CLASS/SCHEDULE/ATTENDANCE permission nodes 2026-07-05 19:39:03 +08:00
f962633f67 fix: normalize operation log module names across controllers 2026-07-05 19:38:18 +08:00
efe13fe664 feat: add long-term rental independent billing in generate logic 2026-07-05 19:33:45 +08:00
881e9c6175 feat: add rental_category/rate to Room, rental_type/tenant_id to Occupancy, tenant_id to Student 2026-07-05 19:31:03 +08:00
037c0e07e0 feat: add Schedules module with conflict detection and weekly view 2026-07-05 19:21:37 +08:00
78320b8682 feat: add ClassSchedule entity 2026-07-05 19:18:31 +08:00
ec26cb5f5e feat(classes): add ClassesController with operation logging and permission guards 2026-07-05 19:05:18 +08:00
786aa2ba2d fix: add @IsEnum validation to Classes DTOs 2026-07-05 19:02:54 +08:00
c378cc45f8 feat: add ClassesService with CRUD + student/teacher management 2026-07-05 18:59:09 +08:00
e1d9ce9709 feat: add Class, ClassStudent, ClassTeacher entities 2026-07-05 18:53:12 +08:00
fb88bff27d tweak: set tsBuildInfoFile to dist/ to fix stale incremental cache blocking dev 2026-07-02 17:42:30 +08:00
a4ca6b2ef9 fix: use tsconfig.build.json for nest start --watch to fix rootDir 2026-07-02 16:16:57 +08:00
ac19c666b3 fix: add missing 'dev' script to @gongxue/server for turbo run dev 2026-07-02 16:11:57 +08:00
4f4cee157a chore: commit oxfmt formatting changes and verify artifacts 2026-07-02 15:55:09 +08:00
e13de5fef4 chore(task6): complete turborepo migration verification 2026-07-02 15:49:14 +08:00
5cf7fe05e9 feat(task4): update TypeScript configs to use shared presets 2026-07-02 15:31:29 +08:00
73dd92e615 feat(task3): migrate toolchain to oxfmt + oxlint
- Install oxfmt with .oxfmtrc.json (maps Prettier config)
- Install oxlint with oxlint.config.ts (TypeScript + React rules)
- Replace admin ESLint with oxlint
- Remove Prettier integration from server ESLint (keep ESLint for type checking)
- Delete server .prettierrc and admin eslint.config.js
2026-07-02 15:24:29 +08:00
46a817503e feat(task1): restructure directories for turborepo monorepo
- Move backend/ to apps/server/ via git mv
- Move frontend/ to apps/admin/ via git mv
- Create packages/typescript-config/ with base, nestjs, and react-vite presets
2026-07-02 15:05:12 +08:00