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