WANG 5 жил өмнө
parent
commit
594d3d9e40

+ 10 - 7
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/OrgController.java

@@ -1029,14 +1029,17 @@ public class OrgController extends ControllerSupport {
 
 		orgService.saveOrgProperties(orgEntity.getId(), properties);
 
-		for (String propertyGroupId : relatedPropertyGroupIdList) {
-			// 删除缓存
-			String redisKey = "PROPERTIES_BY_GROUP:" + orgId + ":" + propertyGroupId;
-			redisClient.delete(redisKey);
-
-			// 上传upyun
-			uploadOrgProperties2Upyun(orgId, propertyGroupId);
+		if (CollectionUtils.isNotEmpty(relatedPropertyGroupIdList)) {
+			for (String propertyGroupId : relatedPropertyGroupIdList) {
+				// 删除缓存
+				String redisKey = "PROPERTIES_BY_GROUP:" + orgId + ":" + propertyGroupId;
+				redisClient.delete(redisKey);
+
+				// 上传upyun
+				uploadOrgProperties2Upyun(orgId, propertyGroupId);
+			}
 		}
+
 	}
 
 	/**