|
@@ -36,6 +36,7 @@ import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
|
+import java.io.IOException;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
@@ -1015,7 +1016,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
generateRepairDetailOrReason(brand, orderBase);
|
|
generateRepairDetailOrReason(brand, orderBase);
|
|
}
|
|
}
|
|
|
|
|
|
- public Boolean dataInit(OutJiasmToGreeUploadTaskList sourceData, String newDykh, OrderBase orderBase) {
|
|
|
|
|
|
+ public Boolean dataInit(OutJiasmToGreeUploadTaskList sourceData, String newDykh, OrderBase orderBase) throws IOException {
|
|
// 同步工单的pgid,pguuid
|
|
// 同步工单的pgid,pguuid
|
|
upOrderBasePgid(orderBase, newDykh);
|
|
upOrderBasePgid(orderBase, newDykh);
|
|
// 同步维修工单产品信息 pgid
|
|
// 同步维修工单产品信息 pgid
|
|
@@ -1293,7 +1294,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public void generateFileInit(OrderBase orderBase) {
|
|
|
|
|
|
+ public void generateFileInit(OrderBase orderBase) throws IOException {
|
|
// 提取采集的数据
|
|
// 提取采集的数据
|
|
List<OrderRepairDetail> orderRepairDetails = orderRepairDetailService.lambdaQuery()
|
|
List<OrderRepairDetail> orderRepairDetails = orderRepairDetailService.lambdaQuery()
|
|
.eq(OrderRepairDetail::getOrderBaseId, orderBase.getId())
|
|
.eq(OrderRepairDetail::getOrderBaseId, orderBase.getId())
|
|
@@ -1344,8 +1345,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
odfs.clear();
|
|
odfs.clear();
|
|
}
|
|
}
|
|
|
|
|
|
- public void OrderDetailFileUpload(OrderBase orderBase, OrderRepairDetail detail){
|
|
|
|
- SimpleDateFormat sdfs = new SimpleDateFormat("yyyyMM/");
|
|
|
|
|
|
+ public void OrderDetailFileUpload(OrderBase orderBase, OrderRepairDetail detail) throws IOException {
|
|
String oldFile ="";
|
|
String oldFile ="";
|
|
String newFile ="";
|
|
String newFile ="";
|
|
// 提取数据采集附件数据
|
|
// 提取数据采集附件数据
|
|
@@ -1360,7 +1360,7 @@ public class RepairProduceDataUploadServiceImpl implements RepairProduceDataUplo
|
|
if (StringUtils.isEmpty(file.getBrandFilePath())){
|
|
if (StringUtils.isEmpty(file.getBrandFilePath())){
|
|
// 上传图片
|
|
// 上传图片
|
|
oldFile = publicService.path(file.getFilePath());
|
|
oldFile = publicService.path(file.getFilePath());
|
|
- File nFile = new File(oldFile);
|
|
|
|
|
|
+ File nFile = publicService.createf(oldFile);
|
|
|
|
|
|
baseService.saveToFile(ossUtil.getUrlWw(file.getFilePath()),nFile);
|
|
baseService.saveToFile(ossUtil.getUrlWw(file.getFilePath()),nFile);
|
|
// 获取文件
|
|
// 获取文件
|