| | |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * @ClassName TbAttResPowerStationController |
| | |
| | | @ApiOperation(value = "中台水库-查询水库填报详情信息", notes = "中台水库-查询水库填报详情信息") |
| | | @GetMapping(value = "/getDetailByGuid") |
| | | public R getDetailByCode(String resGuid) { |
| | | TbAttResPowerStation attResBase = tbAttResPowerStationService.getDetailByGuid(resGuid); |
| | | List<TbAttResPowerStation> attResBase = tbAttResPowerStationService.getDetailByGuid(resGuid); |
| | | return R.data(attResBase); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "水库信息-编辑", notes = "水库信息-编辑") |
| | | @PostMapping(value = "/edit") |
| | | public R edit(@RequestBody TbAttResPowerStation tbAttResPowerStation) { |
| | | public R edit(@RequestBody List<TbAttResPowerStation> tbAttResPowerStation) { |
| | | return R.status(tbAttResPowerStationService.updateByGuid(tbAttResPowerStation)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "水库信息-审核", notes = "水库信息-审核") |
| | | @PostMapping(value = "/audit") |
| | | public R audit(@RequestBody TbAttResPowerStation tbAttResPowerStation) { |
| | | public R audit(@RequestBody List<TbAttResPowerStation> tbAttResPowerStation) { |
| | | return R.status(tbAttResPowerStationService.auditByGuid(tbAttResPowerStation)); |
| | | } |
| | | |