From f74db84df0e3797e0a2db1faa50adcb778a5150a Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 27 六月 2025 11:33:35 +0800 Subject: [PATCH] 1、完善水肥、墒情、气象相关Mapper代码; 2、解决表阀一体机远程关阀出现的订单号不一致专制不能关阀问题(王江海测试发现)。 --- pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/monitor/p202404V201/cd92/CdSv.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/monitor/p202404V201/cd92/CdSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/monitor/p202404V201/cd92/CdSv.java index afd477b..9328b6b 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/monitor/p202404V201/cd92/CdSv.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/monitor/p202404V201/cd92/CdSv.java @@ -2,15 +2,19 @@ import com.dy.pipIrrGlobal.daoPr.PrIntakeVcMapper; import com.dy.pipIrrGlobal.daoPr.PrWaterPriceMapper; +import com.dy.pipIrrGlobal.daoRm.RmCommandOpenMapper; import com.dy.pipIrrGlobal.daoSe.SeVirtualCardMapper; +import com.dy.pipIrrGlobal.pojoRm.RmCommandOpen; import com.dy.pipIrrGlobal.pojoSe.SeVirtualCard; import com.dy.pipIrrGlobal.voSe.VoVirtualCard; import com.dy.pipIrrRemote.monitor.common.ComSv; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import java.util.Date; +import java.util.List; /** * @Author: liurunyu @@ -26,6 +30,8 @@ protected PrWaterPriceMapper prWaterPriceDao ; @Autowired protected PrIntakeVcMapper prIntakeVcDao ; + @Autowired + protected RmCommandOpenMapper rmCommandOpenDao ; public VoVirtualCard selectClientVtCardById(Long id){ return seVirtualCardDao.getVcById(id) ; @@ -44,6 +50,7 @@ /** * 璁剧疆铏氭嫙鍗¤鍗犵敤 */ + @Transactional(rollbackFor = Exception.class) public void setVcUsed(Long id, Long intakeId){ SeVirtualCard po = new SeVirtualCard() ; po.setId(id); @@ -52,4 +59,22 @@ po.setOpenTime(new Date()); seVirtualCardDao.updateByPrimaryKeySelective(po); } + + public RmCommandOpen getCommandOpen(Long intakeId){ + List<RmCommandOpen> list = rmCommandOpenDao.selectByIntakeId(intakeId) ; + if(list != null && list.size() > 0){ + return list.get(0) ; + } + return null ; + } + + @Transactional(rollbackFor = Exception.class) + public void saveCommandOpen(RmCommandOpen po){ + rmCommandOpenDao.insert(po) ; + } + + @Transactional(rollbackFor = Exception.class) + public void updateCommandOpen(RmCommandOpen po){ + rmCommandOpenDao.updateByPrimaryKeySelective(po) ; + } } \ No newline at end of file -- Gitblit v1.8.0