|
@@ -199,6 +199,12 @@ public class DilNoticeController extends BaseRESTfulController {
|
|
|
return success(result);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping(value = "/readAll")
|
|
|
+ public RESTfulResult readAll(@RequestBody(required = false) Map<String, Object> map){
|
|
|
+ int result = dilNoticeService.readAll(map);
|
|
|
+ return success(result);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 根据id删除通知信息
|
|
|
* @param id
|
|
@@ -298,5 +304,21 @@ public class DilNoticeController extends BaseRESTfulController {
|
|
|
//return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @author:zyf
|
|
|
+ * @version:2.0
|
|
|
+ * @Date:2022-10-14
|
|
|
+ * @Description:获取通知数据
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "查询通知信息", notes = "根据传过来的orgcode查询")
|
|
|
+ @PostMapping(value = "/getNoticeAll")
|
|
|
+ public RESTfulResult getNoticeAll(@RequestBody(required = false) Map<String, Object> mapValue){
|
|
|
+ if (mapValue==null ||mapValue.get("userId")==null){
|
|
|
+ return failed();
|
|
|
+ }
|
|
|
+ List<Map<String, Object>> noticeData = dilNoticeService.getNoticeAll(mapValue);
|
|
|
+ return success(noticeData);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|