diff --git a/src/main/java/cn/com/tenlion/service/columnmng/impl/ColumnMngServiceImpl.java b/src/main/java/cn/com/tenlion/service/columnmng/impl/ColumnMngServiceImpl.java index d4c64c5..b0411c1 100644 --- a/src/main/java/cn/com/tenlion/service/columnmng/impl/ColumnMngServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/columnmng/impl/ColumnMngServiceImpl.java @@ -123,7 +123,7 @@ public class ColumnMngServiceImpl extends DefaultBaseService implements IColumnM List list = columnMngDao.list(params); for (ColumnMngDTO item : list){ String[] resourceTypeList = item.getResourceType().split(","); - if(resourceTypeList != null || !"".equals(resourceTypeList[0])){ + if(resourceTypeList != null && !"".equals(resourceTypeList[0])){ String resourceTypeName = ""; for(int i = 0; i < resourceTypeList.length; i++){ resourceTypeName += MaterialTypeEnum.valueOf(resourceTypeList[i]).getTypeName() + ",";