Пример #1
0
 @RequestMapping(value = "/saveRevenue", method = RequestMethod.POST)
 public int saveRevenue(
     @RequestBody Customer customer,
     @RequestParam(value = "userCode") String userCode,
     @RequestParam(value = "paymentAmount") BigDecimal paymentAmount) {
   int returnValue = 0;
   try {
     revenueService.tahsilatKaydet(customer, userCode, paymentAmount);
   } catch (Exception e) {
     returnValue = -1;
   }
   return returnValue;
 }
Пример #2
0
 @RequestMapping("/queryCustomerTrafficReport")
 public CustomerTrafficReport getCustomerTrafficReport(
     @RequestParam(value = "customer") Customer customer) {
   return revenueService.getCustomerTrafficReport(new Long(customer.getCustomerNo()));
 }
Пример #3
0
 @RequestMapping("/queryRevenueFromAllCustomers")
 public BigDecimal queryRevenueFromAllCustomers() {
   return revenueService.tumMusterilereYapilanSatisTutari();
 }
Пример #4
0
 @RequestMapping(value = "/queryRevenueFromCustomer")
 public BigDecimal queryRevenueFromCustomer(@RequestParam("customerId") String customerId) {
   return revenueService.musteridenYapilanTahsilatTutariSorgula(new Long(customerId));
 }
Пример #5
0
 @RequestMapping(value = "/queryCustomerLoan/{customerId}")
 public BigDecimal queryCustomerLoan(@PathVariable("customerId") String customerId) {
   return revenueService.musteriBorcuSorgula(new Long(customerId));
 }
Пример #6
0
 @RequestMapping(value = "/queryCustomerLoanAndIncome/{customerId}")
 public CustomerTrafficReport queryCustomerLoanAndIncome(
     @PathVariable("customerId") String customerId) {
   return revenueService.getCustomerTrafficReport(new Long(customerId));
 }