123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package com.jiayue.ipfcst.aop;
- import com.jiayue.ipfcst.fileupload.util.FileUtil;
- import java.io.File;
- import java.io.Serializable;
- public abstract class Spare2Info implements Serializable {
- static String getUploadFilePath() {
- return FileUtil.getFileUploadPath();
- }
- static File getUploadFile() {
- return new File(getUploadFilePath());
- }
- static String getResultPath() {
- return FileUtil.getPathByName(getUploadFile().getName() + File.separator + "result");
- }
- protected static File getResultFile() {
- return new File(getResultPath());
- }
- static String getResultErrPath() {
- return FileUtil.getPathByName(getUploadFile().getName() + File.separator + "result_err");
- }
- protected static File getResultErrFile() {
- return new File(getResultErrPath());
- }
- static String getResultBakPath() {
- return FileUtil.getPathByName(getUploadFile().getName() + File.separator + "result_bak");
- }
- protected static File getResultBakFile() {
- return new File(getResultBakPath());
- }
- }
|