From 7881937faad8684d416b80ffff091a46ef604f77 Mon Sep 17 00:00:00 2001 From: likehai Date: Tue, 3 Sep 2024 16:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E8=AE=BE=E5=A4=87-3-?= =?UTF-8?q?=E6=95=85=E9=9A=9C=E6=95=B0=E9=87=8F=E6=8E=A5=E5=8F=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GodUniversalElectricMeterController.java | 8 +++ .../GodUniversalElectricMeterMapper.java | 12 ++++ .../IGodUniversalElectricMeterService.java | 7 +++ .../GodUniversalElectricMeterServiceImpl.java | 6 ++ .../GodUniversalElectricMeterMapper.xml | 55 +++++++++++++++++++ 5 files changed, 88 insertions(+) diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/aiRecognition/GodUniversalElectricMeterController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/aiRecognition/GodUniversalElectricMeterController.java index ff769bc7..11f24ce2 100644 --- a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/aiRecognition/GodUniversalElectricMeterController.java +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/aiRecognition/GodUniversalElectricMeterController.java @@ -95,4 +95,12 @@ public class GodUniversalElectricMeterController extends BaseController { public AjaxResult getCountBySome(GodUniversalElectricMeter godUniversalElectricMeter) { return success(godUniversalElectricMeterService.getCountBySome(godUniversalElectricMeter)); } + + /** + * 根据条件查询折线图横纵坐标 + */ + @GetMapping("/getCountEChartBySome") + public AjaxResult getCountEChartBySome(GodUniversalElectricMeter godUniversalElectricMeter) { + return success(godUniversalElectricMeterService.getCountEChartBySome(godUniversalElectricMeter)); + } } diff --git a/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/mapper/GodUniversalElectricMeterMapper.java b/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/mapper/GodUniversalElectricMeterMapper.java index 29a86189..c1678c5a 100644 --- a/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/mapper/GodUniversalElectricMeterMapper.java +++ b/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/mapper/GodUniversalElectricMeterMapper.java @@ -3,6 +3,7 @@ package com.god.aiRecognition.mapper; import com.god.aiRecognition.domain.GodUniversalElectricMeter; import java.util.List; +import java.util.Map; /** * AI识别算法开发Mapper接口 @@ -62,5 +63,16 @@ public interface GodUniversalElectricMeterMapper String getMaxSnByPrefix(String yyyyMM); + /** + * 根据条件查询对应数量 + * @param godUniversalElectricMeter 查询条件实体 + * @return 统计结果 + */ Long getCountBySome(GodUniversalElectricMeter godUniversalElectricMeter); + + + /** + *根据条件查询折线图横纵坐标 + */ + List> getCountEChartBySome(GodUniversalElectricMeter godUniversalElectricMeter); } diff --git a/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/IGodUniversalElectricMeterService.java b/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/IGodUniversalElectricMeterService.java index 0507d9d4..599435cd 100644 --- a/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/IGodUniversalElectricMeterService.java +++ b/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/IGodUniversalElectricMeterService.java @@ -1,6 +1,8 @@ package com.god.aiRecognition.service; import java.util.List; +import java.util.Map; + import com.god.aiRecognition.domain.GodUniversalElectricMeter; /** @@ -62,4 +64,9 @@ public interface IGodUniversalElectricMeterService *根据条件查询对应数量 */ Long getCountBySome(GodUniversalElectricMeter godUniversalElectricMeter); + + /** + *根据条件查询折线图横纵坐标 + */ + List> getCountEChartBySome(GodUniversalElectricMeter godUniversalElectricMeter); } diff --git a/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/impl/GodUniversalElectricMeterServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/impl/GodUniversalElectricMeterServiceImpl.java index 26df5721..20f6bbe6 100644 --- a/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/impl/GodUniversalElectricMeterServiceImpl.java +++ b/God-Vue-master/god-system/src/main/java/com/god/aiRecognition/service/impl/GodUniversalElectricMeterServiceImpl.java @@ -11,6 +11,7 @@ import javax.annotation.Resource; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; +import java.util.Map; /** * AI识别算法开发Service业务层处理 @@ -110,4 +111,9 @@ public class GodUniversalElectricMeterServiceImpl implements IGodUniversalElectr return godUniversalElectricMeterMapper.getCountBySome(godUniversalElectricMeter); } + @Override + public List> getCountEChartBySome(GodUniversalElectricMeter godUniversalElectricMeter) { + return godUniversalElectricMeterMapper.getCountEChartBySome(godUniversalElectricMeter); + } + } diff --git a/God-Vue-master/god-system/src/main/resources/mapper/aiRecognition/GodUniversalElectricMeterMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/aiRecognition/GodUniversalElectricMeterMapper.xml index 5672c786..b941551f 100644 --- a/God-Vue-master/god-system/src/main/resources/mapper/aiRecognition/GodUniversalElectricMeterMapper.xml +++ b/God-Vue-master/god-system/src/main/resources/mapper/aiRecognition/GodUniversalElectricMeterMapper.xml @@ -151,6 +151,61 @@ + insert into god_universal_electric_meter