| | |
| | | import com.se.nsl.service.RegionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.models.auth.In; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "1-推演区域") |
| | | @Slf4j |
| | |
| | | */ |
| | | @ApiOperation(value = "deleteByIds") |
| | | @DeleteMapping("/deleteByIds") |
| | | public R<Object> deleteByIds(java.util.List<Integer> ids) { |
| | | public R<Object> deleteByIds(@RequestParam List<Integer> ids) { |
| | | try { |
| | | return success(regionService.deleteByIds(ids)); |
| | | } catch (Exception ex) { |
| | |
| | | * @return 修改成功的记录数 |
| | | */ |
| | | @ApiOperation(value = "updateById") |
| | | @PutMapping("/updateById") |
| | | public R<Object> updateById(Region region) { |
| | | @PutMapping(value = "/updateById", produces = "application/json; charset=UTF-8") |
| | | public R<Object> updateById(@RequestBody Region region) { |
| | | try { |
| | | return success(regionService.updateById(region)); |
| | | } catch (Exception ex) { |