PC诊断记录 分页导出

master
gongzhenkun 2 years ago
parent 620f391a39
commit 8c4314fb83

@ -18,6 +18,7 @@ import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@ -60,8 +61,9 @@ public class TRecordController extends BaseController
*/
@Log(title = "诊断记录信息导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TRecordResultReq tRecord)
public void export(HttpServletResponse response, @RequestBody @Validated TRecordResultReq tRecord)
{
startPage();
List<TRecordResp> list = tRecordService.selectTRecordListWithoutResult(tRecord);
ExcelUtil<TRecordResp> util = new ExcelUtil<>(TRecordResp.class);
util.exportExcel(response, list, "诊断记录信息数据");

Loading…
Cancel
Save