地质所 沉降监测网建设项目
chenhuan
2024-05-16 0fdd42e318f51f9e3c6581473416af1cca69877f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.javaweb.platform.controller;
 
import java.util.List;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import com.javaweb.common.core.controller.BaseController;
import com.javaweb.system.domain.SysNotice;
import com.javaweb.system.service.ISysNoticeService;
 
 
@Controller
public class FrontNoticeController extends BaseController {
 
    @Autowired
    private ISysNoticeService noticeService;
    
    
     /**
     * 查询公告列表AJAX
     */
//    @RequiresPermissions("system:notice:list")
    @PostMapping("/webgis/notelistall")
    @ResponseBody
    public List<SysNotice> listAll(SysNotice notice)
    {
        List<SysNotice> list = noticeService.selectNoticeList(notice);
        return list;
    }
    /**
     * 查询公告列表AJAX
     */
    
    @PostMapping("/webgis/notelist")
    @ResponseBody
    public List<SysNotice> list(SysNotice notice)
    {
        startPage();
        List<SysNotice> list = noticeService.selectNoticeList(notice);
        return list;
    }
    /**
     * 查询公告列表AJAX
     */
    @PostMapping("/webgis/note1list")
    @ResponseBody
    public List<SysNotice> list1(SysNotice notice)
    {
        startPage();
        notice.setNoticeType("1");
        List<SysNotice> list = noticeService.selectNoticeList(notice);
        return list;
    }
    /**
     * 查询公告列表AJAX
     */
    @PostMapping("/webgis/note2list")
    @ResponseBody
    public List<SysNotice> list2(SysNotice notice)
    {
        startPage();
        notice.setNoticeType("2");
        List<SysNotice> list = noticeService.selectNoticeList(notice);
        return list;
    }
    /**
     * 查询公告列表AJAX
     */
    @PostMapping("/webgis/notelistcount")
    @ResponseBody
    public int listCount(String noticeType)
    {
        SysNotice notice = new SysNotice();
        notice.setNoticeType(noticeType);
        List<SysNotice> list = noticeService.selectNoticeList(notice);
        return list.size();
    }
    /**
     * 查询公告列表AJAX
     */
    @PostMapping("/webgis/notedetail")
    @ResponseBody
    public SysNotice getSysNotice(long id)
    {
        SysNotice notice = new SysNotice();
        notice.setNoticeId(id);
        System.out.println(id);
        SysNotice ret = noticeService.selectNoticeById(id);
        return ret;
    }
    
}