| | |
| | | @ApiOperation(value = "新增", notes = "传入record") |
| | | public R save(@Valid @RequestBody Record record) { |
| | | String cardid = record.getCardid(); |
| | | Map map = recordService.selectIn(cardid); |
| | | String type = record.getPtype(); |
| | | Map map = recordService.selectIn(cardid,type); |
| | | if (map != null) { |
| | | String id = map.get("id").toString(); |
| | | recordService.removeByIds(Func.toLongList(id)); |
| | |
| | | @ApiOperation(value = "新增", notes = "传入record") |
| | | public R rocordsave(@Valid @RequestBody Record record) { |
| | | String cardid = record.getCardid(); |
| | | Map map = recordService.selectIn(cardid); |
| | | String type = record.getPtype(); |
| | | Map map = recordService.selectIn(cardid,type); |
| | | if (map != null) { |
| | | record.setStorage("0"); |
| | | record.setPermitime(new Date()); |
| | |
| | | |
| | | |
| | | @PostMapping("/selectIn") |
| | | public R selectIn(String cardid) { |
| | | Map map = recordService.selectIn(cardid); |
| | | public R selectIn(String cardid,String type) { |
| | | Map map = recordService.selectIn(cardid,type); |
| | | return R.data(map); |
| | | } |
| | | } |