修改[新增报告接口]的返回值

This commit is contained in:
2023-04-20 16:02:25 +08:00
parent 64f82861b6
commit 8c3ef0a9d9
@@ -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);
} }
/** /**