|
@@ -24,6 +24,7 @@ import cn.com.ty.lift.business.push.service.PushUserService;
|
|
|
import cn.com.ty.lift.common.base.ExportRequest;
|
|
|
import cn.com.ty.lift.common.constants.ApiConstants;
|
|
|
import cn.com.ty.lift.common.constants.CommonEnum;
|
|
|
+import cn.com.ty.lift.common.constants.WebSocketConstants;
|
|
|
import cn.com.ty.lift.common.export.ExportUtils;
|
|
|
import cn.com.ty.lift.common.model.PushMessage;
|
|
|
import cn.com.ty.lift.common.model.PushUserInfo;
|
|
@@ -210,7 +211,7 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * @param liftId 电梯ID
|
|
|
+ * @param liftId 电梯ID
|
|
|
* @param mtCompanyId 公司ID
|
|
|
* @return
|
|
|
* @description 新增电梯消息推送
|
|
@@ -241,7 +242,8 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
pushMessage.sendTokenOnPlatform(jmsMessagingTemplate, pushUserInfos);
|
|
|
List<Long> sendToUserIdList = pushUserInfos.stream().map(PushUserInfo::getUserId).collect(Collectors.toList());
|
|
|
//推送pc端
|
|
|
- SendMessageUtil.sendMessageToPC(jmsMessagingTemplate, sendToUserIdList, pushMessage.getContent());
|
|
|
+ SendMessageUtil.sendMessageToPC(jmsMessagingTemplate, sendToUserIdList, pushMessage.getContent(),
|
|
|
+ WebSocketConstants.MessageType.WORK_MSG);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -263,7 +265,7 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
Long mtCompanyId = request.getMtCompanyId();
|
|
|
Lift lift = request.getLift();
|
|
|
if (maintenanceService.judge(mtCompanyId))
|
|
|
- return RestResponse.fail(ApiConstants.RESULT_ERROR, MessageUtils.get("msg.limit.num"));
|
|
|
+ return RestResponse.fail(ApiConstants.RESULT_ERROR, MessageUtils.get("msg.limit.num"));
|
|
|
RestResponse response = preJudgment(mtCompanyId, lift.getRegistrationCode());
|
|
|
if (ApiConstants.RESULT_ERROR.equals(response.getStatusCode())) return response;
|
|
|
//新增标记 (0:新增,1:查询后带入)
|
|
@@ -329,7 +331,7 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param projectId 项目ID
|
|
|
+ * @param projectId 项目ID
|
|
|
* @param mtCompanyId 公司ID
|
|
|
* @return
|
|
|
* @description 更新电梯位置消息推送
|
|
@@ -360,7 +362,8 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
pushMessage.sendTokenOnPlatform(jmsMessagingTemplate, pushUserInfos);
|
|
|
List<Long> sendToUserIdList = pushUserInfos.stream().map(PushUserInfo::getUserId).collect(Collectors.toList());
|
|
|
//推送pc端
|
|
|
- SendMessageUtil.sendMessageToPC(jmsMessagingTemplate, sendToUserIdList, pushMessage.getContent());
|
|
|
+ SendMessageUtil.sendMessageToPC(jmsMessagingTemplate, sendToUserIdList, pushMessage.getContent(),
|
|
|
+ WebSocketConstants.MessageType.WORK_MSG);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -567,9 +570,10 @@ public class LiftService extends ServiceImpl<LiftMapper, Lift> {
|
|
|
|
|
|
/**
|
|
|
* 待确认年检计划,提前45天提醒
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
- public IPage<LiftAnnualInspectionResponse> toConfirmAnnualInspection(IPage<LiftAnnualInspectionResponse> page, Long mtCompanyId, int days){
|
|
|
+ public IPage<LiftAnnualInspectionResponse> toConfirmAnnualInspection(IPage<LiftAnnualInspectionResponse> page, Long mtCompanyId, int days) {
|
|
|
return baseMapper.toConfirmAnnualInspection(page, mtCompanyId, days);
|
|
|
}
|
|
|
|