| | |
| | | Object data1 = jsonObject.get("data"); |
| | | JSONObject jsonObject1 = JSONObject.parseObject(data1.toString()); |
| | | List<Map<String,Object>> res = (List<Map<String,Object>>)jsonObject1.get("res"); |
| | | int count = (int) res.stream().filter(map -> map.get("zdxsfzqkry") != null).count(); |
| | | res.forEach(map -> { |
| | | if (null!=map.get("zdxsfzqkry")){ |
| | | user.setExaminationMx(map.get("zdxsfzqkry").toString()); |
| | | if(res.size()>0) { |
| | | int count = (int) res.stream().filter(map -> map.get("zdxsfzqkry") != null).count(); |
| | | res.forEach(map -> { |
| | | if (null != map.get("zdxsfzqkry")) { |
| | | user.setExaminationMx(map.get("zdxsfzqkry").toString()); |
| | | } |
| | | }); |
| | | if (count > 0) { |
| | | user.setExaminationType("1"); |
| | | } else { |
| | | user.setExaminationType("0"); |
| | | } |
| | | }); |
| | | if (count>0){ |
| | | user.setExaminationType("1"); |
| | | }else { |
| | | //没有数据正常 |
| | | user.setExaminationType("0"); |
| | | } |
| | | return R.status(userService.submit(user)); |