1.Map方法java
獲取map的key和value的方法app
Map<String, Object> map = new HashMap<>(); map.put("mobile", pushEventParam.mobile); System.out.println(map.get("mobile"));
參考:https://blog.csdn.net/zj20142213/article/details/79264840.net
2.Mybatis Plus 新增數據後返回新增數據的idblog
Order order = new Order(); order.setUserId(1); OrderMapper.insert(order); System.out.println(order.getId());
後面會寫一篇隨筆對Mybatis Plus的作詳細記錄 get