1.情景一
//JS文件 ajax的请求url : parent.baseUrl+"user/customer/findOne/" + id, //后台JAVA代码接收参数 @RequestMapping(value = "findOne/{id}") @ResponseBody public CustomerDTO customerFindOneQuery(@PathVariable("id") Long id) { }
2.情景二
//JS文件 ajax的请求
url : top.baseUrl+‘customer/bail/bailDetailsInfo?customerId=‘+customerId+‘&&bailClass=‘+bailClass+‘&&agencyId=‘+agencyId,
//后台JAVA代码接收参数
@RequestMapping(value = "/bailDetailsInfo", method = RequestMethod.GET, produces = { "application/json" }) @ResponseBody public ListWithTotalCount<BailLockDTO> bailDetailsInfo(Long customerId,int bailClass,String agencyId) { }
时间: 2024-10-18 00:34:02