GisSurveySystemCheckResultPath.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.shkpr.service.alambizplugin.constants;
  2. import com.shkpr.service.alambizplugin.dto.GisSurveySystemCheckId;
  3. /**
  4. * 系统检查结果路径
  5. *
  6. * @author 欧阳劲驰
  7. * @since 1.0.0
  8. */
  9. public class GisSurveySystemCheckResultPath {
  10. /**
  11. * 结果
  12. */
  13. public final static String RESULT = "result.json";
  14. /**
  15. * 孤立点
  16. */
  17. public final static String ISOLATED_POINTS = "isolatedPoints.json";
  18. /**
  19. * 孤立线
  20. */
  21. public final static String ISOLATED_LINES = "IsolatedLines.json";
  22. /**
  23. * 重复点
  24. */
  25. public final static String DUPLICATE_POINTS = "duplicatePoints.json";
  26. /**
  27. * 重叠线
  28. */
  29. public final static String OVERLAP_LINES = "overlapLines.json";
  30. /**
  31. * 获取相对路径
  32. *
  33. * @param systemCheckId 系统检查id
  34. * @param fileName 文件名
  35. * @return 相对路径
  36. */
  37. public static String relativePath(GisSurveySystemCheckId systemCheckId, String fileName) {
  38. return systemCheckId.getCheckType().getFlag() + "-" + systemCheckId.getCode() + "/" + fileName;
  39. }
  40. }