|
|
@@ -60,6 +60,29 @@ public class ResourceFileFormatServiceImpl extends ServiceImpl<ResourceFileForma
|
|
|
return this.page(CommonPageRequest.defaultPage(), queryWrapper);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * resource_file_format-全量列表
|
|
|
+ *
|
|
|
+ * @author pans
|
|
|
+ * @date 2025/06/28 12:01
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<ResourceFileFormat> allList(ResourceFileFormatPageParam resourceFileFormatPageParam)
|
|
|
+ {
|
|
|
+ QueryWrapper<ResourceFileFormat> queryWrapper = new QueryWrapper<>();
|
|
|
+ if(ObjectUtil.isNotEmpty(resourceFileFormatPageParam.getSearchKey())){
|
|
|
+ queryWrapper.lambda().like(ResourceFileFormat::getFileExtendName, resourceFileFormatPageParam.getSearchKey());
|
|
|
+ }
|
|
|
+ if(ObjectUtil.isAllNotEmpty(resourceFileFormatPageParam.getSortField(), resourceFileFormatPageParam.getSortOrder())) {
|
|
|
+ CommonSortOrderEnum.validate(resourceFileFormatPageParam.getSortOrder());
|
|
|
+ queryWrapper.orderBy(true, resourceFileFormatPageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),
|
|
|
+ StrUtil.toUnderlineCase(resourceFileFormatPageParam.getSortField()));
|
|
|
+ } else {
|
|
|
+ queryWrapper.lambda().orderByAsc(ResourceFileFormat::getId);
|
|
|
+ }
|
|
|
+ return this.list(queryWrapper);
|
|
|
+ }
|
|
|
+
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public void add(ResourceFileFormatAddParam resourceFileFormatAddParam) {
|