|
@@ -14,6 +14,7 @@ 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.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -53,8 +54,8 @@ public class ParkVisualVideoController {
|
|
|
@ApiOperation(value = "园区可视化视频新增")
|
|
@ApiOperation(value = "园区可视化视频新增")
|
|
|
@Log(title = "新增园区信息", businessType = BusinessType.INSERT)
|
|
@Log(title = "新增园区信息", businessType = BusinessType.INSERT)
|
|
|
public Result<Object> save(@RequestBody ParkVisualVideo entity) {
|
|
public Result<Object> save(@RequestBody ParkVisualVideo entity) {
|
|
|
- entity.setCreateTime(new DateTime());
|
|
|
|
|
- entity.setUpdateTime(new DateTime());
|
|
|
|
|
|
|
+ entity.setCreateTime(new DateTime().toLocalDateTime());
|
|
|
|
|
+ entity.setUpdateTime(new DateTime().toLocalDateTime());
|
|
|
return Result.ok(service.save(entity));
|
|
return Result.ok(service.save(entity));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -63,8 +64,8 @@ public class ParkVisualVideoController {
|
|
|
@Log(title = "批量新增园区信息", businessType = BusinessType.INSERT)
|
|
@Log(title = "批量新增园区信息", businessType = BusinessType.INSERT)
|
|
|
public Result<Object> saveBatch(@RequestBody List<ParkVisualVideo> entityList) {
|
|
public Result<Object> saveBatch(@RequestBody List<ParkVisualVideo> entityList) {
|
|
|
entityList.forEach(q->{
|
|
entityList.forEach(q->{
|
|
|
- q.setUpdateTime(new DateTime());
|
|
|
|
|
- q.setCreateTime(new DateTime());
|
|
|
|
|
|
|
+ q.setUpdateTime(new DateTime().toLocalDateTime());
|
|
|
|
|
+ q.setCreateTime(new DateTime().toLocalDateTime());
|
|
|
});
|
|
});
|
|
|
return Result.ok(service.saveBatch(entityList));
|
|
return Result.ok(service.saveBatch(entityList));
|
|
|
}
|
|
}
|
|
@@ -73,7 +74,7 @@ public class ParkVisualVideoController {
|
|
|
@ApiOperation(value = "园区可视化视频修改")
|
|
@ApiOperation(value = "园区可视化视频修改")
|
|
|
@Log(title = "园区可视化视频信息", businessType = BusinessType.UPDATE)
|
|
@Log(title = "园区可视化视频信息", businessType = BusinessType.UPDATE)
|
|
|
public Result<Object> updateById(@RequestBody ParkVisualVideo entity) {
|
|
public Result<Object> updateById(@RequestBody ParkVisualVideo entity) {
|
|
|
- entity.setUpdateTime(new DateTime());
|
|
|
|
|
|
|
+ entity.setUpdateTime(new DateTime().toLocalDateTime());
|
|
|
return Result.ok(service.updateById(entity));
|
|
return Result.ok(service.updateById(entity));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -87,7 +88,7 @@ public class ParkVisualVideoController {
|
|
|
@DeleteMapping("/deleteBatchById")
|
|
@DeleteMapping("/deleteBatchById")
|
|
|
@ApiOperation(value = "园区可视化视频批量删除")
|
|
@ApiOperation(value = "园区可视化视频批量删除")
|
|
|
@Log(title = "园区可视化视频批量删除", businessType = BusinessType.DELETE)
|
|
@Log(title = "园区可视化视频批量删除", businessType = BusinessType.DELETE)
|
|
|
- public Result<Object> deleteBatchById(List<String> ids) {
|
|
|
|
|
|
|
+ public Result<Object> deleteBatchById(@RequestParam List<String> ids) {
|
|
|
return Result.ok(service.removeByIds(ids));
|
|
return Result.ok(service.removeByIds(ids));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|