parent
ca7acf1191
commit
ee28123536
@ -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<PeopleVehicleFlow> list(PeopleVehicleFlow peopleVehicleFlow) {
|
||||
startPage();
|
||||
//QueryWrapper<PeopleVehicleFlow> queryWrapper = new QueryWrapper<>(peopleVehicleFlow);
|
||||
List<PeopleVehicleFlow> list = peopleVehicleFlowService.list();
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
@ -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<PeopleVehicleFlow> {
|
||||
}
|
@ -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<PeopleVehicleFlow> {
|
||||
}
|
@ -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<PeopleVehicleFlowMapper, PeopleVehicleFlow> implements PeopleVehicleFlowService {
|
||||
}
|
Loading…
Reference in new issue