diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java b/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java new file mode 100644 index 0000000..320ed5a --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/controller/PeopleVehicleFlowController.java @@ -0,0 +1,36 @@ +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.page.TableDataInfo; +import com.ruoyi.database.domain.PeopleVehicleFlow; +import com.ruoyi.database.service.PeopleVehicleFlowService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +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.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@Api(tags = "人脸记录表") +@RestController +@RequiredArgsConstructor +@RequestMapping("/base/peopleVehicleFlow") +public class PeopleVehicleFlowController extends BaseController { + + private final PeopleVehicleFlowService peopleVehicleFlowService; + + @GetMapping + @ApiOperation("查询人车记录表") + public TableDataInfo list(PeopleVehicleFlow peopleVehicleFlow) { + startPage(); + //QueryWrapper queryWrapper = new QueryWrapper<>(peopleVehicleFlow); + List list = peopleVehicleFlowService.list(); + return getDataTable(list); + } +} diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/PeopleVehicleFlow.java b/gather-app/src/main/java/com/ruoyi/database/domain/PeopleVehicleFlow.java new file mode 100644 index 0000000..dfbbe83 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/domain/PeopleVehicleFlow.java @@ -0,0 +1,35 @@ +package com.ruoyi.database.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.core.domain.BaseEntity; +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_day_info") +@ApiModel(value = "StatisticsUserVehicleDay", description = "人车分七天数据量") +public class PeopleVehicleFlow extends BaseEntity { + /** + * 主键 + */ + @ApiModelProperty("主键") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 类型 + * */ + @ApiModelProperty("类型") + private Integer statistic_type; + + @ApiModelProperty("数量") + private String statistic_count; + + @ApiModelProperty("日期") + private String statistic_time; +} diff --git a/gather-app/src/main/java/com/ruoyi/database/mapper/PeopleVehicleFlowMapper.java b/gather-app/src/main/java/com/ruoyi/database/mapper/PeopleVehicleFlowMapper.java new file mode 100644 index 0000000..a125fe1 --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/mapper/PeopleVehicleFlowMapper.java @@ -0,0 +1,9 @@ +package com.ruoyi.database.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.database.domain.PeopleVehicleFlow; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface PeopleVehicleFlowMapper extends BaseMapper { +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/PeopleVehicleFlowService.java b/gather-app/src/main/java/com/ruoyi/database/service/PeopleVehicleFlowService.java new file mode 100644 index 0000000..7a4d8ab --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/PeopleVehicleFlowService.java @@ -0,0 +1,7 @@ +package com.ruoyi.database.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.ruoyi.database.domain.PeopleVehicleFlow; + +public interface PeopleVehicleFlowService extends IService { +} diff --git a/gather-app/src/main/java/com/ruoyi/database/service/impl/PeopleVehicleFlowServiceImpl.java b/gather-app/src/main/java/com/ruoyi/database/service/impl/PeopleVehicleFlowServiceImpl.java new file mode 100644 index 0000000..a426eeb --- /dev/null +++ b/gather-app/src/main/java/com/ruoyi/database/service/impl/PeopleVehicleFlowServiceImpl.java @@ -0,0 +1,11 @@ +package com.ruoyi.database.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.database.domain.PeopleVehicleFlow; +import com.ruoyi.database.mapper.PeopleVehicleFlowMapper; +import com.ruoyi.database.service.PeopleVehicleFlowService; +import org.springframework.stereotype.Service; + +@Service +public class PeopleVehicleFlowServiceImpl extends ServiceImpl implements PeopleVehicleFlowService { +}