fix(标准解读): 完善
This commit is contained in:
+9
-5
@@ -253,11 +253,14 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
|
||||
LawsDocumentSplit lawsDocumentSplit = new LawsDocumentSplit();
|
||||
// 属性拷贝
|
||||
BeanUtils.copyProperties(standardInterpretClauseSublist, lawsDocumentSplit);
|
||||
lawsDocumentSplit.setItemNum(null);
|
||||
lawsDocumentSplit.setItemTitle(null);
|
||||
lawsDocumentSplit.setItemContent(null);
|
||||
LawsDomesticStandard lawsDomesticStandard =
|
||||
lawsDomesticStandardService.getById(standardInterpretClauseSublist.getClauseId());
|
||||
if (!Objects.isNull(lawsDomesticStandard)){
|
||||
// 标准
|
||||
lawsDocumentSplit.setStandardId(standardInterpretDTO.getProcessStandardInterpret().getStandardId());
|
||||
lawsDocumentSplit.setStandardId(lawsDomesticStandard.getId());
|
||||
lawsDocumentSplit.setFileType(
|
||||
standardInterpretDTO.getProcessStandardInterpret().getDecompositionSource());
|
||||
HashMap<String, Object> parameter = new HashMap<>();
|
||||
@@ -267,14 +270,15 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
|
||||
List<Map<String, Object>> maps = documentSplitService.queryDocumentSplitDetailByList(parameter);
|
||||
if (CollectionUtils.isNotEmpty(maps)){
|
||||
lawsDocumentSplit.setId(String.valueOf(maps.get(0).get("id")));
|
||||
lawsDocumentSplitMapper.updateById(lawsDocumentSplit);
|
||||
}else {
|
||||
lawsDocumentSplitMapper.insert(lawsDocumentSplit);
|
||||
}
|
||||
}else {
|
||||
// 条款
|
||||
lawsDocumentSplit.setId(standardInterpretClauseSublist.getClauseId());
|
||||
lawsDocumentSplitMapper.updateById(lawsDocumentSplit);
|
||||
}
|
||||
lawsDocumentSplit.setItemNum(null);
|
||||
lawsDocumentSplit.setItemTitle(null);
|
||||
lawsDocumentSplit.setItemContent(null);
|
||||
lawsDocumentSplitMapper.updateById(lawsDocumentSplit);
|
||||
}
|
||||
// 同步标准主计划
|
||||
lawsStandardMasterPlanService.syncInterpretationOfRegulations(processStandardInterpret.getId(),
|
||||
|
||||
Reference in New Issue
Block a user