|
@@ -156,10 +156,15 @@ public class EvaluationNoticeServiceImpl extends ServiceImpl<EvaluationNoticeMap
|
|
|
docFileNames.append(memo4Str[i]).append(",");
|
|
|
}
|
|
|
}
|
|
|
- String docPathStr = docPaths.toString().substring(0, docPaths.toString().length() - 1);
|
|
|
- evaluationNotice.setNoticeAnnex(docPathStr);
|
|
|
- String docFileNameStr = docFileNames.toString().substring(0, docFileNames.toString().length() - 1);
|
|
|
- evaluationNotice.setMemo4(docFileNameStr);
|
|
|
+ if (docPaths.toString().length() > 0 && docFileNames.toString().length() > 0) {
|
|
|
+ String docPathStr = docPaths.toString().substring(0, docPaths.toString().length() - 1);
|
|
|
+ evaluationNotice.setNoticeAnnex(docPathStr);
|
|
|
+ String docFileNameStr = docFileNames.toString().substring(0, docFileNames.toString().length() - 1);
|
|
|
+ evaluationNotice.setMemo4(docFileNameStr);
|
|
|
+ } else {
|
|
|
+ evaluationNotice.setNoticeAnnex("");
|
|
|
+ evaluationNotice.setMemo4("");
|
|
|
+ }
|
|
|
baseMapper.updateById(evaluationNotice);
|
|
|
}
|
|
|
}
|