🔨 命令分组替换为通用分组模型.

This commit is contained in:
lijiahang
2024-04-23 19:10:15 +08:00
parent f146989a1a
commit e04e14a6e4
11 changed files with 92 additions and 184 deletions

View File

@@ -19,6 +19,11 @@ public enum DataGroupTypeEnum {
*/
COMMAND_SNIPPET,
/**
* 路径书签
*/
PATH_BOOKMARK,
;
public static DataGroupTypeEnum of(String type) {

View File

@@ -173,10 +173,13 @@ public class DataGroupRelServiceImpl implements DataGroupRelService {
.relId(s.getRelId())
.build()));
});
// 插入
dataGroupRelDAO.insertBatch(records);
// 删除缓存
this.deleteCache(type, userId, groupMapping.keySet());
// 不为空则插入
if (!records.isEmpty()) {
// 插入
dataGroupRelDAO.insertBatch(records);
// 删除缓存
this.deleteCache(type, userId, groupMapping.keySet());
}
}
@Override