设备信息
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package com.fastbee.data.controller.deviceInfo;
|
||||
package com.fastbee.data.controller.aaScreenAgricultural;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@ -28,7 +28,7 @@ import com.fastbee.common.core.page.TableDataInfo;
|
||||
* 气象设备基础信息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-11-18
|
||||
* @date 2024-11-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/meteorology")
|
||||
@ -67,12 +67,11 @@ public class DeviceInformationMeteorologyController extends BaseController
|
||||
/**
|
||||
* 获取气象设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:meteorology:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@GetMapping(value = "deviceEncoding")
|
||||
@ApiOperation("获取气象设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
public AjaxResult getInfo(String deviceEncoding)
|
||||
{
|
||||
return success(deviceInformationMeteorologyService.selectDeviceInformationMeteorologyById(id));
|
||||
return success(deviceInformationMeteorologyService.selectDeviceInformationMeteorologyById(deviceEncoding));
|
||||
}
|
||||
|
||||
/**
|
@ -5,7 +5,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@ -15,10 +14,8 @@ import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.fastbee.common.annotation.Log;
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.common.enums.BusinessType;
|
||||
import com.fastbee.deviceInfo.domain.DeviceInformationMiaoqing;
|
||||
import com.fastbee.deviceInfo.service.IDeviceInformationMiaoqingService;
|
||||
import com.fastbee.common.utils.poi.ExcelUtil;
|
||||
@ -31,9 +28,9 @@ import com.fastbee.common.core.page.TableDataInfo;
|
||||
* @date 2024-11-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/miaoQing")
|
||||
@RequestMapping("/deviceInfo/miaoQing1")
|
||||
@Api(tags = "苗情设备基础信息")
|
||||
public class DeviceInformationMiaoqingController extends BaseController
|
||||
public class DeviceInformationMiaoqing1Controller extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceInformationMiaoqingService deviceInformationMiaoqingService;
|
||||
@ -41,7 +38,6 @@ public class DeviceInformationMiaoqingController extends BaseController
|
||||
/**
|
||||
* 查询苗情设备基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询苗情设备基础信息列表")
|
||||
public TableDataInfo list(DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
@ -55,7 +51,6 @@ public class DeviceInformationMiaoqingController extends BaseController
|
||||
* 导出苗情设备基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出苗情设备基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
{
|
||||
@ -67,18 +62,16 @@ public class DeviceInformationMiaoqingController extends BaseController
|
||||
/**
|
||||
* 获取苗情设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取苗情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@GetMapping(value = "/deviceEncoding")
|
||||
@ApiOperation("根据device_encoding获取苗情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(String deviceEncoding)
|
||||
{
|
||||
return success(deviceInformationMiaoqingService.selectDeviceInformationMiaoqingById(id));
|
||||
return success(deviceInformationMiaoqingService.selectDeviceInformationMiaoqingById(deviceEncoding));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增苗情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增苗情设备基础信息")
|
||||
public AjaxResult add(@RequestBody DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
@ -89,7 +82,6 @@ public class DeviceInformationMiaoqingController extends BaseController
|
||||
/**
|
||||
* 修改苗情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改苗情设备基础信息")
|
||||
public AjaxResult edit(@RequestBody DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
@ -100,7 +92,6 @@ public class DeviceInformationMiaoqingController extends BaseController
|
||||
/**
|
||||
* 删除苗情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除苗情设备基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
@ -63,15 +63,13 @@ public class DeviceInformationMoistureController extends BaseController
|
||||
util.exportExcel(response, list, "墒情设备基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取墒情设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
|
||||
|
||||
@GetMapping(value = "/deviceEncoding")
|
||||
@ApiOperation("获取墒情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
public AjaxResult getInfo(String deviceEncoding)
|
||||
{
|
||||
return success(deviceInformationMoistureService.selectDeviceInformationMoistureById(id));
|
||||
return success(deviceInformationMoistureService.selectDeviceInformationMoistureById(deviceEncoding));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,12 +67,11 @@ public class DeviceInformationMonitorController extends BaseController
|
||||
/**
|
||||
* 获取监控站设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@GetMapping(value = "/deviceEncoding")
|
||||
@ApiOperation("获取监控站设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
public AjaxResult getInfo(String deviceEncoding)
|
||||
{
|
||||
return success(deviceInformationMonitorService.selectDeviceInformationMonitorById(id));
|
||||
return success(deviceInformationMonitorService.selectDeviceInformationMonitorById(deviceEncoding));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,12 +67,11 @@ public class DeviceInformationTargetpestsController extends BaseController
|
||||
/**
|
||||
* 获取靶标害虫设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@GetMapping(value = "/deviceEncoding")
|
||||
@ApiOperation("获取靶标害虫设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
public AjaxResult getInfo(String deviceEncoding)
|
||||
{
|
||||
return success(deviceInformationTargetpestsService.selectDeviceInformationTargetpestsById(id));
|
||||
return success(deviceInformationTargetpestsService.selectDeviceInformationTargetpestsById(deviceEncoding));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,12 +67,11 @@ public class DeviceInformationWormsController extends BaseController
|
||||
/**
|
||||
* 获取虫情设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@GetMapping(value = "/deviceEncoding")
|
||||
@ApiOperation("获取虫情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
public AjaxResult getInfo(String deviceEncoding)
|
||||
{
|
||||
return success(deviceInformationWormsService.selectDeviceInformationWormsById(id));
|
||||
return success(deviceInformationWormsService.selectDeviceInformationWormsById(deviceEncoding));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,110 +0,0 @@
|
||||
package com.fastbee.data.controller.deviceInfo;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.fastbee.common.annotation.Log;
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.common.enums.BusinessType;
|
||||
import com.fastbee.deviceInfo.domain.DeviceInformationMiaoqing;
|
||||
import com.fastbee.deviceInfo.service.IDeviceInformationMiaoqingService;
|
||||
import com.fastbee.common.utils.poi.ExcelUtil;
|
||||
import com.fastbee.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 苗情设备基础信息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-11-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/miaoQing")
|
||||
@Api(tags = "苗情设备基础信息")
|
||||
public class DeviceInformationMiaoqingController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceInformationMiaoqingService deviceInformationMiaoqingService;
|
||||
|
||||
/**
|
||||
* 查询苗情设备基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询苗情设备基础信息列表")
|
||||
public TableDataInfo list(DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceInformationMiaoqing> list = deviceInformationMiaoqingService.selectDeviceInformationMiaoqingList(deviceInformationMiaoqing);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出苗情设备基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出苗情设备基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
{
|
||||
List<DeviceInformationMiaoqing> list = deviceInformationMiaoqingService.selectDeviceInformationMiaoqingList(deviceInformationMiaoqing);
|
||||
ExcelUtil<DeviceInformationMiaoqing> util = new ExcelUtil<DeviceInformationMiaoqing>(DeviceInformationMiaoqing.class);
|
||||
util.exportExcel(response, list, "苗情设备基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取苗情设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取苗情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceInformationMiaoqingService.selectDeviceInformationMiaoqingById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增苗情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增苗情设备基础信息")
|
||||
public AjaxResult add(@RequestBody DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
{
|
||||
return toAjax(deviceInformationMiaoqingService.insertDeviceInformationMiaoqing(deviceInformationMiaoqing));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改苗情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改苗情设备基础信息")
|
||||
public AjaxResult edit(@RequestBody DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||
{
|
||||
return toAjax(deviceInformationMiaoqingService.updateDeviceInformationMiaoqing(deviceInformationMiaoqing));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除苗情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:miaoQing:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除苗情设备基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceInformationMiaoqingService.deleteDeviceInformationMiaoqingByIds(ids));
|
||||
}
|
||||
}
|
@ -1,110 +0,0 @@
|
||||
package com.fastbee.data.controller.deviceInfo;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.fastbee.common.annotation.Log;
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.common.enums.BusinessType;
|
||||
import com.fastbee.deviceInfo.domain.DeviceInformationMoisture;
|
||||
import com.fastbee.deviceInfo.service.IDeviceInformationMoistureService;
|
||||
import com.fastbee.common.utils.poi.ExcelUtil;
|
||||
import com.fastbee.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 墒情设备基础信息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-11-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/moisture")
|
||||
@Api(tags = "墒情设备基础信息")
|
||||
public class DeviceInformationMoistureController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceInformationMoistureService deviceInformationMoistureService;
|
||||
|
||||
/**
|
||||
* 查询墒情设备基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询墒情设备基础信息列表")
|
||||
public TableDataInfo list(DeviceInformationMoisture deviceInformationMoisture)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceInformationMoisture> list = deviceInformationMoistureService.selectDeviceInformationMoistureList(deviceInformationMoisture);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出墒情设备基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出墒情设备基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInformationMoisture deviceInformationMoisture)
|
||||
{
|
||||
List<DeviceInformationMoisture> list = deviceInformationMoistureService.selectDeviceInformationMoistureList(deviceInformationMoisture);
|
||||
ExcelUtil<DeviceInformationMoisture> util = new ExcelUtil<DeviceInformationMoisture>(DeviceInformationMoisture.class);
|
||||
util.exportExcel(response, list, "墒情设备基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取墒情设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取墒情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceInformationMoistureService.selectDeviceInformationMoistureById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增墒情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增墒情设备基础信息")
|
||||
public AjaxResult add(@RequestBody DeviceInformationMoisture deviceInformationMoisture)
|
||||
{
|
||||
return toAjax(deviceInformationMoistureService.insertDeviceInformationMoisture(deviceInformationMoisture));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改墒情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改墒情设备基础信息")
|
||||
public AjaxResult edit(@RequestBody DeviceInformationMoisture deviceInformationMoisture)
|
||||
{
|
||||
return toAjax(deviceInformationMoistureService.updateDeviceInformationMoisture(deviceInformationMoisture));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除墒情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:moisture:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除墒情设备基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceInformationMoistureService.deleteDeviceInformationMoistureByIds(ids));
|
||||
}
|
||||
}
|
@ -1,110 +0,0 @@
|
||||
package com.fastbee.data.controller.deviceInfo;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.fastbee.common.annotation.Log;
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.common.enums.BusinessType;
|
||||
import com.fastbee.deviceInfo.domain.DeviceInformationMonitor;
|
||||
import com.fastbee.deviceInfo.service.IDeviceInformationMonitorService;
|
||||
import com.fastbee.common.utils.poi.ExcelUtil;
|
||||
import com.fastbee.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 监控站设备基础信息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-11-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/monitor")
|
||||
@Api(tags = "监控站设备基础信息")
|
||||
public class DeviceInformationMonitorController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceInformationMonitorService deviceInformationMonitorService;
|
||||
|
||||
/**
|
||||
* 查询监控站设备基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询监控站设备基础信息列表")
|
||||
public TableDataInfo list(DeviceInformationMonitor deviceInformationMonitor)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceInformationMonitor> list = deviceInformationMonitorService.selectDeviceInformationMonitorList(deviceInformationMonitor);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出监控站设备基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出监控站设备基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInformationMonitor deviceInformationMonitor)
|
||||
{
|
||||
List<DeviceInformationMonitor> list = deviceInformationMonitorService.selectDeviceInformationMonitorList(deviceInformationMonitor);
|
||||
ExcelUtil<DeviceInformationMonitor> util = new ExcelUtil<DeviceInformationMonitor>(DeviceInformationMonitor.class);
|
||||
util.exportExcel(response, list, "监控站设备基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取监控站设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取监控站设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceInformationMonitorService.selectDeviceInformationMonitorById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增监控站设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增监控站设备基础信息")
|
||||
public AjaxResult add(@RequestBody DeviceInformationMonitor deviceInformationMonitor)
|
||||
{
|
||||
return toAjax(deviceInformationMonitorService.insertDeviceInformationMonitor(deviceInformationMonitor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改监控站设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改监控站设备基础信息")
|
||||
public AjaxResult edit(@RequestBody DeviceInformationMonitor deviceInformationMonitor)
|
||||
{
|
||||
return toAjax(deviceInformationMonitorService.updateDeviceInformationMonitor(deviceInformationMonitor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除监控站设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:monitor:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除监控站设备基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceInformationMonitorService.deleteDeviceInformationMonitorByIds(ids));
|
||||
}
|
||||
}
|
@ -1,110 +0,0 @@
|
||||
package com.fastbee.data.controller.deviceInfo;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.fastbee.common.annotation.Log;
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.common.enums.BusinessType;
|
||||
import com.fastbee.deviceInfo.domain.DeviceInformationTargetpests;
|
||||
import com.fastbee.deviceInfo.service.IDeviceInformationTargetpestsService;
|
||||
import com.fastbee.common.utils.poi.ExcelUtil;
|
||||
import com.fastbee.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 靶标害虫设备基础信息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-11-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/targetPests")
|
||||
@Api(tags = "靶标害虫设备基础信息")
|
||||
public class DeviceInformationTargetpestsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceInformationTargetpestsService deviceInformationTargetpestsService;
|
||||
|
||||
/**
|
||||
* 查询靶标害虫设备基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询靶标害虫设备基础信息列表")
|
||||
public TableDataInfo list(DeviceInformationTargetpests deviceInformationTargetpests)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceInformationTargetpests> list = deviceInformationTargetpestsService.selectDeviceInformationTargetpestsList(deviceInformationTargetpests);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出靶标害虫设备基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出靶标害虫设备基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInformationTargetpests deviceInformationTargetpests)
|
||||
{
|
||||
List<DeviceInformationTargetpests> list = deviceInformationTargetpestsService.selectDeviceInformationTargetpestsList(deviceInformationTargetpests);
|
||||
ExcelUtil<DeviceInformationTargetpests> util = new ExcelUtil<DeviceInformationTargetpests>(DeviceInformationTargetpests.class);
|
||||
util.exportExcel(response, list, "靶标害虫设备基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取靶标害虫设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取靶标害虫设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceInformationTargetpestsService.selectDeviceInformationTargetpestsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增靶标害虫设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增靶标害虫设备基础信息")
|
||||
public AjaxResult add(@RequestBody DeviceInformationTargetpests deviceInformationTargetpests)
|
||||
{
|
||||
return toAjax(deviceInformationTargetpestsService.insertDeviceInformationTargetpests(deviceInformationTargetpests));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改靶标害虫设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改靶标害虫设备基础信息")
|
||||
public AjaxResult edit(@RequestBody DeviceInformationTargetpests deviceInformationTargetpests)
|
||||
{
|
||||
return toAjax(deviceInformationTargetpestsService.updateDeviceInformationTargetpests(deviceInformationTargetpests));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除靶标害虫设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:targetPests:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除靶标害虫设备基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceInformationTargetpestsService.deleteDeviceInformationTargetpestsByIds(ids));
|
||||
}
|
||||
}
|
@ -1,110 +0,0 @@
|
||||
package com.fastbee.data.controller.deviceInfo;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.fastbee.common.annotation.Log;
|
||||
import com.fastbee.common.core.controller.BaseController;
|
||||
import com.fastbee.common.core.domain.AjaxResult;
|
||||
import com.fastbee.common.enums.BusinessType;
|
||||
import com.fastbee.deviceInfo.domain.DeviceInformationWorms;
|
||||
import com.fastbee.deviceInfo.service.IDeviceInformationWormsService;
|
||||
import com.fastbee.common.utils.poi.ExcelUtil;
|
||||
import com.fastbee.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 虫情设备基础信息Controller
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-11-18
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/deviceInfo/worms")
|
||||
@Api(tags = "虫情设备基础信息")
|
||||
public class DeviceInformationWormsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceInformationWormsService deviceInformationWormsService;
|
||||
|
||||
/**
|
||||
* 查询虫情设备基础信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询虫情设备基础信息列表")
|
||||
public TableDataInfo list(DeviceInformationWorms deviceInformationWorms)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceInformationWorms> list = deviceInformationWormsService.selectDeviceInformationWormsList(deviceInformationWorms);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出虫情设备基础信息列表
|
||||
*/
|
||||
@ApiOperation("导出虫情设备基础信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceInformationWorms deviceInformationWorms)
|
||||
{
|
||||
List<DeviceInformationWorms> list = deviceInformationWormsService.selectDeviceInformationWormsList(deviceInformationWorms);
|
||||
ExcelUtil<DeviceInformationWorms> util = new ExcelUtil<DeviceInformationWorms>(DeviceInformationWorms.class);
|
||||
util.exportExcel(response, list, "虫情设备基础信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取虫情设备基础信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取虫情设备基础信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceInformationWormsService.selectDeviceInformationWormsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增虫情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增虫情设备基础信息")
|
||||
public AjaxResult add(@RequestBody DeviceInformationWorms deviceInformationWorms)
|
||||
{
|
||||
return toAjax(deviceInformationWormsService.insertDeviceInformationWorms(deviceInformationWorms));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改虫情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:edit')")
|
||||
@PutMapping
|
||||
@ApiOperation("修改虫情设备基础信息")
|
||||
public AjaxResult edit(@RequestBody DeviceInformationWorms deviceInformationWorms)
|
||||
{
|
||||
return toAjax(deviceInformationWormsService.updateDeviceInformationWorms(deviceInformationWorms));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除虫情设备基础信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('deviceInfo:worms:remove')")
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除虫情设备基础信息")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceInformationWormsService.deleteDeviceInformationWormsByIds(ids));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user