|
@@ -25,6 +25,7 @@ import com.szwl.constant.ResponseCodesEnum;
|
|
|
import com.szwl.exception.BizException;
|
|
|
import com.szwl.manager.TokenManager;
|
|
|
import com.szwl.model.bean.*;
|
|
|
+import com.szwl.model.bo.ParamBo;
|
|
|
import com.szwl.model.bo.R;
|
|
|
import com.szwl.model.bo.ResponseModel;
|
|
|
import com.szwl.model.bo.UserDetailBO;
|
|
@@ -1572,7 +1573,12 @@ public class TEquipmentController {
|
|
|
String clientId = equipment.getClientId();
|
|
|
String name = commonParamVo.getName();
|
|
|
String val = commonParamVo.getVal();
|
|
|
- String message = PushUtils.buildJson(OperationType.PARAM.getCode(), name + ":" + val).toString();
|
|
|
+ String code = commonParamVo.getCode();
|
|
|
+ ParamBo paramBo = new ParamBo();
|
|
|
+ paramBo.setName(name);
|
|
|
+ paramBo.setVal(val);
|
|
|
+ paramBo.setStatus(code);
|
|
|
+ String message = PushUtils.buildJson(OperationType.PARAM.getCode(), JSON.toJSONString(paramBo)).toString();
|
|
|
tEquipmentService.sendRemoteMessage(clientId, OperationType.PARAM, message, adminId);
|
|
|
// MQ消息
|
|
|
tEquipmentService.sentMessage(clientId, PushUtils.buildJson("Param", name + ":" + val).toString());
|
|
@@ -1594,6 +1600,7 @@ public class TEquipmentController {
|
|
|
String clientId = equipment.getClientId();
|
|
|
String name = commonParamVo.getName();
|
|
|
String val = commonParamVo.getVal();
|
|
|
+
|
|
|
String message = PushUtils.buildJson(OperationType.HUMIDITY_PARAMETERS.getCode(), name + ":" + val).toString();
|
|
|
tEquipmentService.sendRemoteMessage(clientId, OperationType.HUMIDITY_PARAMETERS, message, adminId);
|
|
|
// MQ消息
|