@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;
 }
 @RequestMapping("/queryCustomerTrafficReport")
 public CustomerTrafficReport getCustomerTrafficReport(
     @RequestParam(value = "customer") Customer customer) {
   return revenueService.getCustomerTrafficReport(new Long(customer.getCustomerNo()));
 }
 @RequestMapping("/queryRevenueFromAllCustomers")
 public BigDecimal queryRevenueFromAllCustomers() {
   return revenueService.tumMusterilereYapilanSatisTutari();
 }
 @RequestMapping(value = "/queryRevenueFromCustomer")
 public BigDecimal queryRevenueFromCustomer(@RequestParam("customerId") String customerId) {
   return revenueService.musteridenYapilanTahsilatTutariSorgula(new Long(customerId));
 }
 @RequestMapping(value = "/queryCustomerLoan/{customerId}")
 public BigDecimal queryCustomerLoan(@PathVariable("customerId") String customerId) {
   return revenueService.musteriBorcuSorgula(new Long(customerId));
 }
 @RequestMapping(value = "/queryCustomerLoanAndIncome/{customerId}")
 public CustomerTrafficReport queryCustomerLoanAndIncome(
     @PathVariable("customerId") String customerId) {
   return revenueService.getCustomerTrafficReport(new Long(customerId));
 }