Commit afe81e25 by zhangkb

添加接口返回前台错误类型

parent dfde2290
...@@ -3,10 +3,12 @@ package com.keymobile.indicators.api.hytobacco; ...@@ -3,10 +3,12 @@ package com.keymobile.indicators.api.hytobacco;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.keymobile.indicators.constant.Constants; import com.keymobile.indicators.constant.Constants;
...@@ -28,6 +30,7 @@ public class IndCatalogCtrl { ...@@ -28,6 +30,7 @@ public class IndCatalogCtrl {
@Autowired @Autowired
private DriveIndCatalogService driveIndCatalogService; private DriveIndCatalogService driveIndCatalogService;
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
@ApiOperation(value = "新建基础指标目录", notes = "新建基础指标目录") @ApiOperation(value = "新建基础指标目录", notes = "新建基础指标目录")
@PostMapping(value = "/createBaseIndCatalog") @PostMapping(value = "/createBaseIndCatalog")
public Integer createBaseIndCatalog(@RequestBody IndCatalog indCatalog) throws Exception{ public Integer createBaseIndCatalog(@RequestBody IndCatalog indCatalog) throws Exception{
...@@ -82,6 +85,7 @@ public class IndCatalogCtrl { ...@@ -82,6 +85,7 @@ public class IndCatalogCtrl {
} }
//考核指标目录 //考核指标目录
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
@ApiOperation(value = "新建考核指标目录", notes = "新建考核指标目录") @ApiOperation(value = "新建考核指标目录", notes = "新建考核指标目录")
@PostMapping(value = "/createDriveIndCatalog") @PostMapping(value = "/createDriveIndCatalog")
public Integer createDriveIndCatalog(@RequestBody DriveIndCatalog driveIndCatalog) throws Exception{ public Integer createDriveIndCatalog(@RequestBody DriveIndCatalog driveIndCatalog) throws Exception{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment