diff --git a/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml b/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml
index 72d7c16..09be63b 100644
--- a/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml
+++ b/src/main/resources/sqlmap/mapper/question/QuestionMapper.xml
@@ -13,11 +13,13 @@
bside.question(
q_category,
q_writer,
+ q_question,
q_created_at
)
VALUES(
- #{category},
+ #{qCategory},
#{qWriter},
+ #{qQuestion},
now()
)
@@ -77,7 +79,7 @@
SELECT COUNT(*)
FROM bside.question q
INNER JOIN bside.answer a ON q.q_no = a.q_no
- WHERE CHAR_LENGTH(a_answer_content) >= 1
+ WHERE CHAR_LENGTH(a.a_answer_content) >= 1
AND YEAR(a.a_created_at) = YEAR(CURRENT_DATE())
AND MONTH(a.a_created_at) = MONTH(CURRENT_DATE())
AND DAY(a.a_created_at) = DAY(CURRENT_DATE())
@@ -125,6 +127,7 @@
GROUP BY(DATE(a.a_created_at))
+
-
+
+
+
+
+
+
+
+ UPDATE bside.question
+ SET q_question = #{qQuestion}, q_category = #{qCategory}, q_writer = #{qWriter}
+ WHERE q_no = #{qNo}
+
+
+
+
+ DELETE FROM bside.question
+ WHERE q_no = #{qNo}
+
+
\ No newline at end of file