吉安感知网项目-后端
rain
2026-01-21 f3099b8edcaf60a345c4daf87d6f779a20f75272
drone-service/drone-gd/src/main/java/org/sxkj/gd/flyer/controller/GdFlyerController.java
@@ -131,22 +131,22 @@
      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());
//
//   /**
//    * 导出数据
//    */
//   @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);
      //}
      queryWrapper.lambda().eq(GdFlyerEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
      List<GdFlyerExcel> list = gdFlyerService.exportGdFlyer(queryWrapper);
      ExcelUtil.export(response, "飞手表数据" + DateUtil.time(), "飞手表数据表", list, GdFlyerExcel.class);
   }
}