Skip to content

Commit

Permalink
[BE/#34] Feat : 마일스톤 업데이트 쿼리 추가
Browse files Browse the repository at this point in the history
- issueDao.updateRelatedMilestone()
  • Loading branch information
MuseopKim committed Jun 15, 2020
1 parent 4c4ba58 commit 4072d1a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,9 @@ public void deleteAttachedLabelId(Long issueId, Integer labelId) {
String sql = "DELETE FROM issue_has_label WHERE issue_id = ? AND label_id = ?";
jdbcTemplate.update(sql, new Object[]{issueId, labelId});
}

public void updateRelatedMilestone(Long issueId, Integer milestoneId) {
String sql = "UPDATE issue SET milestone_id = ? WHERE id = ?";
jdbcTemplate.update(sql, new Object[]{milestoneId, issueId});
}
}

0 comments on commit 4072d1a

Please sign in to comment.