From eb5a6e5a54efa997971beffc909bcadc06dc8886 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期一, 21 四月 2025 10:45:16 +0800 Subject: [PATCH] 1、江海测试系统设备类型默认为阀; 2、完善通信中间件测试消息推送代码; 3、增加队列数据结构注释; 4、121服务器相关的初始化配置文件bug修改; 5、其他注释完善。 --- pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigation/IrrigationSv.java | 61 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigation/IrrigationSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigation/IrrigationSv.java new file mode 100644 index 0000000..53d5b19 --- /dev/null +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/irrigation/IrrigationSv.java @@ -0,0 +1,61 @@ +package com.dy.pipIrrWechat.irrigation; + +import com.dy.common.webUtil.QueryResultVo; +import com.dy.pipIrrGlobal.daoIr.IrIrrigateGroupMapper; +import com.dy.pipIrrGlobal.daoIr.IrProjectMapper; +import com.dy.pipIrrGlobal.voIr.VoGroupSimple; +import com.dy.pipIrrGlobal.voIr.VoProjectSimple; +import com.dy.pipIrrWechat.irrigation.qo.QoGroup; +import com.dy.pipIrrWechat.irrigation.qo.QoProject; +import lombok.extern.slf4j.Slf4j; +import org.apache.dubbo.common.utils.PojoUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; + +/** + * @author ZhuBaoMin + * @date 2025-02-20 8:59 + * @LastEditTime 2025-02-20 8:59 + * @Description + */ + +@Slf4j +@Service +public class IrrigationSv { + @Autowired + private IrProjectMapper irProjectMapper; + + @Autowired + private IrIrrigateGroupMapper irIrrigateGroupMapper; + + /** + * 鏍规嵁鎸囧畾鏉′欢鑾峰彇椤圭洰璁板綍(绮剧畝) + * @param queryVo + * @return + */ + public List<VoProjectSimple> getSimpleProjects(QoProject queryVo) { + Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(queryVo); + return irProjectMapper.getSimpleProjects(params); + } + + /** + * 鏍规嵁鎸囧畾鏉′欢鑾峰彇杞亴缁勫垪琛� + * @param queryVo + * @return + */ + public List<VoGroupSimple> getSimpleGroups(QoGroup queryVo) { + Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(queryVo); + //Long itemTotal = irIrrigateGroupMapper.getSimpleGroupCount(params); + + //QueryResultVo<List<VoGroupSimple>> rsVo = new QueryResultVo<>(); + + //rsVo.calculateAndSet(itemTotal, params); + //rsVo.obj = irIrrigateGroupMapper.getSimpleGroups(params); + //return rsVo; + return irIrrigateGroupMapper.getSimpleGroups(params); + } + +} -- Gitblit v1.8.0