|
@@ -1,6 +1,8 @@
|
|
|
package com.dayou.controller;
|
|
|
|
|
|
import com.dayou.vo.AssetsEvaluationTargetVO;
|
|
|
+import org.apache.commons.lang3.StringEscapeUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -56,7 +58,7 @@ public class AssetsEvaluationTargetController extends BaseController {
|
|
|
/**
|
|
|
* 资产评估对象表详情
|
|
|
*/
|
|
|
- @GetMapping("/{id}")
|
|
|
+ @GetMapping("detail/{id}")
|
|
|
public RestResponse<AssetsEvaluationTarget> detail(@PathVariable Long id){
|
|
|
AssetsEvaluationTarget xAssetsEvaluationTarget =assetsEvaluationTargetService.detail(id);
|
|
|
return RestResponse.data(xAssetsEvaluationTarget);
|
|
@@ -65,7 +67,7 @@ public class AssetsEvaluationTargetController extends BaseController {
|
|
|
/**
|
|
|
* 资产评估对象表新增
|
|
|
*/
|
|
|
- @PostMapping("")
|
|
|
+ @PostMapping("/save")
|
|
|
public RestResponse<Boolean> save(@RequestBody AssetsEvaluationTarget assetsEvaluationTarget) {
|
|
|
Boolean ret = assetsEvaluationTargetService.add(assetsEvaluationTarget);
|
|
|
return RestResponse.data(ret);
|
|
@@ -74,7 +76,7 @@ public class AssetsEvaluationTargetController extends BaseController {
|
|
|
/**
|
|
|
* 资产评估对象表更新
|
|
|
*/
|
|
|
- @PutMapping("")
|
|
|
+ @PutMapping("/update")
|
|
|
public RestResponse<Boolean> update(@RequestBody AssetsEvaluationTarget assetsEvaluationTarget) {
|
|
|
Boolean ret = assetsEvaluationTargetService.update(assetsEvaluationTarget);
|
|
|
return RestResponse.data(ret);
|
|
@@ -83,7 +85,7 @@ public class AssetsEvaluationTargetController extends BaseController {
|
|
|
/**
|
|
|
* 资产评估对象表删除
|
|
|
*/
|
|
|
- @DeleteMapping("/{id}")
|
|
|
+ @DeleteMapping("delete/{id}")
|
|
|
public RestResponse<Boolean> delete(@PathVariable Long id) {
|
|
|
Boolean ret = assetsEvaluationTargetService.delete(id);
|
|
|
return RestResponse.data(ret);
|