@@ -61,4 +61,15 @@ public class StatisticsController {
{
return statisticsService.vehicleControl();
}
+
+ /**
+ * todo PC车辆进出统计
+ */
+ @PreAuthorize("@ss.hasPermi('wuYe:statistics:num:car')")
+ @GetMapping("/num/car")
+ public AjaxResult numCar()
+ {
+ return statisticsService.numCar();
+ }
@@ -17,6 +17,8 @@ public interface IStatisticsService {
*/
AjaxResult numApp();
+ AjaxResult numCar();
/**
* APP首页红点统计
@@ -394,4 +394,19 @@ public class StatisticsServiceImpl implements IStatisticsService {
return String.format("%.2f%%", percentageChange);
+ @Override
+ public AjaxResult numCar() {
+ Map<String,Object> map = new HashMap<>();
+ //总数
+ int zs = 1237;
+ //外来
+ int wl = 396;
+ //内部
+ int nb = 841;
+ map.put("zs",zs);
+ map.put("wl",wl);
+ map.put("nb",nb);
+ return AjaxResult.success(map);