|
@@ -36,33 +36,24 @@ public class FileServiceImpl extends ServiceImpl<FileMapper, FileEntity> impleme
|
|
|
|
|
|
@Override
|
|
|
public void indexDisable(Long moduleId, String module) {
|
|
|
- getBaseMapper().indexDisable(moduleId, module);
|
|
|
+ baseMapper.indexDisable(moduleId, module);
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void indexDisable(Long moduleId) {
|
|
|
+ baseMapper.indexDisableByModuleId(moduleId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public void indexEnabled(Long fileId) {
|
|
|
- getBaseMapper().indexEnabled(fileId);
|
|
|
+ baseMapper.indexEnabled(fileId);
|
|
|
}
|
|
|
|
|
|
-// @Override
|
|
|
-// public void addModuleIdToFile(String fileIds, Long moduleId, String module) {
|
|
|
-// if (StringUtils.isBlank(fileIds)) {
|
|
|
-// return;
|
|
|
-// }
|
|
|
-// // 去除特殊符号,防止sql注入
|
|
|
-// fileIds = RegexUtil.specificSymbol(fileIds);
|
|
|
-// getBaseMapper().addModuleIdToFile(fileIds, moduleId, module);
|
|
|
-// }
|
|
|
-
|
|
|
-// @Override
|
|
|
-// public List<FileEntity> findIndexByModule(Long moduleId, String module) {
|
|
|
-// return getBaseMapper().findIndexByModule(moduleId, module);
|
|
|
-// }
|
|
|
|
|
|
@Override
|
|
|
public List<FileEntity> findByModuleId(Long moduleId, String module) {
|
|
|
- return getBaseMapper().findByModuleId(moduleId, module);
|
|
|
+ return baseMapper.findByModuleId(moduleId, module);
|
|
|
}
|
|
|
|
|
|
|