| | |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | Map<String, Object> maps = new HashMap<String, Object>(); |
| | | //保存视频的数组 |
| | | ArrayList <String> arlistm = new ArrayList <String>(); |
| | | //保存图片的数组 |
| | | ArrayList <String> arlistj = new ArrayList <String>(); |
| | | List<Map<String, Object>> lists = new ArrayList<>(); |
| | | List<FeedbackVO> feedbackVOS = feedbackService.selectFeedEdit(jid); |
| | | List<Map<String, Object>> map = feedbackService.selectWjEdit(jid); |
| | | for (int i=0;i<map.size();i++){ |
| | | Object address = map.get(i).get("address"); |
| | | String addr = address.toString(); |
| | | String substring = addr.substring(addr.length() - 4, addr.length()); |
| | | if (substring.equals(".mp4")){ |
| | | arlistm.add(addr); |
| | | } |
| | | else if (substring.equals(".jpg")){ |
| | | arlistj.add(addr); |
| | | } |
| | | } |
| | | maps.put("List",feedbackVOS); |
| | | maps.put("wj",map); |
| | | maps.put("tp",arlistj); |
| | | maps.put("sp",arlistm); |
| | | lists.add(maps); |
| | | return R.data(lists); |
| | | } |