|
|
@ -31,9 +31,13 @@ import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
import org.springblade.core.log.annotation.ApiLog; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
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.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.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; |
|
|
@ -253,6 +257,12 @@ public class StationVideoTypeController extends BladeController { |
|
|
|
@ApiOperation(value = "更新Flv配置列表", notes = "更新Flv配置列表") |
|
|
|
@ApiOperation(value = "更新Flv配置列表", notes = "更新Flv配置列表") |
|
|
|
public R updateFlvVideoConfig(@RequestBody VideoConfigEntity req) { |
|
|
|
public R updateFlvVideoConfig(@RequestBody VideoConfigEntity req) { |
|
|
|
if (ObjectUtil.isNotEmpty(req)) { |
|
|
|
if (ObjectUtil.isNotEmpty(req)) { |
|
|
|
|
|
|
|
if(StringUtil.isBlank(req.getSavePeople())){ |
|
|
|
|
|
|
|
String userName = AuthUtil.getNickName(); |
|
|
|
|
|
|
|
if (StringUtil.isNotBlank(userName)){ |
|
|
|
|
|
|
|
req.setSavePeople(userName); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
boolean b = videoConfigService.saveOrUpdate(req); |
|
|
|
boolean b = videoConfigService.saveOrUpdate(req); |
|
|
|
if (b) { |
|
|
|
if (b) { |
|
|
|
return R.success("更新视频配置成功"); |
|
|
|
return R.success("更新视频配置成功"); |
|
|
|