Skip to content

Commit

Permalink
[BE/#30] Feat : 이슈 상태 수정 쿼리 추가
Browse files Browse the repository at this point in the history
- issueDao.modifyIssueStats()
  • Loading branch information
MuseopKim committed Jun 15, 2020
1 parent 46d1220 commit df3719e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
}

0 comments on commit df3719e

Please sign in to comment.