| | |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArchiveRecords archiveRecords) |
| | | { |
| | | return toAjax(archiveRecordsService.insertArchiveRecords(archiveRecords)); |
| | | int res = archiveRecordsService.insertArchiveRecords(archiveRecords); |
| | | System.out.println(res); |
| | | if(res==0) { |
| | | System.out.println(res); |
| | | |
| | | return new AjaxResult(0, "档案号已经存在了!"); |
| | | } |
| | | else |
| | | return new AjaxResult(200, "添加成功了!"); |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | return toAjax(archiveRecordsService.updateArchiveRecords(archiveRecords)); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:records:edit')") |
| | | @Log(title = "档案记录", businessType = BusinessType.UPDATE) |
| | | @PostMapping(value = "/updateSByIds") |
| | | public AjaxResult updateStatusByIds(@RequestBody Long[] ids) |
| | | { |
| | | System.out.println(ids); |
| | | System.out.println("090sdfsdf"); |
| | | return new AjaxResult(0, archiveRecordsService.updateStatusByIds(ids)+""); |
| | | } |
| | | /** |
| | | * 删除档案记录 |
| | | */ |