同步文件调整

dev
wj 2 years ago
parent 9019c8b6cc
commit 62367e9acf

@ -1164,7 +1164,7 @@ public class IdcServiceImpl implements IdcService {
@Override @Override
public boolean signleDownloadFile(String syncIp, String fileName) { public boolean signleDownloadFile(String syncIp, String fileName) {
String filePathSlash = fileName.substring(filePath.length() - 1).equals("/") ? "" : "/"; String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/";
if(!FileUtils.makeDirectory(filePath + filePathSlash + imagePath)) if(!FileUtils.makeDirectory(filePath + filePathSlash + imagePath))
IDCUtils.createDirectory(filePath + filePathSlash + imagePath); IDCUtils.createDirectory(filePath + filePathSlash + imagePath);
OkHttpClient client = new OkHttpClient().newBuilder() OkHttpClient client = new OkHttpClient().newBuilder()

@ -1877,6 +1877,7 @@ public class HeartService {
public void updateOrderDb(SpsSyncOrderResponse syncDataResponse, IoOrderEntity orderEntity) { public void updateOrderDb(SpsSyncOrderResponse syncDataResponse, IoOrderEntity orderEntity) {
if (orderEntity.getCheckStatus() != null)
orderDao.updateOrder(orderEntity); orderDao.updateOrder(orderEntity);
//更新业务详情 //更新业务详情
if (CollUtil.isNotEmpty(syncDataResponse.getOrderDetailBizEntities())) { if (CollUtil.isNotEmpty(syncDataResponse.getOrderDetailBizEntities())) {

Loading…
Cancel
Save