|
@@ -40,14 +40,12 @@ public class NotificationformReportController {
|
|
|
|
|
|
|
|
@PostMapping("/create")
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "创建检验情况告知")
|
|
@Operation(summary = "创建检验情况告知")
|
|
|
- @PreAuthorize("@ss.hasPermission('pressure2:notificationform-report:create')")
|
|
|
|
|
public CommonResult<String> createNotificationformReport(@Valid @RequestBody NotificationformReportSaveReqVO createReqVO) {
|
|
public CommonResult<String> createNotificationformReport(@Valid @RequestBody NotificationformReportSaveReqVO createReqVO) {
|
|
|
return success(notificationformReportService.createNotificationformReport(createReqVO));
|
|
return success(notificationformReportService.createNotificationformReport(createReqVO));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PutMapping("/update")
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新检验情况告知")
|
|
@Operation(summary = "更新检验情况告知")
|
|
|
- @PreAuthorize("@ss.hasPermission('pressure2:notificationform-report:update')")
|
|
|
|
|
public CommonResult<Boolean> updateNotificationformReport(@Valid @RequestBody NotificationformReportSaveReqVO updateReqVO) {
|
|
public CommonResult<Boolean> updateNotificationformReport(@Valid @RequestBody NotificationformReportSaveReqVO updateReqVO) {
|
|
|
notificationformReportService.updateNotificationformReport(updateReqVO);
|
|
notificationformReportService.updateNotificationformReport(updateReqVO);
|
|
|
return success(true);
|
|
return success(true);
|
|
@@ -56,7 +54,6 @@ public class NotificationformReportController {
|
|
|
@DeleteMapping("/delete")
|
|
@DeleteMapping("/delete")
|
|
|
@Operation(summary = "删除检验情况告知")
|
|
@Operation(summary = "删除检验情况告知")
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('pressure2:notificationform-report:delete')")
|
|
|
|
|
public CommonResult<Boolean> deleteNotificationformReport(@RequestParam("id") String id) {
|
|
public CommonResult<Boolean> deleteNotificationformReport(@RequestParam("id") String id) {
|
|
|
notificationformReportService.deleteNotificationformReport(id);
|
|
notificationformReportService.deleteNotificationformReport(id);
|
|
|
return success(true);
|
|
return success(true);
|
|
@@ -65,7 +62,6 @@ public class NotificationformReportController {
|
|
|
@GetMapping("/get")
|
|
@GetMapping("/get")
|
|
|
@Operation(summary = "获得检验情况告知")
|
|
@Operation(summary = "获得检验情况告知")
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
|
|
- @PreAuthorize("@ss.hasPermission('pressure2:notificationform-report:query')")
|
|
|
|
|
public CommonResult<NotificationformReportRespVO> getNotificationformReport(@RequestParam("id") String id) {
|
|
public CommonResult<NotificationformReportRespVO> getNotificationformReport(@RequestParam("id") String id) {
|
|
|
NotificationformReportDO notificationformReport = notificationformReportService.getNotificationformReport(id);
|
|
NotificationformReportDO notificationformReport = notificationformReportService.getNotificationformReport(id);
|
|
|
return success(BeanUtils.toBean(notificationformReport, NotificationformReportRespVO.class));
|
|
return success(BeanUtils.toBean(notificationformReport, NotificationformReportRespVO.class));
|
|
@@ -73,7 +69,6 @@ public class NotificationformReportController {
|
|
|
|
|
|
|
|
@GetMapping("/page")
|
|
@GetMapping("/page")
|
|
|
@Operation(summary = "获得检验情况告知分页")
|
|
@Operation(summary = "获得检验情况告知分页")
|
|
|
- @PreAuthorize("@ss.hasPermission('pressure2:notificationform-report:query')")
|
|
|
|
|
public CommonResult<PageResult<NotificationformReportRespVO>> getNotificationformReportPage(@Valid NotificationformReportPageReqVO pageReqVO) {
|
|
public CommonResult<PageResult<NotificationformReportRespVO>> getNotificationformReportPage(@Valid NotificationformReportPageReqVO pageReqVO) {
|
|
|
PageResult<NotificationformReportDO> pageResult = notificationformReportService.getNotificationformReportPage(pageReqVO);
|
|
PageResult<NotificationformReportDO> pageResult = notificationformReportService.getNotificationformReportPage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, NotificationformReportRespVO.class));
|
|
return success(BeanUtils.toBean(pageResult, NotificationformReportRespVO.class));
|
|
@@ -81,7 +76,6 @@ public class NotificationformReportController {
|
|
|
|
|
|
|
|
@GetMapping("/export-excel")
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出检验情况告知 Excel")
|
|
@Operation(summary = "导出检验情况告知 Excel")
|
|
|
- @PreAuthorize("@ss.hasPermission('pressure2:notificationform-report:export')")
|
|
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportNotificationformReportExcel(@Valid NotificationformReportPageReqVO pageReqVO,
|
|
public void exportNotificationformReportExcel(@Valid NotificationformReportPageReqVO pageReqVO,
|
|
|
HttpServletResponse response) throws IOException {
|
|
HttpServletResponse response) throws IOException {
|
|
@@ -92,4 +86,11 @@ public class NotificationformReportController {
|
|
|
BeanUtils.toBean(list, NotificationformReportRespVO.class));
|
|
BeanUtils.toBean(list, NotificationformReportRespVO.class));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping("/updateNotificationReport/{orderId}")
|
|
|
|
|
+ @Operation(summary = "更新检验情况报告")
|
|
|
|
|
+ public CommonResult<Boolean> updateNotificationReport(@PathVariable String orderId) {
|
|
|
|
|
+ notificationformReportService.updateNotificationReport(orderId);
|
|
|
|
|
+ return success(true);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|