Map
转Java Bean
:
public ResponseResult addDataTable(Map<String, Object> params) {
String jsonString = JSON.toJSONString(params);
DmDataTable dataTable = JSON.parseObject(jsonString, DmDataTable.class);
DmApprovalInfo approvalInfo = JSON.parseObject(jsonString, DmApprovalInfo.class);
return new ResponseResult(insertSelective(dataTable.setTableId(UUIDUtil.uuid())));
}
Java Bean
转Map
:
OrganStaffDto staffDto = queryStaffDtoByOrganId(user2.get("organId"));
String jsonStr = JSON.toJSONString(staffDto);
Map<String,String> staffMap = (Map)JSON.parseObject(jsonStr);
References
最新评论
本来在正常下载,突然就不能下载,并出现报错:a socket operation was attempted to an unreachable network。请问是什么原因呢
试了,还是不行,能不能更新一下
试了,确实不行,能不能更新一下
也推荐一下我自己写的 https://twitdown.com