| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.services.Battresdata_infService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battResDataInf") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battResDataInf接口") |
| | | public class Battresdata_infController{ |
| | | |
| | | @Resource |
| | |
| | | // private Battresdata_inf brdi; |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="新增") |
| | | public ServiceModel add(@RequestBody Battresdata_inf brdi) { |
| | | model = service.add(brdi); |
| | | return model; |
| | | } |
| | | |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody Battresdata_inf brdi) { |
| | | model = service.update(brdi); |
| | | |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除") |
| | | public ServiceModel delete(@RequestBody Battresdata_inf brdi) { |
| | | model = service.delete(brdi); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="筛选存在battresdata_inf表中的数据") |
| | | public ServiceModel serchByCondition(@RequestBody Battresdata_inf brdi) { |
| | | model = service.serchByCondition(brdi); |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="all") |
| | | public ServiceModel searchAll() { |
| | | model = service.searchAll(); |
| | | |
| | |
| | | |
| | | //6.4.1根据条件查询符合条件的测试完成的电池组(蓄电池电导测试完成率) |
| | | @GetMapping("complete") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池电导测试完成率)") |
| | | public ServiceModel serchComplete(@RequestBody Battresdata_inf b){ |
| | | // Battresdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Battresdata_inf.class); |
| | | ServiceModel model=service.serchComplete(b); |
| | |
| | | |
| | | //6.4.3根据条件查询符合条件的测试完成的电池组(蓄电池电导合格率) |
| | | @GetMapping("serRate") |
| | | @ApiOperation(notes = "",value="条件查询符合条件的测试完成的电池组(蓄电池电导合格率)") |
| | | public ServiceModel serchSer(@RequestBody Battresdata_inf b){ |
| | | // Battresdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Battresdata_inf.class); |
| | | ServiceModel model=service.serchSer(b); |