|
@@ -14,6 +14,8 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @author Administrator
|
|
* @author Administrator
|
|
|
* @version 1.0
|
|
* @version 1.0
|
|
@@ -56,10 +58,21 @@ public class ParkVisualVideoController {
|
|
|
return Result.ok(service.save(entity));
|
|
return Result.ok(service.save(entity));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/saveBatch")
|
|
|
|
|
+ @ApiOperation(value = "园区可视化视频批量新增")
|
|
|
|
|
+ @Log(title = "批量新增园区信息", businessType = BusinessType.INSERT)
|
|
|
|
|
+ public Result<Object> saveBatch(@RequestBody List<ParkVisualVideo> entityList) {
|
|
|
|
|
+ entityList.forEach(q->{
|
|
|
|
|
+ q.setUpdateTime(new DateTime());
|
|
|
|
|
+ q.setCreateTime(new DateTime());
|
|
|
|
|
+ });
|
|
|
|
|
+ return Result.ok(service.saveBatch(entityList));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@PutMapping("/updateById")
|
|
@PutMapping("/updateById")
|
|
|
@ApiOperation(value = "园区可视化视频修改")
|
|
@ApiOperation(value = "园区可视化视频修改")
|
|
|
@Log(title = "园区可视化视频信息", businessType = BusinessType.UPDATE)
|
|
@Log(title = "园区可视化视频信息", businessType = BusinessType.UPDATE)
|
|
|
- public Result updateById(@RequestBody ParkVisualVideo entity) {
|
|
|
|
|
|
|
+ public Result<Object> updateById(@RequestBody ParkVisualVideo entity) {
|
|
|
entity.setUpdateTime(new DateTime());
|
|
entity.setUpdateTime(new DateTime());
|
|
|
return Result.ok(service.updateById(entity));
|
|
return Result.ok(service.updateById(entity));
|
|
|
}
|
|
}
|
|
@@ -67,8 +80,14 @@ public class ParkVisualVideoController {
|
|
|
@DeleteMapping("/deleteById")
|
|
@DeleteMapping("/deleteById")
|
|
|
@ApiOperation(value = "园区可视化视频删除")
|
|
@ApiOperation(value = "园区可视化视频删除")
|
|
|
@Log(title = "园区可视化视频信息", businessType = BusinessType.DELETE)
|
|
@Log(title = "园区可视化视频信息", businessType = BusinessType.DELETE)
|
|
|
- public Result deleteById(String id) {
|
|
|
|
|
|
|
+ public Result<Object> deleteById(String id) {
|
|
|
return Result.ok(service.removeById(id));
|
|
return Result.ok(service.removeById(id));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @DeleteMapping("/deleteBatchById")
|
|
|
|
|
+ @ApiOperation(value = "园区可视化视频批量删除")
|
|
|
|
|
+ @Log(title = "园区可视化视频批量删除", businessType = BusinessType.DELETE)
|
|
|
|
|
+ public Result<Object> deleteBatchById(List<String> ids) {
|
|
|
|
|
+ return Result.ok(service.removeByIds(ids));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|