Spare2Info.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.jiayue.ipfcst.aop;
  2. import com.jiayue.ipfcst.fileupload.util.FileUtil;
  3. import java.io.File;
  4. import java.io.Serializable;
  5. public abstract class Spare2Info implements Serializable {
  6. static String getUploadFilePath() {
  7. return FileUtil.getFileUploadPath();
  8. }
  9. static File getUploadFile() {
  10. return new File(getUploadFilePath());
  11. }
  12. static String getResultPath() {
  13. return FileUtil.getPathByName(getUploadFile().getName() + File.separator + "result");
  14. }
  15. protected static File getResultFile() {
  16. return new File(getResultPath());
  17. }
  18. static String getResultErrPath() {
  19. return FileUtil.getPathByName(getUploadFile().getName() + File.separator + "result_err");
  20. }
  21. protected static File getResultErrFile() {
  22. return new File(getResultErrPath());
  23. }
  24. static String getResultBakPath() {
  25. return FileUtil.getPathByName(getUploadFile().getName() + File.separator + "result_bak");
  26. }
  27. protected static File getResultBakFile() {
  28. return new File(getResultBakPath());
  29. }
  30. }