From 5715d16c6fc4842191c802adb2e3b94d19f44f17 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 21 八月 2025 16:02:38 +0800 Subject: [PATCH] 完善代码 --- pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/common/Com4MqttSv.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/common/Com4MqttSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/common/Com4MqttSv.java new file mode 100644 index 0000000..c867625 --- /dev/null +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/common/Com4MqttSv.java @@ -0,0 +1,50 @@ +package com.dy.pipIrrWechat.common; + +import com.dy.pipIrrGlobal.command.Command4MqttSv; +import com.dy.pipIrrGlobal.daoPr.PrStManureMapper; +import com.dy.pipIrrGlobal.daoRm.RmCommandHistoryMapper; +import com.dy.pipIrrGlobal.pojoPr.PrStManure; +import com.dy.pipIrrGlobal.pojoRm.RmCommandHistory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; + +/** + * @Author: liurunyu + * @Date: 2025/8/21 14:46 + * @Description + */ +public class Com4MqttSv extends Command4MqttSv { + + @Autowired + protected PrStManureMapper prStManureDao ; + @Autowired + protected RmCommandHistoryMapper rmCommandHistoryDao ; + + public PrStManure getManure(Long manureId){ + return this.getManure(prStManureDao, manureId); + } + /** + * 鍒涘缓鍛戒护鏃ュ織瀵硅薄 + * + * @param comId 涓婚敭 + * @param commandCode 鍔熻兘鐮� + * @param rtuAddr 闃�鎺у櫒鍦板潃 + * @param protocol 閫氳鍗忚鍚嶇О + * @param param 鍙傛暟鏁版嵁 + * @param operator 鎿嶄綔鍛� + * @return + */ + @Transactional(rollbackFor = Exception.class) + public RmCommandHistory saveComHistoryPo(Long comId, + String protocol, + String commandCode, + String commandName, + Long manureId, + String rtuAddr, + Object param, + Long operator) { + return this.saveComHistoryPo(rmCommandHistoryDao, comId, protocol, commandCode, commandName, manureId, rtuAddr, param, operator) ; + } + + +} -- Gitblit v1.8.0