修改[新增报告接口]的返回值
This commit is contained in:
@@ -78,10 +78,8 @@ public class ReportManageConroller {
|
|||||||
public ResponseMessage add(@RequestBody ReportVo vo) {
|
public ResponseMessage add(@RequestBody ReportVo vo) {
|
||||||
ReportEntity entity = new ReportEntity();
|
ReportEntity entity = new ReportEntity();
|
||||||
BeanUtils.copyProperties(vo, entity);
|
BeanUtils.copyProperties(vo, entity);
|
||||||
String name = reportService.insert(entity, vo.getLabelList());
|
reportService.insert(entity, vo.getLabelList());
|
||||||
Map<String, Object> map = new HashMap<>();
|
return Result.success();
|
||||||
map.put("reportName", name);
|
|
||||||
return Result.success(map);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user