function addDebtResult(){var repayIds=$("#repayIds").val();var lateFeeDay=$("#repayIds1").val();var subAdminId1=$("#subAdminId1").val();if(subAdminId1==null||subAdminId1==""){alert("未選擇催收人員!");return;}$('#bt_flash').attr('data-dismiss', 'modal');$.ajax({type: "post",timeout: 30000,async: false, cache: false,data:{"repayIds":repayIds,"lateFeeDay":lateFeeDay,"subAdminId":subAdminId1,},url: "${ctx}/postLoanManageController/addTaskAllocat",success: function(data){if(data==1){location.reload();alert("添加成功!");}else if(data==3){alert("請登錄!");window.location.href="${ctx}/admin";}else{alert("添加失敗");}}});}
//催收管理:任務分配-添加分配記錄 @ResponseBody@RequestMapping(value="/addTaskAllocat",produces="application/json;charset=UTF-8")public int addTaskAllocat(String repayIds,String lateFeeDay, String subAdminId,HttpServletRequest request){logBefore(logger,"催收管理:任務分配-添加分配記錄");Admin admin=getCurrentAdmin(request);if(admin==null){return 0;}int flag = postLoanManageService.addTaskAllocat( repayIds, lateFeeDay, subAdminId,admin);logAfter(logger);return flag;}
List<Province> province= loginService.getProvinceByAreaId(areaId);?
什么是AJAX,返回List對象:JSONArray provinceJson=JSONArray.fromObject(province);
返回對象:??? JSONObject userJson=JSONObject.fromObject(resultInfo);
?