|
@@ -29,6 +29,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.File;
|
|
|
+import java.io.IOException;
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.SimpleDateFormat;
|
|
@@ -796,8 +797,7 @@ public class OrderBaseInstallCjOrWgServiceImpl implements orderBaseInstallCjOrWg
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void uploadOrderDetailFilePiture(@NotNull OutJiasmToGreeUploadTaskList ojtutl, Map<String, List<SysDictRef>> CategoryRefmap, OrderBase orderBase) {
|
|
|
- SimpleDateFormat sdfs = new SimpleDateFormat("yyyyMM/");
|
|
|
+ public void uploadOrderDetailFilePiture(@NotNull OutJiasmToGreeUploadTaskList ojtutl, Map<String, List<SysDictRef>> CategoryRefmap, OrderBase orderBase) throws IOException {
|
|
|
String oldFile ="";
|
|
|
String newFile ="";
|
|
|
// 根据产品类别名称 生成不同的完工明细数据
|
|
@@ -821,7 +821,7 @@ public class OrderBaseInstallCjOrWgServiceImpl implements orderBaseInstallCjOrWg
|
|
|
if (StringUtils.isEmpty(file.getBrandFilePath())){
|
|
|
// 上传图片
|
|
|
oldFile = publicService.path(file.getFilePath());
|
|
|
- File nFile = new File(oldFile);
|
|
|
+ File nFile = publicService.createf(oldFile);
|
|
|
|
|
|
baseService.saveToFile(ossUtil.getUrlWw(file.getFilePath()),nFile);
|
|
|
// 获取文件
|
|
@@ -1470,12 +1470,11 @@ public class OrderBaseInstallCjOrWgServiceImpl implements orderBaseInstallCjOrWg
|
|
|
return Boolean.TRUE;
|
|
|
}
|
|
|
|
|
|
- public boolean uploadImage(OrderBase orderBase, OrderInstallDetailCode code, Long synReqId) {
|
|
|
- SimpleDateFormat sdfs = new SimpleDateFormat("yyyyMM/");
|
|
|
+ public boolean uploadImage(OrderBase orderBase, OrderInstallDetailCode code, Long synReqId) throws IOException {
|
|
|
String oldFile;
|
|
|
String newFile;
|
|
|
oldFile = publicService.path(code.getPath());
|
|
|
- File nFile = new File(oldFile);
|
|
|
+ File nFile = publicService.createf(oldFile);
|
|
|
|
|
|
baseService.saveToFile(ossUtil.getUrlWw(code.getPath()),nFile);
|
|
|
// 获取文件
|