| | |
| | | @Autowired |
| | | private SeVirtualCardMapper seVirtualCardDao ;//虚拟卡相关 |
| | | |
| | | @Autowired |
| | | private RmTimingReportHistoryMapper rmTimingReportHistoryDao; // 定点上报历史数据DAO |
| | | @Autowired |
| | | private RmTimingReportLastMapper rmTimingReportLastDao; // 定点上报最新数据DAO |
| | | |
| | | @Autowired |
| | | private RmOpenCloseHistoryMapper rmOpenCloseHistoryDao; |
| | | @Autowired |
| | | private RmOpenCloseLastMapper rmOpenCloseLastDao; |
| | | |
| | | //@Autowired |
| | | //@Lazy |
| | | //private DbSv sv ; |
| | |
| | | // |
| | | //////////////////////////////////////////////// |
| | | |
| | | /** |
| | | * 保存控制器定点上报历史数据 |
| | | * @param po |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveRmTimingReportHistory(RmTimingReportHistory po){ |
| | | this.rmTimingReportHistoryDao.insert(po); |
| | | } |
| | | |
| | | /** |
| | | * 根据阀控器地址获取定点上报最新数据 |
| | | * @param rtuAddr |
| | | * @return |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public RmTimingReportLast getRmTimingReportLast(String rtuAddr) { |
| | | List<RmTimingReportLast> list = this.rmTimingReportLastDao.getRmTimingReportLast(rtuAddr) ; |
| | | if(list != null && list.size() > 0){ |
| | | return list.get(0) ; |
| | | } |
| | | return null ; |
| | | } |
| | | |
| | | /** |
| | | * 保存控制器定点上报最新数据 |
| | | * @param po |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveRmTimingReportLast(RmTimingReportLast po) { |
| | | this.rmTimingReportLastDao.insert(po); |
| | | } |
| | | |
| | | /** |
| | | * 保存控制器定点上报罪行数据 |
| | | * @param po |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateRmTimingReportLast(RmTimingReportLast po) { |
| | | this.rmTimingReportLastDao.updateByPrimaryKeySelective(po); |
| | | } |
| | | |
| | | |
| | | ///////////////////////////////////////////////// |
| | | // |
| | |
| | | this.rmOpenCloseValveHistoryMapperDao.updateByPrimaryKeySelective(po) ; |
| | | } |
| | | |
| | | /** |
| | | * 保存控制器开关阀上报数据最新记录(202404) |
| | | * @param po |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveRmOpenCloseLast(RmOpenCloseLast po){ |
| | | this.rmOpenCloseLastDao.insert(po) ; |
| | | } |
| | | |
| | | /** |
| | | * 保存控制器开关阀上报数据历史记录(202404) |
| | | * @param po |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveRmOpenCloseHistory(RmOpenCloseHistory po){ |
| | | this.rmOpenCloseHistoryDao.insert(po) ; |
| | | } |
| | | |
| | | /** |
| | | * 得到控制器开关阀上报数据最新记录(202404) |
| | | * @param rtuAddr |
| | | * @return |
| | | */ |
| | | public RmOpenCloseLast getRmOpenCloseLast(String rtuAddr){ |
| | | List<RmOpenCloseLast> list = rmOpenCloseLastDao.getRmOpenCloseReportLast(rtuAddr); |
| | | if(list != null && list.size() > 0){ |
| | | return list.get(0) ; |
| | | } |
| | | return null ; |
| | | } |
| | | |
| | | /** |
| | | * 保存控制器开关阀上报数据最新记录(202404) |
| | | * @param po |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateRmOpenCloseLast(RmOpenCloseLast po){ |
| | | this.rmOpenCloseLastDao.updateByPrimaryKeySelective(po); |
| | | } |
| | | |
| | | ///////////////////////////////////////////////// |
| | | // |