短信bug修复

This commit is contained in:
wanghao
2025-12-15 11:11:15 +08:00
parent 9d157d17d5
commit 5c9cfbb7c3
2 changed files with 7 additions and 3 deletions
@@ -204,8 +204,13 @@ public class LargeScreenImpl {
}
if (type == 1){
String noticeContent = String.format("[%s] %s (%s-%s)", StrUtil.isEmpty(socket.getQueue()) ? center.getCenterName() : socket.getQueue(),
socket.getRealName(), socket.getOrgName(), socket.getDepartName());
String departName = socket.getDepartName();
String departPart = (departName == null || departName.isEmpty()) ? "" : "-" + departName;
String noticeContent = String.format("[%s] %s (%s%s)",
StrUtil.isEmpty(socket.getQueue()) ? center.getCenterName() : socket.getQueue(),
socket.getRealName(),
socket.getOrgName(),
departPart);
Map<String, String> data = new HashMap<>(2);
data.put("noticeContent", noticeContent);
data.put("mobile", socket.getPhone());
@@ -531,7 +531,6 @@ public class WatchMonitorDataServiceImpl extends ServiceImpl<WatchMonitorDataMap
*/
public void sendSms(WatchMonitorData monitorDataEntity, WatchMonitorSocketVo socketVo, String monitorManageUserMobile) {
log.info("开始发送短信 号码:=> {}", JSONObject.toJSONString(monitorManageUserMobile));
monitorManageUserMobile = "15619990401";
if (StrUtil.isNotEmpty(monitorManageUserMobile)) {
String[] mobileArray = monitorManageUserMobile.split(",");
for (String mobile : mobileArray) {