| | |
| | | @Resource |
| | | private ChannelSourceService channelSourceService; |
| | | |
| | | @Resource |
| | | private DaPointCollectStatusService daPointCollectStatusService; |
| | | |
| | | private static Map<String, DaPointDTO> pointIdMap = new ConcurrentHashMap<>(); |
| | | |
| | | private static Map<String, DaPointDTO> pointNoMap = new ConcurrentHashMap<>(); |
| | |
| | | |
| | | @Override |
| | | public DaPointDTO getSimpleInfoByNo(String no) { |
| | | QueryWrapper<DaPointEntity> queryWrapper = new QueryWrapper(); |
| | | QueryWrapper<DaPointEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("point_no", no); |
| | | return ConvertUtils.sourceToTarget(daPointDao.selectOne(queryWrapper), DaPointDTO.class); |
| | | } |
| | |
| | | daPointEntity.setCreateTime(new Date()); |
| | | daPointDao.insert(daPointEntity); |
| | | |
| | | daPointCollectStatusService.add(daPointEntity.getPointNo()); |
| | | // 清空缓存 |
| | | clearCache(); |
| | | } |
| | |
| | | } |
| | | |
| | | daPointDao.insert(daPointEntity); |
| | | daPointCollectStatusService.add(daPointEntity.getPointNo()); |
| | | respVO.getCreatePointnames().add(importPoint.getPointName()); |
| | | return; |
| | | } |