| | |
| | | @PreAuthorize("hasAuthority('manager:code:list')") |
| | | @GetMapping("/code/{id}") |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(codeService.getById(id)); |
| | | return R.ok().add(codeService.getCacheById(id)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:code:save')") |
| | |
| | | } |
| | | code.setData(Utils.zeroFill(code.getData(), CommonConstant.QR_CODE_LEN)); |
| | | code.setUuid("code".concat(code.getData())); |
| | | code.setConcer(0); |
| | | // code.setCorner(0); |
| | | code.setScale(GsonUtils.toJson(Cools.add("x", 1).add("y", 1))); |
| | | code.setCreateBy(userId); |
| | | code.setCreateTime(now); |