jQ.ajax({
type: "POST",
url: contextPath + "/TPmfbqdWhAct/setSupplementalToContract.nutz",
data: {"supplementIds": supplementIds,"contractId": '<%= request.getParameter("contractId")%>'},
success: function () {
parent.window.location.reload();
}
})
代码中supplementIds是一个字符串数组,contractId是字符串
@At
@Ok("json")
public Map<String, Object> setSupplementalToContract(HttpServletRequest request,
@Param("supplementIds") String[] supplementIds,
@Param("contractId") String contractId,
@Attr("userInfo") User user) throws Exception {
return logic.setSupplementalToContract(request, supplementIds,contractId, user);
}
supplementIds始终是null