Commit a2f7952e authored by 高滢's avatar 高滢

导出

parent ba1f1127
...@@ -53,9 +53,9 @@ public class TestPlanRecordController extends BaseController{ ...@@ -53,9 +53,9 @@ public class TestPlanRecordController extends BaseController{
@Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")}) @Tags({@Tag(key = "param", value = "arg[0]"), @Tag(key = "result", value = "returnedObj")})
@Log(title = "新增检测方案", businessType = BusinessType.INSERT) @Log(title = "新增检测方案", businessType = BusinessType.INSERT)
@RequestMapping(method = RequestMethod.POST, value = "/add") @RequestMapping(method = RequestMethod.POST, value = "/add")
public R<Long> insertTestPlanRecord(@Validated @RequestBody TTestPlanRecord tTestPlanRecord){ public R<String> insertTestPlanRecord(@Validated @RequestBody TTestPlanRecord tTestPlanRecord){
tTestPlanRecordService.insertTestPlanRecord(tTestPlanRecord); tTestPlanRecordService.insertTestPlanRecord(tTestPlanRecord);
return R.ok(tTestPlanRecord.getId()); return R.ok(tTestPlanRecord.getId().toString());
} }
@ApiOperation("检测方案详情") @ApiOperation("检测方案详情")
...@@ -126,7 +126,7 @@ public class TestPlanRecordController extends BaseController{ ...@@ -126,7 +126,7 @@ public class TestPlanRecordController extends BaseController{
}); });
}); });
ExcelUtil<RecaordUseCasesVO> util = new ExcelUtil<RecaordUseCasesVO>(RecaordUseCasesVO.class); ExcelUtil<RecaordUseCasesVO> util = new ExcelUtil<RecaordUseCasesVO>(RecaordUseCasesVO.class);
util.exportExcel( respon, list, "自由裁量库(左)数据"); util.exportExcel( respon, list, "用例编号");
// return R.ok(); // return R.ok();
} }
} }
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