Browse Source

增加收费站入口流水数据接口

增加门架流水数据接口
增加收费站出口流水数据
develop
Mr.Wang 6 months ago
parent
commit
d870a24c5d
  1. 38
      zc-business/src/main/java/com/zc/business/controller/OdsTollEnpassDataController.java
  2. 38
      zc-business/src/main/java/com/zc/business/controller/OdsTollEtctuDataController.java
  3. 38
      zc-business/src/main/java/com/zc/business/controller/OdsTollExpassDataController.java
  4. 5
      zc-business/src/main/java/com/zc/business/service/IOdsTollEnpassDataService.java
  5. 5
      zc-business/src/main/java/com/zc/business/service/IOdsTollEtctuDataService.java
  6. 5
      zc-business/src/main/java/com/zc/business/service/IOdsTollExpassDataService.java
  7. 10
      zc-business/src/main/java/com/zc/business/service/impl/OdsTollEnpassDataServiceImpl.java
  8. 10
      zc-business/src/main/java/com/zc/business/service/impl/OdsTollEtctuDataImpl.java
  9. 10
      zc-business/src/main/java/com/zc/business/service/impl/OdsTollExpassDataServiceImpl.java

38
zc-business/src/main/java/com/zc/business/controller/OdsTollEnpassDataController.java

@ -0,0 +1,38 @@
package com.zc.business.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.zc.business.service.IOdsTollEnpassDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* 收费站入口流水数据接口
*/
@Api(tags = {"收费站入口流水数据接口"})
@RestController
@RequestMapping("/business/odsTollEnpassData")
public class OdsTollEnpassDataController extends BaseController {
@Resource
private IOdsTollEnpassDataService iOdsTollEnpassDataService;
/**
* 收费站入口流水数据统计
*
* @return 查询结果
*/
@ApiOperation("收费站入口流水数据统计")
@GetMapping("/countNumber")
public AjaxResult odsTollEnpassDataCountNumber() {
return AjaxResult.success(iOdsTollEnpassDataService.odsTollEnpassDataCountNumber());
}
}

38
zc-business/src/main/java/com/zc/business/controller/OdsTollEtctuDataController.java

@ -0,0 +1,38 @@
package com.zc.business.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.zc.business.service.IOdsTollEtctuDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* 门架流水数据接口
*/
@Api(tags = {"门架流水数据接口"})
@RestController
@RequestMapping("/business/odsTollEtctuData")
public class OdsTollEtctuDataController extends BaseController {
@Resource
private IOdsTollEtctuDataService iOdsTollEtctuDataService;
/**
* 门架流水数据接口统计
*
* @return 查询结果
*/
@ApiOperation("门架流水数据接口统计")
@GetMapping("/countNumber")
public AjaxResult odsTollEtctuDataCountNumber() {
return AjaxResult.success(iOdsTollEtctuDataService.odsTollEtctuDataCountNumber());
}
}

38
zc-business/src/main/java/com/zc/business/controller/OdsTollExpassDataController.java

@ -0,0 +1,38 @@
package com.zc.business.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.zc.business.service.IOdsTollExpassDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* 收费站出口流水数据
*/
@Api(tags = {"收费站出口流水数据"})
@RestController
@RequestMapping("/business/odsTollExpassData")
public class OdsTollExpassDataController extends BaseController {
@Resource
private IOdsTollExpassDataService iOdsTollExpassDataService;
/**
* 收费站出口流水数据统计
*
* @return 查询结果
*/
@ApiOperation("收费站出口流水数据统计")
@GetMapping("/countNumber")
public AjaxResult odsTollExpassDataCountNumber() {
return AjaxResult.success(iOdsTollExpassDataService.odsTollExpassDataCountNumber());
}
}

5
zc-business/src/main/java/com/zc/business/service/IOdsTollEnpassDataService.java

@ -44,5 +44,10 @@ public interface IOdsTollEnpassDataService extends IService<OdsTollEnpassData> {
*/ */
List<DcTollStationStatisticsData> calculateTollStationStatistics(List<OdsTollEnpassData> list); List<DcTollStationStatisticsData> calculateTollStationStatistics(List<OdsTollEnpassData> list);
/**
* 收费站入口流水数据统计
*/
int odsTollEnpassDataCountNumber();
} }

5
zc-business/src/main/java/com/zc/business/service/IOdsTollEtctuDataService.java

@ -37,4 +37,9 @@ public interface IOdsTollEtctuDataService extends IService<OdsTollEtctuData> {
* @return 返回一个包含各门架统计数据的列表如果输入列表为空则返回空列表 * @return 返回一个包含各门架统计数据的列表如果输入列表为空则返回空列表
*/ */
List<DcGantryStatisticsData> calculateGantryStatistics(List<OdsTollEtctuData> odsTollEtctuDataList); List<DcGantryStatisticsData> calculateGantryStatistics(List<OdsTollEtctuData> odsTollEtctuDataList);
/**
* 门架流水数据接口统计
*/
int odsTollEtctuDataCountNumber();
} }

5
zc-business/src/main/java/com/zc/business/service/IOdsTollExpassDataService.java

@ -41,5 +41,10 @@ public interface IOdsTollExpassDataService extends IService<OdsTollExpassData> {
* @return 返回一个包含各收费站统计数据的列表如果输入列表为空则返回空列表 * @return 返回一个包含各收费站统计数据的列表如果输入列表为空则返回空列表
*/ */
List<DcTollStationStatisticsData> calculateTollStationStatistics(List<OdsTollExpassData> list); List<DcTollStationStatisticsData> calculateTollStationStatistics(List<OdsTollExpassData> list);
/**
* 收费站出口流水数据统计
*/
int odsTollExpassDataCountNumber();
} }

10
zc-business/src/main/java/com/zc/business/service/impl/OdsTollEnpassDataServiceImpl.java

@ -95,6 +95,16 @@ public class OdsTollEnpassDataServiceImpl extends ServiceImpl<OdsTollEnpassDataM
return dcTollStationStatisticsDataList; return dcTollStationStatisticsDataList;
} }
/**
* 收费站入口流水数据统计
* @return
*/
@Override
public int odsTollEnpassDataCountNumber() {
LambdaQueryWrapper<OdsTollEnpassData> queryWrapper = new LambdaQueryWrapper<>();
return count(queryWrapper);
}
/** /**
* 计算交通统计数据 * 计算交通统计数据

10
zc-business/src/main/java/com/zc/business/service/impl/OdsTollEtctuDataImpl.java

@ -91,6 +91,16 @@ public class OdsTollEtctuDataImpl extends ServiceImpl<OdsTollEtctuDataMapper, Od
return dcGantryStatisticsDataList; return dcGantryStatisticsDataList;
} }
/**
* 门架流水数据接口统计
* @return
*/
@Override
public int odsTollEtctuDataCountNumber() {
LambdaQueryWrapper<OdsTollEtctuData> queryWrapper = new LambdaQueryWrapper<>();
return count(queryWrapper);
}
/** /**
* 计算交通统计数据 * 计算交通统计数据
* *

10
zc-business/src/main/java/com/zc/business/service/impl/OdsTollExpassDataServiceImpl.java

@ -93,6 +93,16 @@ public class OdsTollExpassDataServiceImpl extends ServiceImpl<OdsTollExpassDataM
return dcTollStationStatisticsDataList; return dcTollStationStatisticsDataList;
} }
/**
* 收费站出口流水数据统计
* @return
*/
@Override
public int odsTollExpassDataCountNumber() {
LambdaQueryWrapper<OdsTollExpassData> queryWrapper = new LambdaQueryWrapper<>();
return count(queryWrapper);
}
/** /**
* 计算交通统计数据 * 计算交通统计数据
* *

Loading…
Cancel
Save