| | |
| | | @ApiOperation(value = "列表", notes = "传入isAreaSelect、areaId、status") |
| | | public R<List<FwDeviceVO>> list(@RequestParam(value = "isAreaSelect", required = false) Integer isAreaSelect, |
| | | @RequestParam(value = "areaId", required = false) Long areaId, |
| | | @RequestParam(value = "status", required = false) Integer status) { |
| | | List<FwDeviceEntity> list = fwDeviceService.selectFwDeviceList(isAreaSelect, areaId, status); |
| | | @RequestParam(value = "status", required = false) Integer status, |
| | | @RequestParam(value = "isTrack", required = false) Integer isTrack) { |
| | | List<FwDeviceEntity> list = fwDeviceService.selectFwDeviceList(isAreaSelect, areaId, status, isTrack); |
| | | FwDeviceWrapper wrapper = FwDeviceWrapper.build(); |
| | | return R.data(list.stream().map(wrapper::entityVO).collect(Collectors.toList())); |
| | | } |
| | |
| | | public R submit(@Valid @RequestBody FwDeviceDTO fwDevice) { |
| | | return R.status(fwDeviceService.saveOrUpdateDevice(FwDeviceWrapper.build().entityDTO(fwDevice))); |
| | | } |
| | | /** |
| | | * 设备表 新增或修改 |
| | | */ |
| | | @PostMapping("/updateTrackStatus") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "修改设备出入库状态", notes = "传入fwDevice") |
| | | public R updateTrackStatus(@ApiParam(value = "", required = true) @RequestParam Long deviceId) { |
| | | return R.status(fwDeviceService.updateTrackStatusByDeviceId(deviceId,0)); |
| | | } |
| | | |
| | | /** |
| | | * 设备表 删除 |