| | |
| | | @ApiOperation(value = "新增", notes = "传入permit") |
| | | public R save(@Valid @RequestBody Permit permit) { |
| | | permit.setType("2"); |
| | | permit.setStorage("1"); |
| | | permit.setPermitime(new Date()); |
| | | Map<String, String> param = null; |
| | | return R.status(permitService.save(permit)); |
| | | } |
| | | |
| | | /** |
| | | *暂存 |
| | | */ |
| | | @PostMapping("/storage") |
| | | @ApiOperation(value = "新增", notes = "传入permit") |
| | | public R storage(@Valid @RequestBody Permit permit) { |
| | | permit.setStorage("0"); |
| | | permit.setPermitime(new Date()); |
| | | return R.status(permitService.save(permit)); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/selectIn") |
| | | public R selectIn(String cardid) { |
| | | Map map = permitService.selectIn(cardid); |
| | | return R.data(map); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | @PostMapping("/update") |