解绑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()
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user