|
|
@ -59,10 +59,11 @@ public class FinancialController {
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/order_validations/{date}")
|
|
|
|
@GetMapping("/order_validations/{date}")
|
|
|
|
public JSONObject getCheckReport(@PathVariable String date, @RequestParam(defaultValue = "false") boolean fix,
|
|
|
|
public JSONObject getCheckReport(@PathVariable String date, @RequestParam(defaultValue = "false") boolean fix,
|
|
|
|
@RequestParam(name = "use_cache", defaultValue = "true") boolean useCache) {
|
|
|
|
@RequestParam(name = "use_cache", defaultValue = "true") boolean useCache,
|
|
|
|
|
|
|
|
@RequestParam(name = "is_send_message", defaultValue = "false") boolean isSendMessage) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Date dt = DateUtils.parseDate(date, new String[]{"yyyyMMdd"});
|
|
|
|
Date dt = DateUtils.parseDate(date, new String[]{"yyyyMMdd"});
|
|
|
|
return cleanService.validTransactions(dt, fix, !useCache, false);
|
|
|
|
return cleanService.validTransactions(dt, fix, !useCache, false,isSendMessage);
|
|
|
|
} catch (ParseException e) {
|
|
|
|
} catch (ParseException e) {
|
|
|
|
throw new ParamInvalidException("date", "error.payment.valid.invalid_date_format");
|
|
|
|
throw new ParamInvalidException("date", "error.payment.valid.invalid_date_format");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -97,8 +98,8 @@ public class FinancialController {
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/get/transaction/status/{transactionId}")
|
|
|
|
@GetMapping("/get/transaction/status/{transactionId}")
|
|
|
|
public TransactionStatus getTransactionStatus(@PathVariable String transactionId) {
|
|
|
|
public TransactionStatus getTransactionStatus(@PathVariable String transactionId) {
|
|
|
|
if(transactionId.isEmpty()){
|
|
|
|
if (transactionId.isEmpty()) {
|
|
|
|
throw new ParamInvalidException("date","Transaction flow is empty");
|
|
|
|
throw new ParamInvalidException("date", "Transaction flow is empty");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return cleanService.getTransactionStatus(transactionId);
|
|
|
|
return cleanService.getTransactionStatus(transactionId);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -114,7 +115,6 @@ public class FinancialController {
|
|
|
|
, noCache, channel, billType);
|
|
|
|
, noCache, channel, billType);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try (InputStream in = new ByteArrayInputStream(file.content())) {
|
|
|
|
try (InputStream in = new ByteArrayInputStream(file.content())) {
|
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(file.name(), Charsets.UTF_8.name()));
|
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(file.name(), Charsets.UTF_8.name()));
|
|
|
|
response.setContentLength(file.length());
|
|
|
|
response.setContentLength(file.length());
|
|
|
|