页面jQuery和controller

if($("#accountingUnitId2").val()=='' || $("#businessUnitId2").val()=='' || $("#accountType2").val()==''){
            return ;
        }
        var accountingUnitId = $("#accountingUnitId2").val();
        var businessUnitId = $("#businessUnitId2").val();
        var accountType = $("#accountType2").val();
        var param = "accountingUnitId=" + accountingUnitId + "&businessUnitId=" + businessUnitId +"&accountType=" + accountType ;
        $("#accountsGrid" ).jqGrid('setGridParam', {
            page : 1,
            url : "${base}/payment/queryAccountsPayable ?" + param,
            datatype : "json"
        }).trigger("reloadGrid");
        
        $("#advanceGrid").jqGrid('setGridParam', {
            page : 1,
            url : "${base}/payment/queryAdvancePayment?" + param,
            datatype : "json"

        }).trigger("reloadGrid");

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@RequestMapping("/queryAdvancePayment")
    @ResponseBody
    public Pagination queryAdvancePayment(Long accountingUnitId, Long businessUnitId, Integer accountType) {}

你可能感兴趣的:(页面jQuery和controller)