解绑Box修改为解绑设备
This commit is contained in:
parent
0310faf5e5
commit
175b5490ac
@ -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()
|
||||
.set("is_delete", 1)
|
||||
.set("modify_time", new Date())
|
||||
.where("user_id", userId)
|
||||
.and("is_delete", 0)
|
||||
.and("device_type", code)
|
||||
//.and("device_type", code)
|
||||
.and("device_id", deviceId)
|
||||
.execute();
|
||||
}
|
||||
|
||||
@ -186,11 +186,11 @@ public class DeviceController {
|
||||
});
|
||||
}
|
||||
|
||||
@GetMapping("/UnbindingBox")
|
||||
public Mono<Integer> UnbindingBox(@RequestParam Long deviceId,
|
||||
@GetMapping("/UnbindingDevice")
|
||||
public Mono<Integer> UnbindingDevice(@RequestParam Long deviceId,
|
||||
@RequestParam Long userId){
|
||||
|
||||
return deviceUserBindService.UnbindingBox(userId, deviceId, DeviceTypeEnum.GUO_BOX.getCode());
|
||||
return deviceUserBindService.UnbindingDevice(userId, deviceId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user