fix(asms): 定时拆分条文详情丢失问题
This commit is contained in:
-2
@@ -440,8 +440,6 @@ public class SynchronizationAsmsService {
|
||||
lawsDocumentSplit.setApplications((String) objectMap2.get("modelsType"));
|
||||
lawsDocumentSplit.setDynamicType((String) objectMap2.get("powerType"));
|
||||
|
||||
lawsDocumentSplit.setId(UUIDUtils.randomUUID20());
|
||||
|
||||
if (StringUtils.isNotBlank(lawsDocumentSplit.getLawsRequireType())){
|
||||
lawsDocumentSplit.setLawsRequireType(getItemValues(lawsDocumentSplit.getLawsRequireType().replace(",", ";"),
|
||||
"1702212236079886338", sysDictItemList)); // 法规要求类型
|
||||
|
||||
+2
-4
@@ -1407,9 +1407,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
.in(LawsDocumentSplit::getInfoId, sarFileSplitInfoEO.getId()));
|
||||
for (LawsDocumentSplit lawsDocumentSplit : lawsDocumentSplits) {
|
||||
// 先删除旧条文详情
|
||||
sarFileSplitItemsValEOMapper.delete(
|
||||
new LambdaQueryWrapper<SarFileSplitItemsValEO>()
|
||||
.eq(SarFileSplitItemsValEO::getItemId, lawsDocumentSplit.getId()));
|
||||
sarFileSplitItemsValEOMapper.deleteByitemId(lawsDocumentSplit.getId());
|
||||
|
||||
// 构建新条文详情
|
||||
if (StringUtils.isNotBlank(lawsDocumentSplit.getItemContent())){
|
||||
@@ -1424,7 +1422,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
sarFileSplitItemsValEO.setType("TEXT");
|
||||
sarFileSplitItemsValEO.setItemContent(lawsDocumentSplit.getItemContent());
|
||||
sarFileSplitItemsValEOService.insertSelective(sarFileSplitItemsValEO);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
for (int i = 0; i < elements.size(); i++) {
|
||||
Element element = elements.get(i);
|
||||
|
||||
Reference in New Issue
Block a user