|
|
@ -9,6 +9,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
|
import com.hnac.hzims.common.logs.annotation.OperationAnnotation; |
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
|
|
|
|
import com.hnac.hzims.common.utils.Condition; |
|
|
|
import com.hnac.hzims.operational.station.dto.StationVideoTypeDTO; |
|
|
|
import com.hnac.hzims.operational.station.dto.StationVideoTypeDTO; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationEntity; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationEntity; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationVideoTypeEntity; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationVideoTypeEntity; |
|
|
@ -30,15 +31,12 @@ import io.swagger.annotations.ApiParam; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
|
|
|
|
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springblade.system.entity.AuthClient; |
|
|
|
|
|
|
|
import org.springblade.system.entity.Dept; |
|
|
|
import org.springblade.system.entity.Dept; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
@ -250,12 +248,22 @@ public class StationVideoTypeController extends BladeController { |
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
@ApiOperation(value = "获取Flv配置列表", notes = "获取Flv配置列表") |
|
|
|
@ApiOperation(value = "获取Flv配置列表", notes = "获取Flv配置列表") |
|
|
|
public R getFlvVideoConfig(VideoConfigEntity req,Query query) { |
|
|
|
public R getFlvVideoConfig(VideoConfigEntity req,Query query) { |
|
|
|
LambdaQueryWrapper<VideoConfigEntity> queryWrapper = com.hnac.hzims.common.utils.Condition.getQueryWrapper(VideoConfigEntity.class, req); |
|
|
|
LambdaQueryWrapper<VideoConfigEntity> queryWrapper = Condition.getQueryWrapper(VideoConfigEntity.class, req); |
|
|
|
queryWrapper.eq(VideoConfigEntity::getCreateUser,AuthUtil.getUserId()); |
|
|
|
queryWrapper.eq(VideoConfigEntity::getCreateUser,AuthUtil.getUserId()); |
|
|
|
IPage<VideoConfigEntity> page = videoConfigService.page(com.hnac.hzims.common.utils.Condition.getPage(query), queryWrapper); |
|
|
|
IPage<VideoConfigEntity> page = videoConfigService.page(Condition.getPage(query), queryWrapper); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/flvVideoConfigs") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
|
|
|
|
@ApiOperation(value = "获取Flv配置列表", notes = "获取Flv配置列表") |
|
|
|
|
|
|
|
public R flvVideoConfigs(VideoConfigEntity req) { |
|
|
|
|
|
|
|
LambdaQueryWrapper<VideoConfigEntity> queryWrapper = Condition.getQueryWrapper(VideoConfigEntity.class, req); |
|
|
|
|
|
|
|
queryWrapper.eq(VideoConfigEntity::getCreateUser,AuthUtil.getUserId()); |
|
|
|
|
|
|
|
return R.data(videoConfigService.list(queryWrapper)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping ("/updateFlvVideoConfig") |
|
|
|
@PostMapping ("/updateFlvVideoConfig") |
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
@ApiOperationSupport(order = 120) |
|
|
|
@ApiOperation(value = "更新Flv配置列表", notes = "更新Flv配置列表") |
|
|
|
@ApiOperation(value = "更新Flv配置列表", notes = "更新Flv配置列表") |
|
|
|