车流量,人流量。(当天)

develop
Angel 11 months ago
parent 7e31032668
commit bd159a8056

@ -1,7 +1,5 @@
package com.ruoyi.database.controller; package com.ruoyi.database.controller;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.database.domain.PeopleVehicleFlow; import com.ruoyi.database.domain.PeopleVehicleFlow;
@ -9,15 +7,13 @@ import com.ruoyi.database.service.PeopleVehicleFlowService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.aspectj.apache.bcel.generic.TABLESWITCH;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
@Api(tags = "人记录表") @Api(tags = "人口和车辆七天流量记录表")
@RestController @RestController
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/base/peopleVehicleFlow") @RequestMapping("/base/peopleVehicleFlow")

@ -0,0 +1,33 @@
package com.ruoyi.database.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.database.domain.PeopleVehicleFlow;
import com.ruoyi.database.domain.PeopleVehicleHourFlow;
import com.ruoyi.database.service.PeopleVehicleHourFlowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "人口和车辆当天流量记录表")
@RestController
@RequiredArgsConstructor
@RequestMapping("/base/peopleVehicleHourFlow")
public class PeopleVehicleHourFlowController extends BaseController {
private final PeopleVehicleHourFlowService peopleVehicleHourFlowService;
@GetMapping
@ApiOperation("查询人车记录表")
public TableDataInfo<PeopleVehicleFlow> list(PeopleVehicleFlow peopleVehicleFlow) {
startPage();
//QueryWrapper<PeopleVehicleFlow> queryWrapper = new QueryWrapper<>(peopleVehicleFlow);
List<PeopleVehicleHourFlow> list = peopleVehicleHourFlowService.list();
return getDataTable(list);
}
}

@ -27,9 +27,15 @@ public class PeopleVehicleFlow extends BaseEntity {
@ApiModelProperty("类型") @ApiModelProperty("类型")
private Integer statistic_type; private Integer statistic_type;
/**
*
*/
@ApiModelProperty("数量") @ApiModelProperty("数量")
private String statistic_count; private String statistic_count;
/**
*
*/
@ApiModelProperty("日期") @ApiModelProperty("日期")
private String statistic_time; private String statistic_time;
} }

@ -0,0 +1,41 @@
package com.ruoyi.database.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "statistics_user_vehicle_hour_info")
@ApiModel(value = "StatisticsUserVehicleHour", description = "人车当日24小时数据量")
public class PeopleVehicleHourFlow {
/**
*
*/
@ApiModelProperty("主键")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* (1:/2:
*/
@ApiModelProperty("类型")
private Integer statistic_type;
/**
*
*/
@ApiModelProperty("数量")
private String statistic_count;
/**
*
*/
@ApiModelProperty("日期")
private String statistic_time;
}

@ -0,0 +1,9 @@
package com.ruoyi.database.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.database.domain.PeopleVehicleHourFlow;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface PeopleVehicleHourFlowMapper extends BaseMapper<PeopleVehicleHourFlow> {
}

@ -0,0 +1,8 @@
package com.ruoyi.database.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.database.domain.PeopleVehicleHourFlow;
public interface PeopleVehicleHourFlowService extends IService<PeopleVehicleHourFlow> {
}

@ -0,0 +1,14 @@
package com.ruoyi.database.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.database.domain.PeopleVehicleHourFlow;
import com.ruoyi.database.mapper.PeopleVehicleHourFlowMapper;
import com.ruoyi.database.service.PeopleVehicleHourFlowService;
import org.springframework.stereotype.Service;
@Service
@DS("mysql")
public class PeopleVehicleHourFlowServiceImpl extends ServiceImpl<PeopleVehicleHourFlowMapper, PeopleVehicleHourFlow> implements PeopleVehicleHourFlowService {
}
Loading…
Cancel
Save