Updated code for file detail in amendment
This commit is contained in:
@@ -376,10 +376,12 @@ public class ApplicationAmendmentRequestDao {
|
|||||||
amendmentDocumentResponse.setFieldId(amendmentFieldRequest.getFieldId());
|
amendmentDocumentResponse.setFieldId(amendmentFieldRequest.getFieldId());
|
||||||
amendmentDocumentResponse.setNameValue(amendmentFieldRequest.getNameValue());
|
amendmentDocumentResponse.setNameValue(amendmentFieldRequest.getNameValue());
|
||||||
amendmentDocumentResponse.setValid(amendmentFieldRequest.getValid());
|
amendmentDocumentResponse.setValid(amendmentFieldRequest.getValid());
|
||||||
|
amendmentDocumentResponse.setFileValue(null);
|
||||||
DocumentEntity documentEntity = documentService.validateDocument(Long.valueOf(amendmentFieldRequest.getFileValue()));
|
if(amendmentFieldRequest.getFileValue()!=null) {
|
||||||
DocumentResponseBean responseBean = applicationEvaluationDao.createDocumentResponseBean(documentEntity);
|
DocumentEntity documentEntity = documentService.validateDocument(Long.valueOf(amendmentFieldRequest.getFileValue()));
|
||||||
amendmentDocumentResponse.setFileValue(responseBean);
|
DocumentResponseBean responseBean = applicationEvaluationDao.createDocumentResponseBean(documentEntity);
|
||||||
|
amendmentDocumentResponse.setFileValue(List.of(responseBean));
|
||||||
|
}
|
||||||
|
|
||||||
return amendmentDocumentResponse;
|
return amendmentDocumentResponse;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,13 @@ package net.gepafin.tendermanagement.model.response;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class AmendmentDocumentResponse {
|
public class AmendmentDocumentResponse {
|
||||||
|
|
||||||
private String fieldId;
|
private String fieldId;
|
||||||
private String nameValue;
|
private String nameValue;
|
||||||
private DocumentResponseBean fileValue;
|
private List<DocumentResponseBean> fileValue;
|
||||||
private Boolean valid = false;
|
private Boolean valid = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user