|
@@ -142,12 +142,15 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
Map<String, IotDeviceDO> carIdDevicePair = new HashMap<>();
|
|
Map<String, IotDeviceDO> carIdDevicePair = new HashMap<>();
|
|
|
// 中航北斗车辆id集合
|
|
// 中航北斗车辆id集合
|
|
|
Set<String> zhbdCarIds = new HashSet<>();
|
|
Set<String> zhbdCarIds = new HashSet<>();
|
|
|
|
|
+ // 井号
|
|
|
|
|
+ String wellName = StrUtil.EMPTY;
|
|
|
if (CollUtil.isNotEmpty(tasks)) {
|
|
if (CollUtil.isNotEmpty(tasks)) {
|
|
|
IotProjectTaskDO task = tasks.get(0);
|
|
IotProjectTaskDO task = tasks.get(0);
|
|
|
// 暂时只考虑1个施工队伍只属于1个任务
|
|
// 暂时只考虑1个施工队伍只属于1个任务
|
|
|
iotRhDailyReport.setProjectId(task.getProjectId());
|
|
iotRhDailyReport.setProjectId(task.getProjectId());
|
|
|
iotRhDailyReport.setTaskId(task.getId());
|
|
iotRhDailyReport.setTaskId(task.getId());
|
|
|
taskId = task.getId();
|
|
taskId = task.getId();
|
|
|
|
|
+ wellName = task.getWellName();
|
|
|
// 根据日报状态 查询 日报所属任务的状态
|
|
// 根据日报状态 查询 日报所属任务的状态
|
|
|
if (ObjUtil.isNotEmpty(createReqVO.getConstructionStatus())) {
|
|
if (ObjUtil.isNotEmpty(createReqVO.getConstructionStatus())) {
|
|
|
task.setStatus(createReqVO.getConstructionStatus());
|
|
task.setStatus(createReqVO.getConstructionStatus());
|
|
@@ -354,15 +357,20 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
|
|
|
// 给多个用户发送 相同 的 提醒消息
|
|
// 给多个用户发送 相同 的 提醒消息
|
|
|
if (CollUtil.isNotEmpty(users)) {
|
|
if (CollUtil.isNotEmpty(users)) {
|
|
|
// 生成消息提醒标题 部门名称-井号
|
|
// 生成消息提醒标题 部门名称-井号
|
|
|
|
|
+ String msgTitle = dept.getName();
|
|
|
|
|
+ if (StrUtil.isNotBlank(wellName)) {
|
|
|
|
|
+ msgTitle = StrUtil.join("-", msgTitle, wellName);
|
|
|
|
|
+ }
|
|
|
CountDownLatch latch = new CountDownLatch(users.size());
|
|
CountDownLatch latch = new CountDownLatch(users.size());
|
|
|
|
|
+ String finalMsgTitle = msgTitle;
|
|
|
users.forEach((userId, user) -> {
|
|
users.forEach((userId, user) -> {
|
|
|
pmsThreadPoolTaskExecutor.execute(() -> {
|
|
pmsThreadPoolTaskExecutor.execute(() -> {
|
|
|
try {
|
|
try {
|
|
|
- /* String mobile = user.getMobile();
|
|
|
|
|
- if (StrUtil.isNotBlank(mobile) && StrUtil.isNotBlank(tobeSendMsgReport.getReportName())) {
|
|
|
|
|
- pmsMessage.sendMessage(tobeSendMsgReport.getId(), tobeSendMsgReport.getReportName(), PmsConstants.DAILY_REPORT_APPROVAL,
|
|
|
|
|
- userId, mobile);
|
|
|
|
|
- } */
|
|
|
|
|
|
|
+ String mobile = user.getMobile();
|
|
|
|
|
+ if (StrUtil.isNotBlank(mobile) && StrUtil.isNotBlank(finalMsgTitle)) {
|
|
|
|
|
+ /* pmsMessage.sendMessage(iotRhDailyReport.getId(), finalMsgTitle, PmsConstants.RH_DAILY_REPORT_APPROVAL,
|
|
|
|
|
+ userId, mobile); */
|
|
|
|
|
+ }
|
|
|
} finally {
|
|
} finally {
|
|
|
latch.countDown();
|
|
latch.countDown();
|
|
|
}
|
|
}
|