| | |
| | | @RequestMapping("/getStaticsData") |
| | | @ResponseBody |
| | | public ResultUtil<Map<String, BigDecimal>> getStaticsData(HuiminPayQuery query) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | if (objectType.equals(2)){ |
| | | //查询运营商 |
| | | TOperator operator = operatorService.getOne(new QueryWrapper<TOperator>() |
| | | .eq("userId", UserExt.getUser().getId()) |
| | | .ne("state", 3) |
| | | .last("LIMIT 1")); |
| | | if (Objects.nonNull(operator)) { |
| | | query.setOperatorId(Long.valueOf(operator.getId())); |
| | | } |
| | | } |
| | | Map<String, BigDecimal> map = new HashMap<>(); |
| | | map.put("totalAmount",BigDecimal.ZERO); |
| | | map.put("refundAmount",BigDecimal.ZERO); |