| | |
| | | import com.ycl.utils.DateUtils; |
| | | import constant.RedisConstant; |
| | | import enumeration.general.AreaDeptEnum; |
| | | import enumeration.general.ImportantTagEnum; |
| | | import enumeration.general.PointStatus; |
| | | import enumeration.general.ProvinceTagEnum; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.mongodb.core.MongoTemplate; |
| | |
| | | import org.springframework.data.mongodb.core.query.Query; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.*; |
| | |
| | | ywPoint.setPointName(result.getSBMC()); |
| | | ywPoint.setStatus(PointStatus.WAIT.getDesc()); |
| | | ywPoint.setSerialNumber(result.getSBBM()); |
| | | ywPoint.setImportantTag(ImportantTagEnum.Normal); |
| | | ywPoint.setProvinceTag(ProvinceTagEnum.Normal); |
| | | ywPoint.setImportantTag(Boolean.FALSE); |
| | | ywPoint.setProvinceTag(Boolean.FALSE); |
| | | ywPoint.setCreateTime(new Date()); |
| | | ywPoint.setUpdateTime(new Date()); |
| | | } |
| | | //比对是否是重点点位 |
| | | if (importantSite.contains(result.getSBBM())) { |
| | | ywPoint.setImportantTag(ImportantTagEnum.Important); |
| | | ywPoint.setImportantTag(Boolean.TRUE); |
| | | } |
| | | //解析deptId |
| | | //区域行政编码 |