| | |
| | | @Autowired |
| | | private PhoneService phoneService; |
| | | |
| | | private final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm"); |
| | | private final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm"); |
| | | |
| | | |
| | | @PostMapping("/base/notice/queryNoticeDetails") |
| | | public List<SysNotice> getSysNoticeDetails(){ |
| | | public List<SysNotice> getSysNoticeDetails() { |
| | | List<SysNotice> notices = new ArrayList<>(); |
| | | List<Notice> list = noticeSers.list(new QueryWrapper<Notice>() |
| | | .eq("state", 1) |
| | | .eq("upOrDown", 1) |
| | | .orderByDesc("insertTime")); |
| | | if (list.size() > 0 ){ |
| | | if (list.size() > 0) { |
| | | list.forEach(noList -> { |
| | | SysNotice notice = new SysNotice(); |
| | | notice.setNoticeId(noList.getId()); |
| | |
| | | |
| | | |
| | | @PostMapping("/base/notice/queryNotice") |
| | | public SysNotice getSysNoticeBuId(@RequestParam("noticeId") Integer noticeId){ |
| | | public SysNotice getSysNoticeBuId(@RequestParam("noticeId") Integer noticeId) { |
| | | SysNotice sysNotice = new SysNotice(); |
| | | Notice notice = noticeSers.getById(noticeId); |
| | | if (null != notice){ |
| | | if (null != notice) { |
| | | sysNotice.setNoticeId(notice.getId()); |
| | | sysNotice.setNoticeTitle(notice.getName()); |
| | | sysNotice.setNoticeContents(notice.getContent()); |
| | |
| | | |
| | | |
| | | @PostMapping("/base/notice/sysTell") |
| | | public List<String> queryCustomerTel(){ |
| | | public List<String> queryCustomerTel() { |
| | | List<String> tellS = new ArrayList<>(); |
| | | List<Phone> list = phoneService.list(); |
| | | if (list.size() > 0 ){ |
| | | if (list.size() > 0) { |
| | | String phone = list.get(0).getPhone(); |
| | | String[] split = phone.split(","); |
| | | tellS = Arrays.asList(split); |