|
|
@@ -177,7 +177,7 @@ public class MesGp12RecordService extends CrudService<MesGp12RecordDao, MesGp12R
|
|
|
//获取当前日
|
|
|
int currentDay = LocalDate.now().getDayOfMonth();
|
|
|
|
|
|
- String uploadDir = "E:/mescloud/userfiles/gp12" + "/" + currentYear + "-" + currentMonth + "-" + currentDay
|
|
|
+ String uploadDir = "D:/mescloud/userfiles/gp12" + "/" + currentYear + "-" + currentMonth + "-" + currentDay
|
|
|
+ "/" + mesGp12Record.getRemark();//remark为客户端保存子目录名称
|
|
|
File directory = new File(uploadDir);
|
|
|
if (!directory.exists()) {
|
|
|
@@ -196,7 +196,7 @@ public class MesGp12RecordService extends CrudService<MesGp12RecordDao, MesGp12R
|
|
|
resp.setMessage("保存图片失败,请联系管理员!");
|
|
|
}
|
|
|
|
|
|
- filePath = filePath.replace("E:/mescloud/", "");
|
|
|
+ filePath = filePath.replace("D:/mescloud/", "");
|
|
|
if (file.getOriginalFilename().contains("shang")) {
|
|
|
mesGp12Record.setFileUp(filePath);
|
|
|
} else if (file.getOriginalFilename().contains("xia")) {
|