|
@@ -116,13 +116,15 @@ public class MaterialImageInfoController {
|
|
@AutoLog(value = "素材-分页列表查询")
|
|
@AutoLog(value = "素材-分页列表查询")
|
|
@ApiOperation(value = "素材-分页列表查询", notes = "素材-分页列表查询")
|
|
@ApiOperation(value = "素材-分页列表查询", notes = "素材-分页列表查询")
|
|
@GetMapping(value = "/list")
|
|
@GetMapping(value = "/list")
|
|
- public Result<List<MaterialImageInfo>> queryPageList(String videoId,Integer status) {
|
|
|
|
|
|
+ public Result<List<MaterialImageInfo>> queryPageList(String videoId, Integer status) {
|
|
Result<List<MaterialImageInfo>> result = new Result<>();
|
|
Result<List<MaterialImageInfo>> result = new Result<>();
|
|
List<MaterialImageInfo> list = new ArrayList<>();
|
|
List<MaterialImageInfo> list = new ArrayList<>();
|
|
if (!Check.isNull(videoId)) {
|
|
if (!Check.isNull(videoId)) {
|
|
QueryWrapper<MaterialImageInfo> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<MaterialImageInfo> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.eq("video_id", videoId);
|
|
queryWrapper.eq("video_id", videoId);
|
|
- queryWrapper.eq("status", status);
|
|
|
|
|
|
+ if (!Check.isNull(status)) {
|
|
|
|
+ queryWrapper.eq("status", status);
|
|
|
|
+ }
|
|
list = MaterialImageInfoService.list(queryWrapper);
|
|
list = MaterialImageInfoService.list(queryWrapper);
|
|
}
|
|
}
|
|
|
|
|