@RequestBody String requestBody 可以接收 josn 字符串 ,list 等等
public int updateLoaneePriorityNew(HttpServletRequest request,
@RequestParam("applicationID") int applicationID, // 借款工单号
@RequestBody String requestBody
) {
// String aa= request.getParameter("list");
//JSONObject jsonObject = JSONObject.fromObject(requestBody);
JSONObject jsonObject = JSONObject.parseObject(requestBody);
//返回请求结果
JSONObject result= new JSONObject();
result.put("success", "true");
return 1;
}
时间: 2024-11-08 22:33:17