| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.BatttestdataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @RequestMapping("battTestData") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battTestData接口") |
| | | public class BatttestdataController{ |
| | | |
| | | @Resource |
| | |
| | | // private Batttestdata btd; |
| | | |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="byInfo") |
| | | public ServiceModel findByInfo(@RequestBody Batttestdata btd) { |
| | | ServiceModel model = service.serchByCondition(btd); |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("history") |
| | | @ApiOperation(notes = "",value="历史数据查询") |
| | | public ServiceModel findhistory(@RequestBody Batttestdata btd){ |
| | | // Batttestdata btd = ActionUtil.getGson().fromJson(json, Batttestdata.class); |
| | | ServiceModel model = service.serchByCondition(btd); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("history_ky") |
| | | @ApiOperation(notes = "跨域访问",value="历史数据查询") |
| | | public ServiceModel findhistory_ky(@RequestBody Batttestdata btd){ |
| | | // btd = ActionUtil.getGson().fromJson(json, Batttestdata.class); |
| | | ServiceModel model = service.serchByCondition_ky(btd); |