| | |
| | | return qlyInspectService.saveSelected(param, loginUserId); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:list')") |
| | | @PostMapping("/qlyInspect/list") |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | |
| | | @PostMapping("/qlyInspect/save") |
| | | public R save(@RequestBody QlyInspect qlyInspect) { |
| | | qlyInspect.setCreateBy(getLoginUserId()); |
| | | qlyInspect.setCreateTime(new Date()); |
| | | qlyInspect.setUpdateBy(getLoginUserId()); |
| | | qlyInspect.setUpdateTime(new Date()); |
| | | if (!qlyInspectService.save(qlyInspect)) { |
| | | return R.error("Save Fail"); |
| | | } |