| | |
| | | |
| | | //返回省厅国标码集合 |
| | | public List<String> getProvince() { |
| | | List<YwPoint> province = pointMapper.selectByTag(null, "province"); |
| | | List<YwPoint> province = pointMapper.selectByTag(null, Boolean.TRUE); |
| | | return province.stream().map(YwPoint::getSerialNumber).collect(Collectors.toList()); |
| | | } |
| | | |
| | | //返回重点点位集合 |
| | | public List<String> getImportant() { |
| | | List<YwPoint> important = pointMapper.selectByTag("important", null); |
| | | List<YwPoint> important = pointMapper.selectByTag(Boolean.TRUE, null); |
| | | return important.stream().map(YwPoint::getSerialNumber).collect(Collectors.toList()); |
| | | } |
| | | |
| | |
| | | // 检查是否已存在今日数据 |
| | | Optional<T> existingIndex = checkIndexList.stream() |
| | | .filter(index -> key.equals(index.getDeptId().toString()) && |
| | | (key.startsWith("Province_") ? CheckConstants.Examine_Tag_City.equals(index.getExamineTag()) |
| | | (key.startsWith("Province_") ? CheckConstants.Examine_Tag_Province.equals(index.getExamineTag()) |
| | | : CheckConstants.Examine_Tag_County.equals(index.getExamineTag()))) |
| | | .findFirst(); |
| | | |
| | |
| | | try { |
| | | checkIndex = clazz.getDeclaredConstructor().newInstance(); |
| | | checkIndex.setDeptId(key.startsWith("Province_") ? Long.parseLong(key.split("_")[1]) : Long.parseLong(key)); |
| | | checkIndex.setExamineTag(key.startsWith("Province_") ? CheckConstants.Examine_Tag_City : CheckConstants.Examine_Tag_County); |
| | | checkIndex.setExamineTag(key.startsWith("Province_") ? CheckConstants.Examine_Tag_Province : CheckConstants.Examine_Tag_County); |
| | | checkIndex.setCreateTime(new Date()); |
| | | } catch (Exception e) { |
| | | checkIndex = null; |