|
@@ -1,11 +1,13 @@
|
|
|
package com.yunfeiyun.agmp.iotm.device.pest.controller;
|
|
package com.yunfeiyun.agmp.iotm.device.pest.controller;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
+import com.yunfeiyun.agmp.common.annotation.Log;
|
|
|
import com.yunfeiyun.agmp.common.core.controller.BaseController;
|
|
import com.yunfeiyun.agmp.common.core.controller.BaseController;
|
|
|
import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
|
|
import com.yunfeiyun.agmp.common.core.domain.AjaxResult;
|
|
|
import com.yunfeiyun.agmp.common.core.page.PageDomain;
|
|
import com.yunfeiyun.agmp.common.core.page.PageDomain;
|
|
|
import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
|
|
import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
|
|
|
import com.yunfeiyun.agmp.common.core.page.TableSupport;
|
|
import com.yunfeiyun.agmp.common.core.page.TableSupport;
|
|
|
|
|
+import com.yunfeiyun.agmp.common.enums.BusinessType;
|
|
|
import com.yunfeiyun.agmp.common.utils.StringUtils;
|
|
import com.yunfeiyun.agmp.common.utils.StringUtils;
|
|
|
import com.yunfeiyun.agmp.iot.common.domain.IotCbdimg;
|
|
import com.yunfeiyun.agmp.iot.common.domain.IotCbdimg;
|
|
|
import com.yunfeiyun.agmp.iot.common.service.MongoService;
|
|
import com.yunfeiyun.agmp.iot.common.service.MongoService;
|
|
@@ -18,9 +20,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.mongodb.core.MongoTemplate;
|
|
import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
@@ -75,8 +75,7 @@ public class IotCbdimgController extends BaseController {
|
|
|
|
|
|
|
|
return AjaxResult.success(iotCbdimgSumInfoResVo);
|
|
return AjaxResult.success(iotCbdimgSumInfoResVo);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 识别数据列表
|
|
* 识别数据列表
|
|
|
*/
|
|
*/
|
|
@@ -100,6 +99,16 @@ public class IotCbdimgController extends BaseController {
|
|
|
listPage.setRecords(cbdimgListResVoList);
|
|
listPage.setRecords(cbdimgListResVoList);
|
|
|
return getDataTable(listPage);
|
|
return getDataTable(listPage);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 删除图片
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('iot:device:remove')")
|
|
|
|
|
+ @Log(title = "删除图片", businessType = BusinessType.DELETE)
|
|
|
|
|
+ @DeleteMapping("/delete")
|
|
|
|
|
+ public AjaxResult remove(@RequestParam("ids") String[] ids) {
|
|
|
|
|
+ return toAjax(iotCbdimgService.remove(ids));
|
|
|
|
|
+ }
|
|
|
//
|
|
//
|
|
|
//
|
|
//
|
|
|
//
|
|
//
|
|
@@ -114,16 +123,7 @@ public class IotCbdimgController extends BaseController {
|
|
|
// return AjaxResult.success(iotCbdimgGroupDateListResVoList);
|
|
// return AjaxResult.success(iotCbdimgGroupDateListResVoList);
|
|
|
// }
|
|
// }
|
|
|
//
|
|
//
|
|
|
-//
|
|
|
|
|
-// /**
|
|
|
|
|
-// * 删除图片
|
|
|
|
|
-// */
|
|
|
|
|
-// @PreAuthorize("@ss.hasPermi('iot:device:remove')")
|
|
|
|
|
-// @Log(title = "删除图片", businessType = BusinessType.DELETE)
|
|
|
|
|
-// @DeleteMapping("/delete")
|
|
|
|
|
-// public AjaxResult remove(@RequestParam("ids") String[] ids) {
|
|
|
|
|
-// return toAjax(iotCbdimgService.remove(ids));
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+
|
|
|
//
|
|
//
|
|
|
// protected TableDataInfo getDataTable(IPage page) {
|
|
// protected TableDataInfo getDataTable(IPage page) {
|
|
|
// TableDataInfo rspData = new TableDataInfo();
|
|
// TableDataInfo rspData = new TableDataInfo();
|