refactored code
This commit is contained in:
@@ -9,7 +9,6 @@ import net.gepafin.tendermanagement.dao.RoleDao;
|
||||
import net.gepafin.tendermanagement.entities.UserEntity;
|
||||
import net.gepafin.tendermanagement.enums.UserStatusEnum;
|
||||
import net.gepafin.tendermanagement.model.request.LoginReq;
|
||||
import net.gepafin.tendermanagement.model.request.LogoutReq;
|
||||
import net.gepafin.tendermanagement.model.response.LoginResponse;
|
||||
import net.gepafin.tendermanagement.model.response.RoleResponseBean;
|
||||
import net.gepafin.tendermanagement.model.util.JWTToken;
|
||||
|
||||
@@ -64,18 +64,24 @@ public class CallServiceImpl implements CallService {
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public CallResponse validateCall(Long callId) {
|
||||
return callDao.validateCall(callDao.validateCall(callId));
|
||||
public CallResponse validateCallData(Long callId) {
|
||||
return callDao.validateCallData(callDao.validateCall(callId));
|
||||
}
|
||||
|
||||
@Override
|
||||
public CallEntity getCallEntityById(Long id){
|
||||
return callDao.getCallEntityById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public CallResponse updateCallStatus(HttpServletRequest request, Long callId, CallStatusEnum statusReq) {
|
||||
return callDao.updateCallStatus(callId, statusReq);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public CallEntity validateCall(Long callId) {
|
||||
return callDao.validateCall(callId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@ public class FormFieldServiceImpl implements FormFieldService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public FormFieldEntity getFormFieldEntityById(Long id) {
|
||||
return formFieldDao.getFormFieldEntity(id);
|
||||
public FormFieldEntity validateFormField(Long id) {
|
||||
return formFieldDao.validateFormField(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -39,8 +39,8 @@ public class FormServiceImpl implements FormService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public FormEntity getFormEntityById(Long id) {
|
||||
return formDao.getFormEntity(id);
|
||||
public FormEntity validateForm(Long id) {
|
||||
return formDao.validateForm(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -38,8 +38,8 @@ public class FormTemplateServiceImpl implements FormTemplateService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public FormTemplateEntity getFormEntityById(Long id) {
|
||||
return formTemplateDao.getFormTemplateEntity(id);
|
||||
public FormTemplateEntity validateFormTemplate(Long id) {
|
||||
return formTemplateDao.validateFormTemplate(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -44,4 +44,9 @@ public class LookUpDataServiceImpl implements LookUpDataService {
|
||||
public List<LookUpDataResponseBean> getLookUpDataByType( List<LookUpDataTypeEnum> type) {
|
||||
return lookUpDataDao.getLookUpDataByTypes(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LookUpDataEntity validateLookUpData(Long lookUpDataId) {
|
||||
return lookUpDataDao.validateLookUpData(lookUpDataId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user