| | |
| | | import com.fgkj.services.Batt_historyService; |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping("battHistory") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battHistory接口") |
| | | public class Batt_historyController{ |
| | | |
| | | @Resource |
| | |
| | | //查询所有的历史实时数据 |
| | | //TODO 数据库不同,使用这个表名测试 db_batt_history.tb_batt_910000001_2017_12 |
| | | @GetMapping("serchByCondition") |
| | | @ApiOperation(notes = "TODO 数据库不同表,待测",value="查询所有的历史实时数据") |
| | | public ServiceModel serchByCondition(@RequestBody Batt_history batt_his){ |
| | | // Batt_history batt_his= ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_history.class); |
| | | ServiceModel model=service.serchByCondition(batt_his); |