|
|
|
@ -23,7 +23,9 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 智能设备信息表(DevopsDeviceInfo)Controller
|
|
|
|
@ -112,9 +114,29 @@ public class DevopsDeviceInfoController extends BaseController {
|
|
|
|
|
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(new QueryWrapper<>(devopsDeviceInfo));
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
// LambdaQueryWrapper<DevopsDeviceInfo> devopsDeviceInfoQueryWrapper = new LambdaQueryWrapper<>(devopsDeviceInfo);
|
|
|
|
|
// devopsDeviceInfoQueryWrapper.in(DevopsDeviceInfo::getGbsChannelNo,strings);
|
|
|
|
|
// List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(devopsDeviceInfoQueryWrapper);
|
|
|
|
|
|
|
|
|
|
@GetMapping("/typeOne")
|
|
|
|
|
@ApiOperation("查询智能一级")
|
|
|
|
|
public TableDataInfo<DevopsDeviceInfo> OnelevelList(
|
|
|
|
|
@RequestParam Integer isDoorwayVideo,
|
|
|
|
|
@RequestParam String deviceType // 使用逗号分隔的字符串
|
|
|
|
|
) {
|
|
|
|
|
startPage();
|
|
|
|
|
|
|
|
|
|
// 将逗号分隔的字符串转为整数列表
|
|
|
|
|
List<Integer> deviceTypeList = Arrays.stream(deviceType.split(","))
|
|
|
|
|
.map(Integer::parseInt)
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
QueryWrapper<DevopsDeviceInfo> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq("is_doorway_video", isDoorwayVideo)
|
|
|
|
|
.in("device_type", deviceTypeList);
|
|
|
|
|
|
|
|
|
|
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(queryWrapper);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping
|
|
|
|
|
@ApiOperation("新增智能设备信息表")
|
|
|
|
|
@Log(title = "智能设备信息表", businessType = BusinessType.INSERT)
|
|
|
|
|