package com.thhy.engineering.modules.biz.restdata.controller;
|
|
import com.thhy.engineering.modules.biz.restdata.dto.TRestDataDto;
|
import com.thhy.engineering.modules.biz.restdata.entity.TRestDataVo;
|
import com.thhy.engineering.modules.biz.restdata.service.TRestDataService;
|
import com.thhy.general.common.BasicResult;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.servlet.http.HttpServletResponse;
|
import java.util.Map;
|
|
/**
|
* @Author QiuYuHao
|
* @CreateDate 2023-09-15 14:56:36
|
* 静养区控制层
|
*/
|
@RestController
|
@RequestMapping(value = "trestdata")
|
public class TRestDataController {
|
|
@Autowired
|
private TRestDataService tRestDataService;
|
|
@PostMapping("/findAll")
|
public BasicResult findAll(@RequestBody TRestDataDto tRestDataVo){
|
return tRestDataService.findAll(tRestDataVo);
|
}
|
|
@PostMapping("/export")
|
public void export(@RequestBody TRestDataDto tRestDataVo, HttpServletResponse rsp){
|
tRestDataService.export(tRestDataVo,rsp);
|
}
|
}
|