Browse Source

视频流配置新增接口

zhongwei
ty 12 months ago
parent
commit
c5fa431f46
  1. 10
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java

10
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java

@ -31,9 +31,13 @@ import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.mp.support.Condition;
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.utils.Func;
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.feign.ISysClient;
import org.springframework.beans.factory.annotation.Value;
@ -253,6 +257,12 @@ public class StationVideoTypeController extends BladeController {
@ApiOperation(value = "更新Flv配置列表", notes = "更新Flv配置列表")
public R updateFlvVideoConfig(@RequestBody VideoConfigEntity 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);
if (b) {
return R.success("更新视频配置成功");

Loading…
Cancel
Save