|
@@ -1,6 +1,8 @@
|
|
|
package com.jeeplus.flowable.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
+import com.jeeplus.aop.logging.annotation.ApiLog;
|
|
|
import com.jeeplus.flowable.model.Flow;
|
|
|
import com.jeeplus.flowable.model.MyNoticeList;
|
|
|
import com.jeeplus.flowable.service.MyNoticeService;
|
|
@@ -11,6 +13,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.flowable.task.api.Task;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -43,8 +46,21 @@ public class MyNoticeController {
|
|
|
return service.update(taskId, noticeId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 部分标记为已读
|
|
|
+ * @param ids
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiLog("部分标记为已读")
|
|
|
+ @PostMapping("portionRead")
|
|
|
+ public ResponseEntity portionRead(String ids) {
|
|
|
+ String idArray[] =ids.split(",");
|
|
|
+ service.portionRead (Lists.newArrayList (idArray));
|
|
|
+ return ResponseEntity.ok ("部分标记为已读成功");
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "全部标记已读")
|
|
|
- @GetMapping("/readAll")
|
|
|
+ @PostMapping("/readAll")
|
|
|
public String readAll() {
|
|
|
return service.readAll();
|
|
|
}
|