Updated Code
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
package net.gepafin.tendermanagement.service;
|
||||
|
||||
import net.gepafin.tendermanagement.entities.CommunicationAmendmentEntity;
|
||||
import net.gepafin.tendermanagement.model.request.CommunicationRequestBean;
|
||||
import net.gepafin.tendermanagement.model.response.ApplicationAmendmentResponse;
|
||||
import net.gepafin.tendermanagement.model.response.CommunicationResponseBean;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
public interface CommunicationAmendmentService {
|
||||
CommunicationResponseBean addCommentToAmendmentRequest(CommunicationRequestBean communicationRequestBean);
|
||||
CommunicationResponseBean addCommentToAmendmentRequest(CommunicationRequestBean communicationRequestBean, Long amendmentId);
|
||||
|
||||
String deleteCommunicationAmendmentComment(Long amendmentId, Long commentId);
|
||||
|
||||
CommunicationResponseBean updateCommunicationAmendment(CommunicationRequestBean communicationRequestBean);
|
||||
CommunicationResponseBean updateCommunicationAmendment(CommunicationRequestBean communicationRequestBean, Long amendmentId, Long commentId);
|
||||
|
||||
CommunicationResponseBean getAmendmentComments(Long id, Long commentId);
|
||||
ApplicationAmendmentResponse getAmendmentComments(Long id);
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
package net.gepafin.tendermanagement.service.impl;
|
||||
|
||||
import net.gepafin.tendermanagement.dao.CommunicationAmendmentDao;
|
||||
import net.gepafin.tendermanagement.entities.CommunicationAmendmentEntity;
|
||||
import net.gepafin.tendermanagement.model.request.CommunicationRequestBean;
|
||||
import net.gepafin.tendermanagement.model.response.ApplicationAmendmentResponse;
|
||||
import net.gepafin.tendermanagement.model.response.CommunicationResponseBean;
|
||||
import net.gepafin.tendermanagement.service.CommunicationAmendmentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@Service
|
||||
public class CommunicationAmendmentServiceImpl implements CommunicationAmendmentService {
|
||||
|
||||
@@ -17,8 +15,8 @@ public class CommunicationAmendmentServiceImpl implements CommunicationAmendment
|
||||
CommunicationAmendmentDao communicationAmendmentDao;
|
||||
|
||||
@Override
|
||||
public CommunicationResponseBean addCommentToAmendmentRequest(CommunicationRequestBean communicationRequestBean) {
|
||||
return communicationAmendmentDao.addCommentToAmendmentRequest(communicationRequestBean);
|
||||
public CommunicationResponseBean addCommentToAmendmentRequest(CommunicationRequestBean communicationRequestBean, Long amendmentId) {
|
||||
return communicationAmendmentDao.addCommentToAmendmentRequest(communicationRequestBean,amendmentId);
|
||||
}
|
||||
@Override
|
||||
public String deleteCommunicationAmendmentComment(Long amendmentId, Long commentId) {
|
||||
@@ -26,13 +24,13 @@ public class CommunicationAmendmentServiceImpl implements CommunicationAmendment
|
||||
return communicationAmendmentDao.deleteCommunicationAmendmentComment(amendmentId, commentId);
|
||||
}
|
||||
@Override
|
||||
public CommunicationResponseBean updateCommunicationAmendment(CommunicationRequestBean communicationRequestBean) {
|
||||
public CommunicationResponseBean updateCommunicationAmendment(CommunicationRequestBean communicationRequestBean, Long amendmentId, Long commentId) {
|
||||
|
||||
return communicationAmendmentDao.updateCommunicationAmendment(communicationRequestBean);
|
||||
return communicationAmendmentDao.updateCommunicationAmendment(communicationRequestBean, amendmentId, commentId);
|
||||
}
|
||||
@Override
|
||||
public CommunicationResponseBean getAmendmentComments(Long id, Long commentId) {
|
||||
public ApplicationAmendmentResponse getAmendmentComments(Long id) {
|
||||
|
||||
return communicationAmendmentDao.getAmendmentComments(id, commentId);
|
||||
return communicationAmendmentDao.getAmendmentComments(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user