| | |
| | | */ |
| | | @PostMapping("/submit") |
| | | public R submit(@RequestBody Car car) throws Exception { |
| | | if (car.getId()==null){ |
| | | /*if (car.getId()==null){ |
| | | arg arg = new arg(); |
| | | arg.test01(arg.url+"/car/save",car); |
| | | } |
| | | }*/ |
| | | return R.status(carService.saveOrUpdate(car)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/remove") |
| | | public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) { |
| | | arg.sendPostRemoveByIds(arg.url+"/car/remove",ids); |
| | | //arg.sendPostRemoveByIds(arg.url+"/car/remove",ids); |
| | | return R.status(carService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |