|
@@ -10,17 +10,20 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/AppNoticeController")
|
|
@RequestMapping("/AppNoticeController")
|
|
public class AppNoticeController {
|
|
public class AppNoticeController {
|
|
@Autowired
|
|
@Autowired
|
|
- private RemoteNoticeService noticlist;
|
|
|
|
|
|
+ private RemoteNoticeService noticeService;
|
|
|
|
|
|
- @GetMapping("getNotice")
|
|
|
|
|
|
+ @GetMapping("/getNotice")
|
|
public AjaxResult getNotice(AppNoticeVO vo){
|
|
public AjaxResult getNotice(AppNoticeVO vo){
|
|
PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
Integer pageNum = pageDomain.getPageNum();
|
|
Integer pageNum = pageDomain.getPageNum();
|
|
Integer pageSize = pageDomain.getPageSize();
|
|
Integer pageSize = pageDomain.getPageSize();
|
|
- return noticlist.noticlist(pageNum, pageSize);
|
|
|
|
|
|
+ Map<String, Object> data = (Map<String, Object>) noticeService.noticlist(pageNum, pageSize).get("data");
|
|
|
|
+ return AjaxResult.success(data.get("rows"));
|
|
}
|
|
}
|
|
}
|
|
}
|