Browse Source

modify:

1. 短信发送地址格式化;
tags/24101601
WendyYang 2 months ago
parent
commit
e171a13dd7
2 changed files with 8 additions and 2 deletions
  1. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/dto/MeetingBasicDTO.java
  2. +7
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/meeting/helper/MeetingNotifyHelper.java

+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/meeting/entity/dto/MeetingBasicDTO.java View File

@@ -53,7 +53,7 @@ public class MeetingBasicDTO {
@ApiModelProperty("评审地点")
private String meetingAddress;

@Length(max = 200, message = "评审详细地址超出限制")
@Length(min = 1, max = 200, message = "评审详细地址超出限制")
@ApiModelProperty("评审详细地址")
private String meetingAddressDetail;



+ 7
- 1
hz-pm-api/src/main/java/com/hz/pm/api/meeting/helper/MeetingNotifyHelper.java View File

@@ -132,7 +132,13 @@ public class MeetingNotifyHelper {
String meetingTime = sTime + "至" + eTime;
List<Notify> notifies = new ArrayList<>();
List<WorkNoticeInfo> workingNotices = new ArrayList<>();
String meetingAddress = meeting.getMeetingAddress() + " " + meeting.getMeetingAddressDetail();
String meetingAddressDetail = meeting.getMeetingAddressDetail();
String meetingAddress;
if (StrUtil.isNotBlank(meetingAddressDetail)) {
meetingAddress = meeting.getMeetingAddress() + " " + meetingAddressDetail;
} else {
meetingAddress = meeting.getMeetingAddress();
}
experts.forEach(w -> {
String msgContent = String.format(MeetingMsgTemplateConst.CONFIRMED_ROSTER,
w.getExpertName(), officialTime(w.getCreateOn()), meetingTime, meetingAddress,


Loading…
Cancel
Save