|
|
@@ -67,20 +67,16 @@ public class ResourceFileFormatServiceImpl extends ServiceImpl<ResourceFileForma
|
|
|
* @date 2025/06/28 12:01
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<ResourceFileFormat> allList(ResourceFileFormatPageParam resourceFileFormatPageParam)
|
|
|
+ public List<ResourceFileFormat> allList()
|
|
|
{
|
|
|
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);
|
|
|
+ queryWrapper.lambda().orderByAsc(ResourceFileFormat::getId);
|
|
|
+ List<ResourceFileFormat> list = this.list(queryWrapper);
|
|
|
+
|
|
|
+ ResourceFileFormat resourceFileFormat =new ResourceFileFormat();
|
|
|
+ resourceFileFormat.setFileExtendName("全部");
|
|
|
+ list.add(0,resourceFileFormat);
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|