parent
7e31032668
commit
bd159a8056
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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…
Reference in new issue