文档库导入-判断分阶段实施详情字段非空。

This commit is contained in:
wangzhijiang
2023-04-03 19:18:30 +08:00
parent 8b3728e4d3
commit c7a545d9cc
@@ -5993,6 +5993,16 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
for (String phasedImplDetails : phasedImplDetailsList) {
PhasedImplementationDetailsEO phasedImplementationDetailsEO = new PhasedImplementationDetailsEO();
String[] phasedImplDetailsArr = phasedImplDetails.split("<n>");
if(phasedImplDetailsArr.length < 3){
if(CutEnum.CN.getValue().equals(cut)){
errorMsg += "分阶段实施详情-必填项不能为空, ";
}else{
errorMsg += "Phased Implementation Details - Required items cannot be empty,";
}
countError++;
break;
}
if(phasedImplDetailsArr.length >= 1){
String standNumberOrClause = phasedImplDetailsArr[0];
if(StringUtils.isEmpty(standNumberOrClause)){