|
|
|
@ -412,11 +412,15 @@ public class PatrolTaskStatusController extends BaseController { |
|
|
|
int deleteCount = this.patrolTaskStatusService.deletePatrolTaskStatusByTaskPatrolledIds(ids); |
|
|
|
log.info("[TASK_STATUS_DELETE] 删除完成, taskPatrolledIds: {}, deleteCount: {}", ids, deleteCount); |
|
|
|
|
|
|
|
// 推送消息通知中恒(失败不影响删除结果) |
|
|
|
String stationCode = (String) redisService.redisTemplate.opsForValue().get(STATION_CODE_REDIS_KEY); |
|
|
|
boolean pushSuccess = taskStatusDeletePushService.pushTaskDelete(stationCode, ids); |
|
|
|
if (!pushSuccess) { |
|
|
|
log.error("[TASK_STATUS_DELETE] 推送删除消息失败, taskPatrolledIds: {}, stationCode: {}", ids, stationCode); |
|
|
|
// 推送消息通知中恒(未启用或推送失败都不影响删除结果) |
|
|
|
boolean pushSuccess = false; |
|
|
|
String stationCode = null; |
|
|
|
if (taskStatusDeletePushService.isEnabled()) { |
|
|
|
stationCode = (String) redisService.redisTemplate.opsForValue().get(STATION_CODE_REDIS_KEY); |
|
|
|
pushSuccess = taskStatusDeletePushService.pushTaskDelete(stationCode, ids); |
|
|
|
if (!pushSuccess) { |
|
|
|
log.error("[TASK_STATUS_DELETE] 推送删除消息失败, taskPatrolledIds: {}, stationCode: {}", ids, stationCode); |
|
|
|
} |
|
|
|
} |
|
|
|
AjaxResult result = AjaxResult.success(); |
|
|
|
result.put("deleteCount", deleteCount); |
|
|
|
|