根据市场金融产品的数据实时性等特点,EDEN-MACE(分销管理系统)通过切面和websocket等技术,在现有数据基础上,实现了数据报表实时统计,让使用者能够根据当前时间的订单等信息,快速的做出决策。
开源地址:
https://gitee.com/codingdb/distribution_management
此次更新有两个突出点:
1、注解实现数据统计
如果你需要统计提现的信息,只需要在提现的接口中增加@StatisticsSock
@PostMapping(value = "/withdraw")@ResponseBody@ApiOperation(value = "新增提现接口", notes = "此接口是用于用户提现")@StatisticsSocketpublic DistResult withdraw(@RequestBody DisWithdrawVo withdrawVo) {if(!isAccountVer(withdrawVo.getSecret())) {return DistResult.failure("非法访问!");
}if(!verifyMember(withdrawVo.getUserId())){return DistResult.failure("用户校验失败");
}if(isAccountVer(withdrawVo.getSecret())) {disWithdrawRecordService.withdrawMoney(withdrawVo.getUserId(),withdrawVo.getAmount(),withdrawVo.getAccountType());
}else {return DistResult.failure("非法访问");
}return DistResult.success();
}
2、websocket+echarts实现数据实时展现
即动态显示当前系统数据,如果有新增的数据会及时
啥都不说了。直接上图