| | |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | import org.springblade.core.mp.support.Condition; |
| | |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入gdDataObjection") |
| | | public R<GdDataObjectionVO> detail(GdDataObjectionDetailParam gdDataObjection) { |
| | | GdDataObjectionEntity detail = gdDataObjectionService.getOne(Condition.getQueryWrapper(GenericConverter.convert(gdDataObjection, GdDataObjectionEntity.class))); |
| | | return R.data(GdDataObjectionWrapper.build().entityVO(detail)); |
| | | GdDataObjectionVO gdDataObjectionVO = gdDataObjectionService.getDetail(gdDataObjection); |
| | | return R.data(gdDataObjectionVO); |
| | | } |
| | | |
| | | /** |
| | |
| | | // @ApiOperation(value = "导出数据", notes = "传入gdDataObjection") |
| | | // public void exportGdDataObjection(@ApiIgnore @RequestParam Map<String, Object> gdDataObjection, BladeUser bladeUser, HttpServletResponse response) { |
| | | // QueryWrapper<GdDataObjectionEntity> queryWrapper = Condition.getQueryWrapper(gdDataObjection, GdDataObjectionEntity.class); |
| | | //if (!AuthUtil.isAdministrator()) { |
| | | // queryWrapper.lambda().eq(GdDataObjection::getTenantId, bladeUser.getTenantId()); |
| | | //} |
| | | // if (!AuthUtil.isAdministrator()) { |
| | | // queryWrapper.lambda().eq(GdDataObjection::getTenantId, bladeUser.getTenantId()); |
| | | //} |
| | | // queryWrapper.lambda().eq(GdDataObjectionEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | // List<GdDataObjectionExcel> list = gdDataObjectionService.exportGdDataObjection(queryWrapper); |
| | | // ExcelUtil.export(response, "数据异议申请表数据" + DateUtil.time(), "数据异议申请表数据表", list, GdDataObjectionExcel.class); |