|
|
|
@ -3,10 +3,13 @@ package com.mfsys.aconnect.client.controller;
|
|
|
|
import com.mfsys.aconnect.client.model.TransactionLog;
|
|
|
|
import com.mfsys.aconnect.client.model.TransactionLog;
|
|
|
|
import com.mfsys.aconnect.client.service.TransactionLogService;
|
|
|
|
import com.mfsys.aconnect.client.service.TransactionLogService;
|
|
|
|
import com.mfsys.common.configuration.constant.AconnectURI;
|
|
|
|
import com.mfsys.common.configuration.constant.AconnectURI;
|
|
|
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@RestController()
|
|
|
|
@RestController()
|
|
|
|
@ -20,7 +23,12 @@ public class TransactionLogController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping(AconnectURI.LOGS)
|
|
|
|
@GetMapping(AconnectURI.LOGS)
|
|
|
|
public List<TransactionLog> getAllTransactionLogs() {
|
|
|
|
public List<TransactionLog> getTransactionLogs(
|
|
|
|
return transactionLogService.getAllTransactionLogs();
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "dd-MM-yyyy") LocalDate fromDate,
|
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "dd-MM-yyyy") LocalDate toDate
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
return transactionLogService.getTransactionLogsByDate(fromDate, toDate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|