woals 07-26
240726 권민수 학생 history에 책과 단원의 id 칼럼도 포함하여 보내도록 수정
@034e796fc3a14328129f26df1c6403a81b0cb0fa
src/main/java/com/takensoft/ai_lms/lms/student/service/Impl/StudentInfoServiceImpl.java
--- src/main/java/com/takensoft/ai_lms/lms/student/service/Impl/StudentInfoServiceImpl.java
+++ src/main/java/com/takensoft/ai_lms/lms/student/service/Impl/StudentInfoServiceImpl.java
@@ -23,8 +23,6 @@
 
     @Override
     public StudentInfoVO getStudentInfo(String userId) {
-//        List<StudentInfoVO> studentInfos = studentInfoDAO.getStudentInfo(userId);
-//        return studentInfos.isEmpty() ? null : studentInfos.get(0);
         return studentInfoDAO.getStudentInfo(userId);
     }
 
src/main/java/com/takensoft/ai_lms/lms/student/vo/HistoryVO.java
--- src/main/java/com/takensoft/ai_lms/lms/student/vo/HistoryVO.java
+++ src/main/java/com/takensoft/ai_lms/lms/student/vo/HistoryVO.java
@@ -16,8 +16,10 @@
 @Setter
 public class HistoryVO {
 
+    private String bookId;
     private String bookName;
+    private String unitId;
     private String unitName;
-    private Timestamp completionTime;
+    private String completionTime;
 
 }
src/main/resources/mybatis/mapper/lms/student-SQL.xml
--- src/main/resources/mybatis/mapper/lms/student-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/student-SQL.xml
@@ -16,7 +16,9 @@
         <result property="studentQuestion" column="studentQuestion"/>
         <collection property="history" ofType="com.takensoft.ai_lms.lms.student.vo.HistoryVO">
             <result property="bookName" column="bookName"/>
+            <result property="bookId" column="bookId"/>
             <result property="unitName" column="unitName"/>
+            <result property="unitId" column="unitId"/>
             <result property="completionTime" column="completionTime"/>
         </collection>
     </resultMap>
@@ -28,7 +30,9 @@
             ui.grd_no AS grade,
             ui.scls_nm AS className,
             uc.stn_qna AS studentQuestion,
+            hu.book_id AS bookId,
             hu.book_nm AS bookName,
+            hu.unit_id AS unitId,
             hu.unit_nm AS unitName,
             hu.cmptn_tm AS completionTime
         FROM users u
@@ -38,7 +42,9 @@
                  LEFT JOIN (
             SELECT
                 uu.user_id,
+                b.book_id,
                 b.book_nm,
+                un.unit_id,
                 un.unit_nm,
                 uu.cmptn_tm
             FROM user_unit uu
Add a comment
List