|
@@ -1,35 +1,26 @@
|
|
|
package com.leromro.core.controller;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.leromro.common.core.controller.BaseController;
|
|
|
+import com.leromro.common.core.domain.R;
|
|
|
+import com.leromro.common.core.page.TableDataInfo;
|
|
|
+import com.leromro.common.utils.poi.ExcelUtil;
|
|
|
+import com.leromro.core.domain.VolunteerAccount;
|
|
|
+import com.leromro.core.domain.dto.VolunteerAccountListDTO;
|
|
|
import com.leromro.core.domain.dto.VolunteerSubmitAmountDTO;
|
|
|
+import com.leromro.core.domain.vo.VolunteerAccountStatisticsVO;
|
|
|
+import com.leromro.core.domain.vo.VolunteerAccountVO;
|
|
|
import com.leromro.core.facade.VolunteerAccountFacade;
|
|
|
+import com.leromro.core.service.IVolunteerAccountService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import com.leromro.common.core.domain.R;
|
|
|
-import org.apache.poi.ss.formula.functions.T;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-import com.leromro.common.annotation.Log;
|
|
|
-import com.leromro.common.core.controller.BaseController;
|
|
|
-import com.leromro.common.core.domain.AjaxResult;
|
|
|
-import com.leromro.common.enums.BusinessType;
|
|
|
-import com.leromro.core.domain.VolunteerAccount;
|
|
|
-import com.leromro.core.service.IVolunteerAccountService;
|
|
|
-import com.leromro.common.utils.poi.ExcelUtil;
|
|
|
-import com.leromro.common.core.page.TableDataInfo;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 志愿者账户Controller
|
|
@@ -98,7 +89,34 @@ public class VolunteerAccountController extends BaseController {
|
|
|
return volunteerAccountFacade.getWithdrawStatus();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取志愿者钱包列表
|
|
|
+ */
|
|
|
+ @ApiOperation("获取志愿者钱包列表")
|
|
|
+ @GetMapping("/getVolunteerAccountList")
|
|
|
+ public TableDataInfo<VolunteerAccountVO> getVolunteerAccountList(VolunteerAccountListDTO volunteerAccountListDTO) {
|
|
|
+ List<VolunteerAccountVO> list = volunteerAccountService.getVolunteerAccountList(volunteerAccountListDTO);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
|
|
|
+ /**
|
|
|
+ * 导出志愿者钱包列表
|
|
|
+ */
|
|
|
+ @ApiOperation("导出志愿者钱包列表")
|
|
|
+ @PostMapping("/export/VolunteerAccountList")
|
|
|
+ public void exportVolunteerAccountList(HttpServletResponse response,VolunteerAccountListDTO volunteerAccountListDTO) {
|
|
|
+ List<VolunteerAccountVO> list = volunteerAccountService.getVolunteerAccountList(volunteerAccountListDTO);
|
|
|
+ ExcelUtil<VolunteerAccountVO> util = new ExcelUtil<VolunteerAccountVO>(VolunteerAccountVO.class);
|
|
|
+ util.exportExcel(response, list, "志愿者钱包列表");
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 获取平台志愿者钱包统计
|
|
|
+ */
|
|
|
+ @ApiOperation("获取平台志愿者钱包统计")
|
|
|
+ @GetMapping("/getPlatformVolunteerWalletStatistics")
|
|
|
+ public R<VolunteerAccountStatisticsVO> getPlatformVolunteerWalletStatistics() {
|
|
|
+ VolunteerAccountStatisticsVO vo = volunteerAccountService.getPlatformVolunteerWalletStatistics();
|
|
|
+ return R.ok(vo);
|
|
|
+ }
|
|
|
}
|