From a830a73fd10a21e3793c79a35be4e532de124c6f Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期二, 17 十月 2023 17:25:16 +0800 Subject: [PATCH] 10.17.1 --- cloud-server-other/src/main/java/com/dsh/other/controller/SystemNoticeController.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/SystemNoticeController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/SystemNoticeController.java index 04c441b..44797d0 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/controller/SystemNoticeController.java +++ b/cloud-server-other/src/main/java/com/dsh/other/controller/SystemNoticeController.java @@ -8,13 +8,11 @@ import com.dsh.other.service.NoticeService; import com.dsh.other.service.PhoneService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.text.SimpleDateFormat; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; @@ -53,7 +51,7 @@ @PostMapping("/base/notice/queryNotice") - public SysNotice getSysNoticeBuId(@RequestBody Integer noticeId){ + public SysNotice getSysNoticeBuId(@RequestParam("noticeId") Integer noticeId){ SysNotice sysNotice = new SysNotice(); Notice notice = noticeSers.getById(noticeId); if (null != notice){ @@ -71,7 +69,9 @@ List<String> tellS = new ArrayList<>(); List<Phone> list = phoneService.list(); if (list.size() > 0 ){ - tellS = list.stream().map(Phone::getPhone).collect(Collectors.toList()); + String phone = list.get(0).getPhone(); + String[] split = phone.split(","); + tellS = Arrays.asList(split); } return tellS; -- Gitblit v1.7.1