| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.PageParam; |
| | | import com.whyc.pojo.PageParam2; |
| | | import com.whyc.service.PageParamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @RestController |
| | | @RequestMapping("pageParam") |
| | | @Api(tags = "系统设置-系统配置-页面参数") |
| | | public class PageParamController { |
| | | public class PageParamController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private PageParamService service; |
| | |
| | | return new Response<List<PageParam>>().set(1,paramList); |
| | | } |
| | | |
| | | @PutMapping("list") |
| | | @PostMapping("updateList") |
| | | @ApiOperation(value = "添加或者移除参数配置") |
| | | public Response updateList(@RequestParam int operationFlag,@RequestBody List<PageParam> pageParamList){ |
| | | service.updateList(pageParamList,operationFlag); |
| | |
| | | return service.findByCategoryId(categoryId); |
| | | } |
| | | |
| | | @PostMapping("update") |
| | | @ApiOperation(value = "修改参数状态") |
| | | public Response update(@RequestParam int id, @RequestParam int status){ |
| | | return service.update(id,status); |
| | | } |
| | | |
| | | @PostMapping("updateStatusList") |
| | | @ApiOperation(value = "修改参数状态-批量") |
| | | public Response updateStatusList(@RequestBody List<PageParam> pageParamList){ |
| | | return service.updateStatusList(pageParamList); |
| | | } |
| | | |
| | | @PostMapping("updateParamById") |
| | | @ApiOperation(value = "修改参数") |
| | |
| | | return service.updateParamById(param); |
| | | } |
| | | |
| | | @GetMapping("getAuditCap") |
| | | @ApiOperation("查询审计容量数") |
| | | public Response getAuditCap(@RequestParam int categoryId) { |
| | | return service.getListByCategoryId(categoryId); |
| | | } |
| | | |
| | | @PostMapping("updateAuditCap") |
| | | @ApiOperation("更新审计容量数据") |
| | | public Response updateAuditCap(@RequestBody PageParam2 pageParam2) { |
| | | return service.updateAudiCap(pageParam2); |
| | | } |
| | | |
| | | @GetMapping("updateHisTime") |
| | | @ApiOperation("更新放电优化时间") |
| | | public Response updateHisTime(@RequestParam int id, @RequestParam int status) { |
| | | return service.updateHisTime(id, status); |
| | | } |
| | | |
| | | } |