|
|
@@ -261,12 +261,20 @@ public class IotRyDailyReportServiceImpl implements IotRyDailyReportService {
|
|
|
}
|
|
|
CountDownLatch latch = new CountDownLatch(users.size());
|
|
|
String finalMsgTitle = msgTitle;
|
|
|
+ String constant;
|
|
|
+ if ("1".equals(iotRyDailyReport.getProjectClassification())) {
|
|
|
+ // 钻井
|
|
|
+ constant = PmsConstants.RY_DAILY_REPORT_APPROVAL;
|
|
|
+ } else {
|
|
|
+ // 修井
|
|
|
+ constant = PmsConstants.RY_XJ_DAILY_REPORT_APPROVAL;
|
|
|
+ }
|
|
|
users.forEach((userId, user) -> {
|
|
|
pmsThreadPoolTaskExecutor.execute(() -> {
|
|
|
try {
|
|
|
String mobile = user.getMobile();
|
|
|
if (StrUtil.isNotBlank(mobile) && StrUtil.isNotBlank(finalMsgTitle)) {
|
|
|
- pmsMessage.sendMessage(iotRyDailyReport.getId(), finalMsgTitle, PmsConstants.RY_DAILY_REPORT_APPROVAL,
|
|
|
+ pmsMessage.sendMessage(iotRyDailyReport.getId(), finalMsgTitle, constant,
|
|
|
userId, mobile);
|
|
|
}
|
|
|
} finally {
|
|
|
@@ -769,9 +777,17 @@ public class IotRyDailyReportServiceImpl implements IotRyDailyReportService {
|
|
|
AdminUserDO user = users.get(0);
|
|
|
String mobile = user.getMobile();
|
|
|
String finalMsgTitle = msgTitle;
|
|
|
+ String constant;
|
|
|
+ if ("1".equals(dailyReport.getProjectClassification())) {
|
|
|
+ // 钻井
|
|
|
+ constant = PmsConstants.RY_DAILY_REPORT;
|
|
|
+ } else {
|
|
|
+ // 修井
|
|
|
+ constant = PmsConstants.RY_XJ_DAILY_REPORT;
|
|
|
+ }
|
|
|
if (StrUtil.isNotBlank(mobile) && StrUtil.isNotBlank(finalMsgTitle) && StrUtil.isNotBlank(creator)) {
|
|
|
pmsThreadPoolTaskExecutor.execute(() -> {
|
|
|
- pmsMessage.sendMessage(dailyReport.getId(), finalMsgTitle, PmsConstants.RY_DAILY_REPORT, Long.valueOf(creator), mobile);
|
|
|
+ pmsMessage.sendMessage(dailyReport.getId(), finalMsgTitle, constant, Long.valueOf(creator), mobile);
|
|
|
});
|
|
|
}
|
|
|
}
|