|
@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
|
+import java.util.Date;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -51,6 +52,8 @@ public class EdgenodesController {
|
|
@RequestMapping("/save")
|
|
@RequestMapping("/save")
|
|
@RequiresPermissions("generator:edgenodes:save")
|
|
@RequiresPermissions("generator:edgenodes:save")
|
|
public R save(@RequestBody EdgenodesEntity edgenodes) {
|
|
public R save(@RequestBody EdgenodesEntity edgenodes) {
|
|
|
|
+ Date date = new Date();
|
|
|
|
+ edgenodes.setCreatedTime(date);
|
|
edgenodesService.save(edgenodes);
|
|
edgenodesService.save(edgenodes);
|
|
|
|
|
|
return R.ok();
|
|
return R.ok();
|
|
@@ -62,6 +65,8 @@ public class EdgenodesController {
|
|
@RequestMapping("/update")
|
|
@RequestMapping("/update")
|
|
@RequiresPermissions("generator:edgenodes:update")
|
|
@RequiresPermissions("generator:edgenodes:update")
|
|
public R update(@RequestBody EdgenodesEntity edgenodes) {
|
|
public R update(@RequestBody EdgenodesEntity edgenodes) {
|
|
|
|
+ Date date = new Date();
|
|
|
|
+ edgenodes.setCreatedTime(date);
|
|
edgenodesService.updateById(edgenodes);
|
|
edgenodesService.updateById(edgenodes);
|
|
|
|
|
|
return R.ok();
|
|
return R.ok();
|