| | |
| | | @ApiOperation(value = "新增编辑日常安全检查") |
| | | public AjaxResult saveDailySafetyInspection(@Validated @RequestBody DailySafetyInspection dailySafetyInspection) |
| | | { |
| | | dailySafetyInspection.setScratchpad(2); |
| | | return toAjax(dailySafetyInspectionService.saveDailySafetyInspection(dailySafetyInspection)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 暂存日常安全检查 |
| | | */ |
| | | @PostMapping("/scratchpadDailySafetyInspection") |
| | | @ApiOperation(value = "暂存日常安全检查") |
| | | public AjaxResult scratchpadDailySafetyInspection( @RequestBody DailySafetyInspection dailySafetyInspection) |
| | | { |
| | | dailySafetyInspection.setScratchpad(1); |
| | | return toAjax(dailySafetyInspectionService.saveDailySafetyInspection(dailySafetyInspection)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | return toAjax(dailySafetyInspectionService.deleteDailySafetyInspection(id)); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getCheckCount") |
| | | @ApiOperation(value = "25号之后查询是否提交安全检查大于0提交") |
| | | public AjaxResult getCheckCount() |
| | | { |
| | | return AjaxResult.success(dailySafetyInspectionService.getCheckCount()); |
| | | } |
| | | |
| | | } |