From a5e68895029a10d6134df9d13c6925c752bf1f7b Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期一, 08 一月 2024 13:10:44 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/flowMonitoring/FlowMonitoringSv.java | 64 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/flowMonitoring/FlowMonitoringSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/flowMonitoring/FlowMonitoringSv.java new file mode 100644 index 0000000..08ff400 --- /dev/null +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/flowMonitoring/FlowMonitoringSv.java @@ -0,0 +1,64 @@ +package com.dy.pipIrrProject.flowMonitoring; + +import com.dy.pipIrrGlobal.daoBa.BaDistrictMapper; +import com.dy.pipIrrGlobal.daoPr.PrFlowMonitoringMapper; +import com.dy.pipIrrGlobal.pojoPr.PrFlowMonitoring; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Map; + +/** + * @author ZhuBaoMin + * @date 2024-01-04 16:11 + * @LastEditTime 2024-01-04 16:11 + * @Description + */ + +@Slf4j +@Service +public class FlowMonitoringSv { + @Autowired + private PrFlowMonitoringMapper prFlowMonitoringMapper; + + @Autowired + private BaDistrictMapper baDistrictMapper; + + /** + * 鏍规嵁鏉戠紪鍙疯幏鍙�5绾у尯鍒掍俊鎭� + * @param villageId 鏉戠紪鍙凤紙涓婚敭锛� + * @return 5绾ц鏀垮尯鍒掍俊鎭� + */ + public Map getDistrictsByVillageId(Long villageId) { + return baDistrictMapper.getDistrictsByVillageId(villageId); + } + + /** + * 娣诲姞绠$綉娴侀噺鐩戞祴绔� + * @param prFlowMonitoring 娴侀噺鐩戞祴绔欏疄浣� + * @return + */ + public Integer addFlowMonitoring(PrFlowMonitoring prFlowMonitoring) { + return prFlowMonitoringMapper.insert(prFlowMonitoring); + } + + /** + * 鏍规嵁鐩戞祴绔欑紪鍙峰垹闄ょ洃娴嬬珯 + * @param flowMonitoringId + * @return + */ + public Integer deleteFlowMonitoring(Long flowMonitoringId) { + return prFlowMonitoringMapper.deleteFlowMonitoringById(flowMonitoringId); + } + + /** + * 鏍规嵁鐩戞祴绔欑紪鍙疯幏鍙栨湭鍒犻櫎鐨勭洃娴嬬珯鏁伴噺 + * @param flowMonitoringId 娴侀噺鐩戞祴绔欑紪鍙� + * @return + */ + public Integer getRecordCountOfFlowMonitoring(Long flowMonitoringId) { + return prFlowMonitoringMapper.getRecordCountOfFlowMonitoring(flowMonitoringId); + } + +} -- Gitblit v1.8.0