fix(88310): 标准解读流程导入校验

This commit is contained in:
yjz
2024-08-21 12:15:21 +08:00
parent 6ecc766d42
commit 7da59c3814
@@ -1346,24 +1346,15 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
if (i > 0 && exist){
// 条款校验
long count = clauseSublistList.stream().filter(o ->
o.getItemNum().equals(itemNum)
&& o.getItemTitle().equals(itemTitle)).count();
if (count < 1){
errorList.add("该数据在业务分派信息中不存在!");
}
LawsDocumentSplit lawsDocumentSplits = documentSplitMapper.selectOne(
new LambdaQueryWrapper<LawsDocumentSplit>()
.eq(LawsDocumentSplit::getInfoId, splitInfoId)
.eq(LawsDocumentSplit::getItemNum, itemNum));
if (Objects.isNull(lawsDocumentSplits)){
errorList.add("不存在条号为:" + itemNum + "的条款!");
ProcessStandardInterpretClauseSublist processStandardInterpretClauseSublist = clauseSublistList.get(i);
if(processStandardInterpretClauseSublist.getItemNum().equals(itemNum)
&& processStandardInterpretClauseSublist.getItemTitle().equals(itemTitle)){
data.setClauseId(processStandardInterpretClauseSublist.getClauseId());
data.setItemTitle(processStandardInterpretClauseSublist.getItemTitle());
data.setItemContent(processStandardInterpretClauseSublist.getItemContent());
data.setTranslation(processStandardInterpretClauseSublist.getTranslation());
}else {
data.setClauseId(lawsDocumentSplits.getId());
data.setItemTitle(lawsDocumentSplits.getItemTitle());
data.setItemContent(lawsDocumentSplits.getItemContent());
data.setTranslation(lawsDocumentSplits.getTranslation());
errorList.add("该数据在业务分派信息中不存在!");
}
}