diff --git a/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dao/IssueDao_Ragdoll.java b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dao/IssueDao_Ragdoll.java index bf4e4e4..121330f 100644 --- a/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dao/IssueDao_Ragdoll.java +++ b/BE/src/main/java/com/codesquad/issuetracker/ragdoll/dao/IssueDao_Ragdoll.java @@ -111,4 +111,10 @@ public void modifyIssueTitle(Long issueId, String issueTitle) { "WHERE id = ?"; jdbcTemplate.update(sql, new Object[]{issueTitle, issueId}); } + + public void modifyIssueStats(Long issueId, boolean opened) { + String sql = "UPDATE issue SET is_opened = ? " + + "WHERE id = ?"; + jdbcTemplate.update(sql, new Object[]{opened, issueId}); + } }