Parcourir la source

问题修改;代码优化;

wangcahngsheng il y a 1 an
Parent
commit
471b8b73e0

+ 1 - 1
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/EvaluationNoticeServiceImpl.java

@@ -243,7 +243,7 @@ public class EvaluationNoticeServiceImpl extends ServiceImpl<EvaluationNoticeMap
 		for (String id : ids) {
 			EvaluationNotice evaluationNotice = baseMapper.selectById(id);
 			if (null != evaluationNotice) {
-				if (evaluationNotice.getNoticeAnnex().length() > 0) {
+				if (StringUtils.isNotEmpty(evaluationNotice.getNoticeAnnex())) {
 					String[] docPaths = evaluationNotice.getNoticeAnnex().split(",");
 					for (String docPath : docPaths) {
 						HttpHeaders headers = new HttpHeaders();