| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/getAnimalStatis") |
| | | public R getAnimalStatis(AnimalHeatVo animalHeatVo){ |
| | | public R getAnimalStatis(AnimalHeatVo animalHeatVo,HttpServletResponse response){ |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | return R.data(animalHeatService.getAnimalStatis(animalHeatVo)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | public R<IPage<BladeAnimalHeat>> page(AnimalHeatVo animalHeatVo, Query query) { |
| | | public R<IPage<BladeAnimalHeat>> page(AnimalHeatVo animalHeatVo, Query query,HttpServletResponse response) { |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | return R.data(animalHeatService.selectAnimalHeatPage(Condition.getPage(query), animalHeatVo)); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/selWeekDayAnimalStatis") |
| | | public R selWeekDayAnimalStatis(){ |
| | | public R selWeekDayAnimalStatis(HttpServletResponse response){ |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | return R.data(animalHeatService.selWeekDayAnimalStatis()); |
| | | } |
| | | |