|
|
@@ -528,7 +528,6 @@ public class RateService {
|
|
|
}
|
|
|
|
|
|
public Map<String, String> reviewTimeMessage(Rate rate) {
|
|
|
-// Rate rate = rateRepo.findById(id).orElseThrow(new BusinessException("无记录"));
|
|
|
List<Long> ids = new ArrayList<>(rate.getExpertMemberUserId());
|
|
|
ids.add(rate.getExpertUserId());
|
|
|
Map<Long, User> userMap = userRepo.findAllById(ids)
|
|
|
@@ -549,6 +548,11 @@ public class RateService {
|
|
|
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern(DateConfig.DEFAULT_DATE_TIME_FORMAT);
|
|
|
|
|
|
+ if (!rate.isChange()) {
|
|
|
+ Organization organization = organizationRepo.findById(rate.getOrganizationId()).orElseThrow(new BusinessException("无记录"));
|
|
|
+ rate.setAddress(organization.getAddress());
|
|
|
+ }
|
|
|
+
|
|
|
String body = String.format(message, rate.getName(), rate.getDetailAddress(), dtf.format(rate.getReviewTime()), rate
|
|
|
.getOwner(), rate.getOwnerPhone());
|
|
|
|