woals
07-26
240726 권민수 DB변동에 맞게 정상적으로 학생 정보 조회 가능하도록 수정
@b73a5a4bf148349f7d18ba6f93c307cc52331964
--- src/main/resources/mybatis/mapper/lms/student-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/student-SQL.xml
... | ... | @@ -20,14 +20,13 @@ |
20 | 20 |
SELECT |
21 | 21 |
u.user_nm AS studentName, |
22 | 22 |
i.ednst_nm AS institutionName, |
23 |
- g.grd_no AS grade, |
|
24 |
- c.scls_nm AS className, |
|
23 |
+ ui.grd_no AS grade, |
|
24 |
+ ui.scls_nm AS className, |
|
25 | 25 |
uc.stn_qna AS studentQuestion |
26 | 26 |
FROM users u |
27 |
- JOIN institution i ON u.ednst_id = i.ednst_id |
|
27 |
+ JOIN user_institution ui ON u.user_id = ui.user_id |
|
28 |
+ JOIN institution i ON ui.ednst_id = i.ednst_id |
|
28 | 29 |
JOIN user_class uc ON u.user_id = uc.user_id |
29 |
- JOIN class c ON uc.scls_id = c.scls_id |
|
30 |
- JOIN grade g ON c.sgrd_id = g.sgrd_id |
|
31 | 30 |
WHERE u.user_id = #{userId} |
32 | 31 |
</select> |
33 | 32 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?