|
|
@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid; |
|
|
|
import javax.validation.Valid; |
|
|
@ -39,10 +40,14 @@ public class StationFrameRecordController extends BladeController { |
|
|
|
@ApiOperation(value = "查询站点视频播放保存记录", notes = "传入VideoRecordEntity") |
|
|
|
@ApiOperation(value = "查询站点视频播放保存记录", notes = "传入VideoRecordEntity") |
|
|
|
public R query(@RequestParam("stationId") String stationId, |
|
|
|
public R query(@RequestParam("stationId") String stationId, |
|
|
|
@RequestParam("userId") String userId) { |
|
|
|
@RequestParam("userId") String userId) { |
|
|
|
return R.data(frameRecordService.getOne(Wrappers.<FrameRecordEntity>lambdaQuery() |
|
|
|
FrameRecordEntity frameRecord = frameRecordService.getOne(Wrappers.<FrameRecordEntity>lambdaQuery() |
|
|
|
.eq(FrameRecordEntity::getStationId,stationId) |
|
|
|
.eq(FrameRecordEntity::getStationId,stationId) |
|
|
|
.eq(FrameRecordEntity::getCreateUser,userId) |
|
|
|
.eq(FrameRecordEntity::getCreateUser,userId) |
|
|
|
)); |
|
|
|
); |
|
|
|
|
|
|
|
if(ObjectUtil.isEmpty(frameRecord)){ |
|
|
|
|
|
|
|
return R.status(true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return R.data(frameRecord); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|