| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.data.mongodb.core.MongoTemplate; |
| | | import org.springframework.data.mongodb.core.query.Criteria; |
| | | import org.springframework.data.mongodb.core.query.Query; |
| | |
| | | private YwPointMapper ywPointMapper; |
| | | @Autowired |
| | | private RedisTemplate redisTemplate; |
| | | |
| | | @Value("${DH.userName}") |
| | | public String userName; |
| | | @Value("${DH.password}") |
| | | public String password; |
| | | //同步点位在线率到mongo(弃用) |
| | | // public void siteOnline() { |
| | | // log.info("开始同步点位在线率到mongo"); |
| | |
| | | ywPoint.setCreateTime(new Date()); |
| | | ywPoint.setUpdateTime(new Date()); |
| | | ywPoint.setOnline(ApiConstants.UY_OnlineSite_Unknown); |
| | | ywPoint.setUsername(userName); |
| | | ywPoint.setPassword(password); |
| | | } |
| | | //状态设置为考核设备 |
| | | ywPoint.setExamineStatus(Boolean.TRUE); |