Update DataSetController.java
This commit is contained in:
@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
**/
|
**/
|
||||||
@RestController
|
@RestController
|
||||||
@Api(tags = "数据集管理")
|
@Api(tags = "数据集管理")
|
||||||
|
@Permission(code = "resultsetManage", name = "数据集管理")
|
||||||
@RequestMapping("/dataSet")
|
@RequestMapping("/dataSet")
|
||||||
public class DataSetController extends GaeaBaseController<DataSetParam, DataSet, DataSetDto> {
|
public class DataSetController extends GaeaBaseController<DataSetParam, DataSet, DataSetDto> {
|
||||||
|
|
||||||
@@ -50,10 +51,7 @@ public class DataSetController extends GaeaBaseController<DataSetParam, DataSet,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/detailBysetId/{id}")
|
@GetMapping("/detailBysetId/{id}")
|
||||||
@Permission(
|
@Permission( code = "query", name = "明细" )
|
||||||
code = "DETAIL",
|
|
||||||
name = "明细"
|
|
||||||
)
|
|
||||||
public ResponseBean detailBysetId(@PathVariable("id") Long id) {
|
public ResponseBean detailBysetId(@PathVariable("id") Long id) {
|
||||||
this.logger.info("{}根据ID查询服务开始,id为:{}", this.getClass().getSimpleName(), id);
|
this.logger.info("{}根据ID查询服务开始,id为:{}", this.getClass().getSimpleName(), id);
|
||||||
ResponseBean responseBean = this.responseSuccessWithData(dataSetService.detailSet(id));
|
ResponseBean responseBean = this.responseSuccessWithData(dataSetService.detailSet(id));
|
||||||
@@ -62,10 +60,7 @@ public class DataSetController extends GaeaBaseController<DataSetParam, DataSet,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping({"/detailBysetCode/{setCode}"})
|
@GetMapping({"/detailBysetCode/{setCode}"})
|
||||||
@Permission(
|
@Permission( code = "query", name = "明细" )
|
||||||
code = "DETAIL",
|
|
||||||
name = "明细"
|
|
||||||
)
|
|
||||||
@AccessKey
|
@AccessKey
|
||||||
public ResponseBean detailBysetCode(@PathVariable("setCode") String setCode) {
|
public ResponseBean detailBysetCode(@PathVariable("setCode") String setCode) {
|
||||||
this.logger.info("{}根据setCode查询服务开始,setCode为:{}", this.getClass().getSimpleName(), setCode);
|
this.logger.info("{}根据setCode查询服务开始,setCode为:{}", this.getClass().getSimpleName(), setCode);
|
||||||
@@ -76,7 +71,7 @@ public class DataSetController extends GaeaBaseController<DataSetParam, DataSet,
|
|||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@Permission(
|
@Permission(
|
||||||
code = "INSERT",
|
code = "insert",
|
||||||
name = "新增"
|
name = "新增"
|
||||||
)
|
)
|
||||||
@GaeaAuditLog(
|
@GaeaAuditLog(
|
||||||
@@ -92,7 +87,7 @@ public class DataSetController extends GaeaBaseController<DataSetParam, DataSet,
|
|||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@Permission(
|
@Permission(
|
||||||
code = "UPDATE",
|
code = "update",
|
||||||
name = "更新"
|
name = "更新"
|
||||||
)
|
)
|
||||||
@GaeaAuditLog(
|
@GaeaAuditLog(
|
||||||
@@ -110,7 +105,7 @@ public class DataSetController extends GaeaBaseController<DataSetParam, DataSet,
|
|||||||
|
|
||||||
@DeleteMapping({"/{id}"})
|
@DeleteMapping({"/{id}"})
|
||||||
@Permission(
|
@Permission(
|
||||||
code = "DELETE",
|
code = "delete",
|
||||||
name = "删除"
|
name = "删除"
|
||||||
)
|
)
|
||||||
@GaeaAuditLog(
|
@GaeaAuditLog(
|
||||||
@@ -130,6 +125,7 @@ public class DataSetController extends GaeaBaseController<DataSetParam, DataSet,
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PostMapping("/testTransform")
|
@PostMapping("/testTransform")
|
||||||
|
@Permission( code = "query", name = "明细" )
|
||||||
public ResponseBean testTransform(@Validated @RequestBody DataSetTestTransformParam param) {
|
public ResponseBean testTransform(@Validated @RequestBody DataSetTestTransformParam param) {
|
||||||
DataSetDto dto = new DataSetDto();
|
DataSetDto dto = new DataSetDto();
|
||||||
BeanUtils.copyProperties(param, dto);
|
BeanUtils.copyProperties(param, dto);
|
||||||
|
|||||||
Reference in New Issue
Block a user