fix(asms): 同步问题调整
This commit is contained in:
+6
-2
@@ -207,7 +207,7 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
|
||||
|
||||
lawsAsmsOpenApiList.forEach(lawsAsmsOpenApi -> {
|
||||
|
||||
Map<String, String> map = null;
|
||||
Map<String, String> map = new HashMap<>();
|
||||
if (StringUtils.isNotBlank(lawsAsmsOpenApi.getQueryParamJson())) {
|
||||
map = (Map<String, String>) JSON.parse(lawsAsmsOpenApi.getQueryParamJson());
|
||||
}
|
||||
@@ -573,7 +573,9 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
|
||||
queryWrapper1.eq(OSSFile::getStandardFileType, "publish_of_original");
|
||||
queryWrapper1.like(OSSFile::getFileName, ".docx");
|
||||
OSSFile ossFile = ossFileService.getOne(queryWrapper1);
|
||||
|
||||
if (Objects.isNull(ossFile)){
|
||||
return;
|
||||
}
|
||||
SarFileSplitInfoEO sarFileSplitInfoEO = new SarFileSplitInfoEO();
|
||||
sarFileSplitInfoEO.setStandardId(lawsDomesticStandard.getId());
|
||||
sarFileSplitInfoEO.setSerialNumber(lawsDomesticStandard.getStandardNumber());
|
||||
@@ -585,6 +587,8 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
|
||||
sarFileSplitInfoEO.setCreateTime(getSimpleDate2(eMap.get("createTime")));
|
||||
sarFileSplitInfoEO.setUpdateTime(getSimpleDate2(eMap.get("updateTime")));
|
||||
sarFileSplitInfoEO.setIsAsmsImport("1");
|
||||
sarFileSplitInfoEO.setAuthor("云平台");
|
||||
sarFileSplitInfoEO.setSplitResult("成功");
|
||||
|
||||
sarFileSplitInfoService.save(sarFileSplitInfoEO);
|
||||
});
|
||||
|
||||
+1
@@ -341,6 +341,7 @@ public class SynchronizationAsmsService {
|
||||
sarFileSplitInfoEO.setUpdateTime(getSimpleDate2(eMap.get("updateTime")));
|
||||
sarFileSplitInfoEO.setIsAsmsImport("1");
|
||||
sarFileSplitInfoEO.setAuthor("云平台");
|
||||
sarFileSplitInfoEO.setSplitResult("成功");
|
||||
|
||||
sarFileSplitInfoEO.setId(UUIDUtils.randomUUID20());
|
||||
|
||||
|
||||
-3
@@ -16,10 +16,7 @@ import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user