| | |
| | | public Map<String, Object> queryUserActivityList(Integer uid, Date start, Date end, String name, Integer status, Integer offset, Integer limit) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | Integer objectId = userService.selectById(uid).getObjectId(); |
| | | boolean a = false; |
| | | if (status!=null&&status==5){ |
| | | status = null; |
| | | a = true; |
| | | } |
| | | List<Map<String, Object>> list = userActivityMapper.queryUserActivityList(objectId, start, end, name, status, offset, limit); |
| | | int i = userActivityMapper.queryUserActivityListCount(objectId, start, end, name, status); |
| | | if (a){ |
| | | List<Map<String, Object>> list1 = new ArrayList<>(); |
| | | for (Map<String, Object> stringObjectMap : list) { |
| | | long statys = (long) stringObjectMap.get("status"); |
| | | System.out.println(statys); |
| | | if (statys==6){ |
| | | list1.add(stringObjectMap); |
| | | } |
| | | } |
| | | map.put("rows", list1); |
| | | map.put("total", list1.size()); |
| | | return map; |
| | | } |
| | | map.put("rows", list); |
| | | map.put("total", i); |
| | | return map; |