Пример #1
0
 // @RequiresPermissions("sys:remind:leaseContract")
 @RequestMapping(value = {"leaseContractList", ""})
 public String leaseContractList(
     LeaseContract leaseContract,
     HttpServletRequest request,
     HttpServletResponse response,
     Model model) {
   Page<LeaseContract> page =
       leaseContractService.findLeaseContractList(
           new Page<LeaseContract>(request, response), leaseContract);
   model.addAttribute("page", page);
   return "modules/sys/leaseContract";
 }
Пример #2
0
 @RequestMapping(value = {"remind"})
 @ResponseBody
 public String remind(HttpServletRequest request, HttpServletResponse response) {
   String json = "{";
   Page<PaymentTrans> page =
       paymentTransService.findRemind(
           new Page<PaymentTrans>(request, response, -1), new PaymentTrans());
   json += "\"paymentTrans\":\"" + page.getList().size() + "\",";
   Page<LeaseContract> pageLeaseContract =
       leaseContractService.findLeaseContractList(
           new Page<LeaseContract>(request, response, -1), new LeaseContract());
   json += "\"leaseContract\":\"" + pageLeaseContract.getList().size() + "\",";
   Page<RentContract> pageRentContract =
       rentContractService.findContractList(
           new Page<RentContract>(request, response, -1), new RentContract());
   json += "\"rentContract\":\"" + pageRentContract.getList().size() + "\"";
   json += "}";
   return json;
 }