|
|
|
@ -74,6 +74,7 @@ public class SysFilesController { |
|
|
|
|
} |
|
|
|
|
UpdateWrapper<SysFilesEntity> updateWrapper = new UpdateWrapper<>(); |
|
|
|
|
updateWrapper.set("quote",fileParameters.getQuote()). |
|
|
|
|
set("is_release",fileParameters.getIsRelease()). |
|
|
|
|
eq("site",fileParameters.getSite()). |
|
|
|
|
eq("id", fileParameters.getId()); |
|
|
|
|
return sysFilesService.update(updateWrapper) ? R.success() : R.fail("更新失败"); |
|
|
|
@ -121,6 +122,8 @@ public class SysFilesController { |
|
|
|
|
} |
|
|
|
|
queryWrapper.orderByDesc(SysFilesEntity::getCreateDate); |
|
|
|
|
queryWrapper.isNotNull(SysFilesEntity::getQuote); |
|
|
|
|
//只查看已发布的文件
|
|
|
|
|
queryWrapper.eq(SysFilesEntity::getIsRelease,1); |
|
|
|
|
IPage<SysFilesEntity> iPage = sysFilesService.page(sysFiles.getQueryPage(),queryWrapper); |
|
|
|
|
return R.success(iPage); |
|
|
|
|
} |
|
|
|
|