|
@@ -17,7 +17,7 @@ import javax.annotation.Resource;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("//target")
|
|
|
|
|
|
+@RequestMapping("//enter")
|
|
public class TargetEnterController {
|
|
public class TargetEnterController {
|
|
@Resource
|
|
@Resource
|
|
private TargetEnterService targetEnterService;
|
|
private TargetEnterService targetEnterService;
|
|
@@ -58,10 +58,10 @@ public class TargetEnterController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- @DeleteMapping(value = "/target")
|
|
|
|
|
|
+ @DeleteMapping(value = "/target/{id}")
|
|
@ApiOperation(value = "删", notes = "删")
|
|
@ApiOperation(value = "删", notes = "删")
|
|
- public R delete(@RequestBody ProEconTargetdata data) {
|
|
|
|
- boolean b = targetEnterService.delete(data);
|
|
|
|
|
|
+ public R delete(@PathVariable String id) {
|
|
|
|
+ boolean b = targetEnterService.delete(id);
|
|
if (b) {
|
|
if (b) {
|
|
return R.data(ResultMsg.ok(b));
|
|
return R.data(ResultMsg.ok(b));
|
|
} else {
|
|
} else {
|
|
@@ -83,7 +83,7 @@ public class TargetEnterController {
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/wpls")
|
|
@GetMapping(value = "/wpls")
|
|
- @ApiOperation(value = "查", notes = "查")
|
|
|
|
|
|
+ @ApiOperation(value = "查场站", notes = "查场站")
|
|
public R wpls(@RequestParam(value = "wpid", required = true) String wpid) {
|
|
public R wpls(@RequestParam(value = "wpid", required = true) String wpid) {
|
|
List<ProBasicPowerstation> resultList = targetEnterService.wpls(wpid);
|
|
List<ProBasicPowerstation> resultList = targetEnterService.wpls(wpid);
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
if (StringUtils.isNotNull(resultList)) {
|