|
@@ -1,12 +1,20 @@
|
|
|
package com.middle.platform.manage.biz.controller;
|
|
package com.middle.platform.manage.biz.controller;
|
|
|
|
|
|
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
|
|
+import com.middle.platform.common.utils.Result;
|
|
|
|
|
+import com.middle.platform.manage.biz.domain.IotDevice;
|
|
|
import com.middle.platform.manage.biz.domain.IotProject;
|
|
import com.middle.platform.manage.biz.domain.IotProject;
|
|
|
|
|
+import com.middle.platform.manage.biz.domain.vo.req.IotDeviceVo;
|
|
|
import com.middle.platform.manage.biz.service.IotProjectServiceImpl;
|
|
import com.middle.platform.manage.biz.service.IotProjectServiceImpl;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 项目表(iot_project)表控制层
|
|
* 项目表(iot_project)表控制层
|
|
|
*
|
|
*
|
|
@@ -21,6 +29,14 @@ public class IotProjectController {
|
|
|
*/
|
|
*/
|
|
|
private final IotProjectServiceImpl iotProjectServiceImpl;
|
|
private final IotProjectServiceImpl iotProjectServiceImpl;
|
|
|
|
|
|
|
|
|
|
+ public Result<List<IotProject>> select(@RequestBody @Validated IotDeviceVo params){
|
|
|
|
|
+ PageHelper.startPage(1,10);
|
|
|
|
|
+ List<IotProject> list = iotProjectServiceImpl.select(params);
|
|
|
|
|
+ return Result.ok(list);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 通过主键查询单条数据
|
|
* 通过主键查询单条数据
|
|
|
*
|
|
*
|