| | |
| | | @Autowired |
| | | private RegionInspectionService regionInspectionService; |
| | | |
| | | /** |
| | | * 增加或修改 |
| | | * @param regionInspectionEntity |
| | | * @return |
| | | */ |
| | | @PostMapping("insertAndUpdate") |
| | | BasicResult insert(@RequestBody RegionInspectionEntity regionInspectionEntity){ |
| | | return regionInspectionService.insert(regionInspectionEntity); |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("delete") |
| | | BasicResult delete(@RequestParam String id){ |
| | | return regionInspectionService.delete(id); |
| | | } |
| | | |
| | | /** |
| | | * 查询分页列表 |
| | | * @param map |
| | | * @return |
| | | */ |
| | | @PostMapping("selectPageList") |
| | | BasicResult selectPageList(@RequestBody Map map){ |
| | | return regionInspectionService.selectPageList(map); |