| | |
| | | package com.mes.controller; |
| | | |
| | | import com.mes.mapper.OrderTestMapper; |
| | | import com.mes.mapper.SelectInfo; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.mes.common.Result; |
| | | import com.mes.entity.Tempered; |
| | | import com.mes.service.pp.SelectdppService; |
| | | |
| | | //@CrossOrigin //解决单个controller 跨域问题 |
| | | @RestController |
| | | @RequestMapping("/order11111111") |
| | | @RequestMapping("/Temper") |
| | | |
| | | public class OrderTestController { |
| | | @Autowired |
| | | private OrderTestMapper orderMapper; |
| | | private SelectInfo SelectInfo; |
| | | |
| | | // @GetMapping //查询order表结果集 |
| | | // public Result index(){ |
| | | // return Result.seccess(orderMapper.findAll()); |
| | | // |
| | | // } |
| | | @Autowired |
| | | private SelectdppService SelectppService; |
| | | |
| | | @GetMapping("/Tindex") //查询order表结果集 |
| | | @ResponseBody |
| | | public Result index(){ |
| | | System.out.println(1); |
| | | List<Tempered> h=SelectppService.getSelectTempered("P24030707"); |
| | | System.out.println(h.size()); |
| | | return Result.seccess(h); |
| | | |
| | | } |
| | | // |
| | | // @PostMapping //插入 |
| | | // public Integer save(@RequestBody Order order) { |