修复报告上传接口Bug
This commit is contained in:
@@ -78,8 +78,10 @@ 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);
|
||||||
reportService.insert(entity, vo.getLabelList());
|
String name = reportService.insert(entity, vo.getLabelList());
|
||||||
return Result.success();
|
Map<String, Object> map = new HashMap<>();
|
||||||
|
map.put("reportName", name);
|
||||||
|
return Result.success(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user