|
|
|
@ -8,6 +8,7 @@ import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import org.springframework.core.io.ByteArrayResource;
|
|
|
|
|
import org.springframework.core.io.InputStreamResource;
|
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
@ -167,7 +168,7 @@ public class SettlementDevController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/settle_batches/{batchId}/settle_report_xlsx")
|
|
|
|
|
public ResponseEntity<InputStreamResource> getSettlementReportForBatch(@PathVariable int batchId) {
|
|
|
|
|
public ResponseEntity<ByteArrayResource> getSettlementReportForBatch(@PathVariable int batchId) {
|
|
|
|
|
return ResponseEntity.ok().contentType(MediaType.APPLICATION_OCTET_STREAM)
|
|
|
|
|
.body(cleanService.downloadBatchSettleReportXlsx(batchId));
|
|
|
|
|
}
|
|
|
|
|