| | |
| | | String id = kv.get("id").toString(); |
| | | information.setDepartmentid(id); |
| | | } |
| | | arg arg = new arg(); |
| | | arg.test01(arg.url+"/information/save",information); |
| | | return R.status(informationService.save(information)); |
| | | } |
| | |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入information") |
| | | public R update(@Valid @RequestBody Information information) { |
| | | public R update(@Valid @RequestBody Information information) throws Exception { |
| | | arg.test01(arg.url+"/information/update",information); |
| | | return R.status(informationService.updateById(information)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "删除", notes = "传入ids") |
| | | public R remove(String creditcode) { |
| | | public R remove(String creditcode) throws Exception { |
| | | informationService.deleteIn(creditcode); |
| | | informationService.deleteSh(creditcode); |
| | | informationService.deleteMe(creditcode); |