Commit cd453d69 authored by shishir suman's avatar shishir suman
Browse files

changes for csv download

1 merge request!9Cvs download
Showing with 1214 additions and 1088 deletions
+1214 -1088
......@@ -164,12 +164,11 @@ public class FormsController {
public String getInstituteData(
@RequestHeader(value = Constants.Parameters.X_USER_INFO, required = false) String xUserInfo,
@RequestBody InstituteDownloadRequestDto instituteDownloadRequestDto) throws JsonProcessingException {
List<Map<String, Object>> responseData = new ArrayList<>();
UserInfo userInfo = null;
if (StringUtils.isNotBlank(xUserInfo)) {
userInfo = new Gson().fromJson(xUserInfo, UserInfo.class);
}
responseData = formsService.getInstitutesData(userInfo, instituteDownloadRequestDto);
String responseData = formsService.getInstitutesData(userInfo, instituteDownloadRequestDto);
if (responseData != null) {
return ResponseGenerator.successResponse(responseData);
}
......
......@@ -35,7 +35,7 @@ public interface FormsService {
List<Map<String, Object>> getAllPlainForms();
List<Map<String, Object>> getInstitutesData(UserInfo userInfo, InstituteDownloadRequestDto instituteDownloadRequestDto);
String getInstitutesData(UserInfo userInfo, InstituteDownloadRequestDto instituteDownloadRequestDto);
KeyValueList getApplicationsStatusCount(UserInfo userInfo);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment