Communication amend test.

This commit is contained in:
piyuskag
2024-10-26 12:11:30 +05:30
parent d541492e81
commit 452a661389
13 changed files with 489 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
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.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 {
@Autowired
CommunicationAmendmentDao communicationAmendmentDao;
@Override
public CommunicationResponseBean addCommentToAmendmentRequest(CommunicationRequestBean communicationRequestBean) {
return communicationAmendmentDao.addCommentToAmendmentRequest(communicationRequestBean);
}
@Override
public String deleteCommunicationAmendmentComment(Long amendmentId, Long commentId) {
return communicationAmendmentDao.deleteCommunicationAmendmentComment(amendmentId, commentId);
}
@Override
public CommunicationResponseBean updateCommunicationAmendment(CommunicationRequestBean communicationRequestBean) {
return communicationAmendmentDao.updateCommunicationAmendment(communicationRequestBean);
}
@Override
public CommunicationResponseBean getAmendmentComments(Long id, Long commentId) {
return communicationAmendmentDao.getAmendmentComments(id, commentId);
}
}