|
@@ -5,7 +5,6 @@ import com.zy.bms.common.ServerResponse;
|
|
|
import com.zy.bms.controller.BaseController;
|
|
|
import com.zy.bms.entity.Group;
|
|
|
import com.zy.bms.entity.PrivilegeApplyRecord;
|
|
|
-import com.zy.bms.pojo.io.PageIO;
|
|
|
import com.zy.bms.service.IGroupService;
|
|
|
import com.zy.bms.service.IPrivilegeApplyRecordService;
|
|
|
import com.zy.bms.service.IUserPrivilegeService;
|
|
@@ -62,10 +61,10 @@ public class UbiWxController extends BaseController {
|
|
|
* 通过用户ID分页查询该用户拥有权限的设备列表
|
|
|
*/
|
|
|
@GetMapping("getDeviceList.do")
|
|
|
- public ServerResponse getDeviceList(PageIO io, String group) {
|
|
|
+ public ServerResponse getDeviceList(String group) {
|
|
|
Set<String> groupIds = new HashSet<>(userPrivilegeService.ownGroupIds(userId()));
|
|
|
if (!groupIds.contains(group)) return ServerResponse.warning("无权限");
|
|
|
- return ServerResponse.success(ubiInfoStateService.listPageWx(io, group));
|
|
|
+ return ServerResponse.success(ubiInfoStateService.listWx(group));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -75,4 +74,12 @@ public class UbiWxController extends BaseController {
|
|
|
public ServerResponse getDeviceDetail(String openNum) {
|
|
|
return ServerResponse.success(ubiInfoStateService.getDetailWx(openNum));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取设备详情信息
|
|
|
+ */
|
|
|
+ @GetMapping("checkOpenNum.do")
|
|
|
+ public ServerResponse checkOpenNum(String openNum) {
|
|
|
+ return ServerResponse.success(ubiInfoStateService.checkOpenNum(openNum));
|
|
|
+ }
|
|
|
}
|