//后端
@RestController
@RequestMapping(value="/loan")
publicclassLoanApplyControllerextendsBaseController{
@Resource
privateLoanApplyServiceloanApplyService;
//购车申请审核模块
@RequestMapping(value="apply/all",method=RequestMethod.GET)
publicXaResult>queryAllApply(IntegerpageSize,IntegercurrentPage)throwsBusinessException{
Pagepage=this.loanApplyService.selectAllApply(pageSize,currentPage);
returnXaResult.success(page,LoanApplyVo.convert(page.getRows()));
}
//前端
$(".itemli").click(function(){
console.log($(this).val());
varid=$(this).val();
$.ajax({
url:"/loan/apply/all",//写自己的后台地址
data:{id:id},
dataType:'json',
type:'get',
success:function(data){//接受json数据
console.log(data.dataList[0].id);
}
})
});