| | |
| | | return R.status(gdFlyerService.deleteLogic(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出数据 |
| | | */ |
| | | @GetMapping("/export-gdFlyer") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "导出数据", notes = "传入gdFlyer") |
| | | @ApiIgnore |
| | | public void exportGdFlyer(@ApiIgnore @RequestParam Map<String, Object> gdFlyer, BladeUser bladeUser, HttpServletResponse response) { |
| | | QueryWrapper<GdFlyerEntity> queryWrapper = Condition.getQueryWrapper(gdFlyer, GdFlyerEntity.class); |
| | | //if (!AuthUtil.isAdministrator()) { |
| | | // queryWrapper.lambda().eq(GdFlyer::getTenantId, bladeUser.getTenantId()); |
| | | //} |
| | | queryWrapper.lambda().eq(GdFlyerEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | List<GdFlyerExcel> list = gdFlyerService.exportGdFlyer(queryWrapper); |
| | | ExcelUtil.export(response, "飞手表数据" + DateUtil.time(), "飞手表数据表", list, GdFlyerExcel.class); |
| | | } |
| | | // |
| | | // /** |
| | | // * 导出数据 |
| | | // */ |
| | | // @GetMapping("/export-gdFlyer") |
| | | // @ApiOperationSupport(order = 9) |
| | | // @ApiOperation(value = "导出数据", notes = "传入gdFlyer") |
| | | // @ApiIgnore |
| | | // public void exportGdFlyer(@ApiIgnore @RequestParam Map<String, Object> gdFlyer, BladeUser bladeUser, HttpServletResponse response) { |
| | | // QueryWrapper<GdFlyerEntity> queryWrapper = Condition.getQueryWrapper(gdFlyer, GdFlyerEntity.class); |
| | | // //if (!AuthUtil.isAdministrator()) { |
| | | // // queryWrapper.lambda().eq(GdFlyer::getTenantId, bladeUser.getTenantId()); |
| | | // //} |
| | | // queryWrapper.lambda().eq(GdFlyerEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); |
| | | // List<GdFlyerExcel> list = gdFlyerService.exportGdFlyer(queryWrapper); |
| | | // ExcelUtil.export(response, "飞手表数据" + DateUtil.time(), "飞手表数据表", list, GdFlyerExcel.class); |
| | | // } |
| | | |
| | | } |