|
@@ -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);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|