public Response updateOrderOfNew(@RequestBody JSONObject updateOrderList)throws Exception {
JSONObject jsonObject = JSON.parseObject(updateOrderList.toJSONString());
Long order_id = jsonObject.getLong("order_id");long类型
String price =jsonObject.getString("price");stirng类型
String room_count =jsonObject.getString("room_count");
String check_in_time = jsonObject.getString("check_in_time");
String check_out_time =jsonObject.getString("check_out_time");
String nightC = jsonObject.getString("nightC");
int state =jsonObject.getIntValue("state");int类型
object转int/long/string
最新推荐文章于 2022-06-23 21:41:20 发布