Skip to content

Commit

Permalink
[BE/#49] Feat : 코멘트 업데이트 Dao 로직 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
MuseopKim committed Jun 18, 2020
1 parent 1482bd9 commit 4c33ffd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,9 @@ public void updateRelatedMilestone(Long issueId, Integer milestoneId) {
String sql = "UPDATE issue SET milestone_id = ? WHERE id = ?";
jdbcTemplate.update(sql, new Object[]{milestoneId, issueId});
}

public void updateComment(Long issueId, Long commentId, String description) {
String sql = "UPDATE comment SET description = ? WHERE issue_id = ? AND id = ?";
jdbcTemplate.update(sql, new Object[]{description, issueId, commentId});
}
}

0 comments on commit 4c33ffd

Please sign in to comment.