| | |
| | | import com.fgkj.services.Batt_param_lowService; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battParamLow") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battParamLow接口") |
| | | public class Batt_param_lowController{ |
| | | |
| | | @Resource |
| | |
| | | // private String blowstr; |
| | | |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="查询所有") |
| | | public ServiceModel searchAll(){ |
| | | ServiceModel model=service.searchAll(); |
| | | //System.out.println(result); |
| | |
| | | } |
| | | |
| | | @PutMapping("updateAll") |
| | | @ApiOperation(notes = "",value="全部更新") |
| | | public ServiceModel updateAll(@RequestBody List<Batt_param_low> list){ |
| | | Gson gson=new Gson(); |
| | | UserRole u=new UserRole(); |