解绑Box修改为解绑设备

This commit is contained in:
wulin 2023-10-08 13:35:22 +08:00
parent 0310faf5e5
commit 175b5490ac
2 changed files with 5 additions and 5 deletions

View File

@ -380,13 +380,13 @@ public class DeviceUserBindService extends GenericReactiveCrudService<DeviceUser
} }
public Mono<Integer> UnbindingBox(Long userId, Long deviceId, Integer code) { public Mono<Integer> UnbindingDevice(Long userId, Long deviceId) {
return createUpdate() return createUpdate()
.set("is_delete", 1) .set("is_delete", 1)
.set("modify_time", new Date()) .set("modify_time", new Date())
.where("user_id", userId) .where("user_id", userId)
.and("is_delete", 0) .and("is_delete", 0)
.and("device_type", code) //.and("device_type", code)
.and("device_id", deviceId) .and("device_id", deviceId)
.execute(); .execute();
} }

View File

@ -186,11 +186,11 @@ public class DeviceController {
}); });
} }
@GetMapping("/UnbindingBox") @GetMapping("/UnbindingDevice")
public Mono<Integer> UnbindingBox(@RequestParam Long deviceId, public Mono<Integer> UnbindingDevice(@RequestParam Long deviceId,
@RequestParam Long userId){ @RequestParam Long userId){
return deviceUserBindService.UnbindingBox(userId, deviceId, DeviceTypeEnum.GUO_BOX.getCode()); return deviceUserBindService.UnbindingDevice(userId, deviceId);
} }