Merge remote-tracking branch 'origin/develop' into develop

develop
Angel 10 months ago
commit 24951a03c6

@ -304,7 +304,7 @@ public class BigScreenController extends BaseController {
@PostMapping("/realTimeAlarmSituation") @PostMapping("/realTimeAlarmSituation")
@ApiOperation("实时警情") @ApiOperation("实时警情")
public AjaxResult realTimeAlarmSituation(@ApiParam @Param("时间") @RequestParam String time) { public AjaxResult realTimeAlarmSituation(@ApiParam("时间") @RequestParam String time) {
try { try {
if (0 == NumKit.checkInt(time)) { if (0 == NumKit.checkInt(time)) {
time = "30"; time = "30";

@ -103,7 +103,7 @@ public class PerceptionDeviceController extends BaseController {
@GetMapping("/allHumanTrafficStatistics") @GetMapping("/allHumanTrafficStatistics")
@ApiOperation("人流量统计前7天(全数)") @ApiOperation("人流量统计前7天(全数)")
public AjaxResult allHumanTrafficStatistics(TransitUserRecord transitUserRecord, DevopsDeviceInfo devopsDeviceInfo) { public AjaxResult allHumanTrafficStatistics(TransitUserRecord transitUserRecord) {
try { try {
// 获取当前日期 // 获取当前日期
LocalDate currentDate = LocalDate.now(); LocalDate currentDate = LocalDate.now();
@ -113,7 +113,7 @@ public class PerceptionDeviceController extends BaseController {
for (int i = 1; i <= 7; i++) { for (int i = 1; i <= 7; i++) {
LocalDate date = currentDate.minusDays(i); LocalDate date = currentDate.minusDays(i);
// 构造查询条件 // 构造查询条件
QueryWrapper<DevopsDeviceInfo> deviceInfoQueryWrapper = new QueryWrapper<>(devopsDeviceInfo); QueryWrapper<DevopsDeviceInfo> deviceInfoQueryWrapper = new QueryWrapper<>();
deviceInfoQueryWrapper.eq("parent_monitoring_type", 1); deviceInfoQueryWrapper.eq("parent_monitoring_type", 1);
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(deviceInfoQueryWrapper); List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(deviceInfoQueryWrapper);
@ -139,7 +139,7 @@ public class PerceptionDeviceController extends BaseController {
} }
@GetMapping("/allVehicleTrafficStatistics") @GetMapping("/allVehicleTrafficStatistics")
@ApiOperation("车流量统计前7天(全数)") @ApiOperation("车流量统计前7天(全数)")
public AjaxResult allVehicleTrafficStatistics(TransitVehicleRecord transitVehicleRecord,DevopsDeviceInfo devopsDeviceInfo) { public AjaxResult allVehicleTrafficStatistics(TransitVehicleRecord transitVehicleRecord) {
try { try {
// 获取当前日期 // 获取当前日期
LocalDate currentDate = LocalDate.now(); LocalDate currentDate = LocalDate.now();
@ -149,7 +149,7 @@ public class PerceptionDeviceController extends BaseController {
for (int i = 1; i <= 7; i++) { for (int i = 1; i <= 7; i++) {
LocalDate date = currentDate.minusDays(i); LocalDate date = currentDate.minusDays(i);
// 构造查询条件 // 构造查询条件
QueryWrapper<DevopsDeviceInfo> deviceInfoQueryWrapper = new QueryWrapper<>(devopsDeviceInfo); QueryWrapper<DevopsDeviceInfo> deviceInfoQueryWrapper = new QueryWrapper<>();
deviceInfoQueryWrapper.eq("parent_monitoring_type", 1); deviceInfoQueryWrapper.eq("parent_monitoring_type", 1);
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(deviceInfoQueryWrapper); List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(deviceInfoQueryWrapper);

Loading…
Cancel
Save