|
@@ -1695,5 +1695,16 @@ public class TEquipmentController {
|
|
List<TDiyFlower> list = tDiyFlowerService.list(query);
|
|
List<TDiyFlower> list = tDiyFlowerService.list(query);
|
|
return R.ok(list);
|
|
return R.ok(list);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "远程修改锁机状态,锁机:1,解锁:0")
|
|
|
|
+ @GetMapping("/updateLockStatus")
|
|
|
|
+ public ResponseModel<?> updateLockStatus(String equipmentId, String status){
|
|
|
|
+ if (StringUtils.isEmpty(equipmentId) || StringUtils.isEmpty(status)) {
|
|
|
|
+ return R.fail(ResponseCodesEnum.A0001, "参数有空");
|
|
|
|
+ }
|
|
|
|
+ TEquipment equipment = tEquipmentService.getById(equipmentId);
|
|
|
|
+ tEquipmentService.sentMessage(equipment.getClientId(), PushUtils.buildJson("block", status).toString());
|
|
|
|
+ return R.ok();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|