| | |
| | | */ |
| | | package org.sxkj.fw.detection.controller; |
| | | |
| | | import com.github.xiaoymin.knife4j.annotations.Ignore; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | FwEffectEvalEntity detail = fwEffectEvalService.getOne(Condition.getQueryWrapper(fwEffectEval)); |
| | | return R.data(FwEffectEvalWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | | * 反制效果评估表 分页 |
| | | */ |
| | | // @GetMapping("/list") |
| | | // @ApiOperationSupport(order = 2) |
| | | // @ApiOperation(value = "分页", notes = "传入fwEffectEval") |
| | | // public R<IPage<FwEffectEvalVO>> list(@ApiIgnore @RequestParam Map<String, Object> fwEffectEval, Query query) { |
| | | // IPage<FwEffectEvalEntity> pages = fwEffectEvalService.page(Condition.getPage(query), Condition.getQueryWrapper(fwEffectEval, FwEffectEvalEntity.class)); |
| | | // return R.data(FwEffectEvalWrapper.build().pageVO(pages)); |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * 反制效果评估表 自定义分页 |
| | |
| | | IPage<FwEffectEvalVO> pages = fwEffectEvalService.selectFwEffectEvalPage(Condition.getPage(query), fwEffectEval); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 反制效果评估表 新增 |
| | | */ |
| | | // @PostMapping("/save") |
| | | // @ApiOperationSupport(order = 4) |
| | | // @ApiOperation(value = "新增", notes = "传入fwEffectEval") |
| | | // public R save(@Valid @RequestBody FwEffectEvalEntity fwEffectEval) { |
| | | // return R.status(fwEffectEvalService.save(fwEffectEval)); |
| | | // } |
| | | |
| | | /** |
| | | * 反制效果评估表 修改 |
| | | */ |
| | | // @PostMapping("/update") |
| | | // @ApiOperationSupport(order = 5) |
| | | // @ApiOperation(value = "修改", notes = "传入fwEffectEval") |
| | | // public R update(@Valid @RequestBody FwEffectEvalEntity fwEffectEval) { |
| | | // return R.status(fwEffectEvalService.updateById(fwEffectEval)); |
| | | // } |
| | | |
| | | /** |
| | | * 反制效果评估表 新增或修改 |
| | |
| | | */ |
| | | @GetMapping("/export-fwEffectEval") |
| | | @ApiOperationSupport(order = 9) |
| | | @Ignore |
| | | @ApiOperation(value = "导出数据", notes = "传入fwEffectEval") |
| | | public void exportFwEffectEval(@ApiIgnore @RequestParam Map<String, Object> fwEffectEval, BladeUser bladeUser, HttpServletResponse response) { |
| | | QueryWrapper<FwEffectEvalEntity> queryWrapper = Condition.getQueryWrapper(fwEffectEval, FwEffectEvalEntity.class); |