| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectCount") |
| | | public R selectCount(String uid) { |
| | | public R selectCount(String uid,String type) { |
| | | List<Map<Object, Object>> list = integralService.selectCount(uid); |
| | | List<Map<Object, Object>> listAll = integralService.selectList(uid,type); |
| | | Map map = new HashMap(); |
| | | Integer a = Integer.parseInt(list.get(0).get("integral").toString()); |
| | | Integer b = Integer.parseInt(list.get(1).get("integral").toString()); |
| | |
| | | map.put("yjf", list.get(1)); |
| | | //剩余积分 |
| | | map.put("sjf", a - b); |
| | | map.put("list",listAll); |
| | | return R.data(map); |
| | | } |
| | | |