package com.dy.pipIrrRemote.monitor.p202404V201.cd9D; import com.dy.pipIrrGlobal.daoPr.PrWaterPriceMapper; import com.dy.pipIrrGlobal.daoRm.RmOpenCloseValveLastMapper; import com.dy.pipIrrGlobal.daoSe.SeVirtualCardMapper; import com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveLast; 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 java.util.List; /** * @Author: liurunyu * @Date: 2025/5/28 11:30 * @Description */ @Slf4j @Service("cd9DSv") public class CdSv extends ComSv { @Autowired protected SeVirtualCardMapper seVirtualCardDao ; @Autowired protected PrWaterPriceMapper prWaterPriceDao ; @Autowired protected RmOpenCloseValveLastMapper rmOpenCloseValveLastDao ; public RmOpenCloseValveLast getLastOpenValve(Long intakeId){ List list = rmOpenCloseValveLastDao.selectByIntakeId(intakeId) ; if(list != null && list.size() > 0){ return list.get(0) ; } return null ; } }