gaodm 6 vuotta sitten
vanhempi
commit
851812f8de

+ 2 - 1
icssman-service/src/main/java/com/diagbot/facade/RetrievalFacade.java

@@ -8,6 +8,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.stream.Collectors;
 
+import com.diagbot.util.ListUtil;
 import org.apache.commons.lang.time.DateFormatUtils;
 import org.apache.poi.hssf.usermodel.HSSFDateUtil;
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
@@ -66,7 +67,7 @@ public class RetrievalFacade extends RetrievalServiceImpl {
      */
     public List<GetRetrievalsByTagDTO> getRetrievalsByTag(GetRetrievalsByTagVO getRetrievalsByTagVO) {
     	List<GetRetrievalsByTagDTO> retList = baseMapper.getRetrievalsByTag(getRetrievalsByTagVO);
-    	if(retList.size()==0){
+    	if(ListUtil.isEmpty(retList)){
     		throw new CommonException(CommonErrorCode.NOT_EXISTS);
     	}
         return retList;